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. ‘quintus’ Gülker"'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
next prev parent 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 [BUG] Citations: Locator treated as prefix [9.5 (release_9.5-225-g494c20 @ /home/quintus/.emacs.d/org-mode/lisp/)] 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
* 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 \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.