emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] Citations: Locator treated as prefix [9.5 (release_9.5-225-g494c20 @ /home/quintus/.emacs.d/org-mode/lisp/)]
Date: Fri, 12 Nov 2021 09:37:26 +0100	[thread overview]
Message-ID: <874k8hlqgp.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87ee7nkwds.fsf@atlantis> ("M. =?utf-8?Q?=E2=80=98quintus?= =?utf-8?Q?=E2=80=99_G=C3=BClker=22's?= message of "Thu, 11 Nov 2021 08:02:39 +0100")

Hello,

M. ‘quintus’ Gülker <post+orgmodeml@guelker.eu> writes:

> take this org file `mwe.org':
>
>     #+TITLE: Test
>     #+AUTHOR: Testauthor
>
>     #+LANGUAGE: de
>     #+bibliography: /tmp/mwe/mwe.bib
>
>     #+cite_export: csl /tmp/mwe/juristische-schulung.csl
>
>     Das ist ein Test [cite:@redeker2020itr Kap. A Rn. 72, Suffixtext hier]
>
> with this `mwe.bib' Biblatex file:
>
>     @Book{redeker2020itr,
>     author       = {Helmut Redeker},
>     title        = {IT-Recht},
>     year      = {2020},
>     edition   = {7},
>     publisher = {C.H. Beck},
>     location  = {München},
>     langid    = {ngerman}}
>
> `juristische-schulung.el' is https://github.com/citation-style-language/styles/blob/e22b8a566bad9b4c7f52720f60dd875057a5d210/juristische-schulung.csl
>
> When this is exported to HTML, the locator `Kap. A Rn. 72' is split and
> partly taken as the prefix. It exports to this:
>
>     1 Kap. A Rn.  Redeker, IT-Recht, 7. Aufl. (2020), 72 Suffixtext hier
>
> This is incorrect; it should export to:
>
>     1 Redeker, IT-Recht, 7. Aufl. (2020), Kap. A Rn. 72 Suffixtext
>     hier

This is because "Kap." is not known as a locator identifier. See
‘org-cite-csl--label-alist’ for the full list of such identifiers.

I don’t think it is reasonable to expect this variable to contain every
identifier in every language. It may be a good idea to turn the variable
above into a defcustom, thus.

Meanwhile, you can test again after evaluating:

  (push '("Kap." . "chapter") org-cite-csl--label-alist)

Regards,
-- 
Nicolas Goaziou


  reply	other threads:[~2021-11-12  8:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-11  7:02 M. ‘quintus’ Gülker
2021-11-12  8:37 ` Nicolas Goaziou [this message]
2021-11-12 17:33   ` M. ‘quintus’ Gülker
2021-11-12 17:42     ` Nicolas Goaziou
2021-11-13 10:01       ` M. ‘quintus’ Gülker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874k8hlqgp.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: [BUG] Citations: Locator treated as prefix [9.5 (release_9.5-225-g494c20 @ /home/quintus/.emacs.d/org-mode/lisp/)]' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).