From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Siphalor <info-K+7KtI1Sxfcb1SvskN2V4Q@public.gmane.org>,
pandoc-discuss
<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Issues with citation locators in German
Date: Sat, 08 Jan 2022 17:00:01 -0800 [thread overview]
Message-ID: <m2lezpd8q6.fsf@MacBook-Pro-2.hsd1.ca.comcast.net> (raw)
In-Reply-To: <1dd44886-7b79-4e5f-97ec-57b91113df36n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Thanks for the report. I believe I've fixed this with
2b51f54e19373381df7f71f3094f97cc79dd82d2
I had tested with non-US locators, but not with German.
German is distinctive in that the short-form locators
have capital letters (e.g. S.). We were case-folding
the potential locators before looking them up in the
table, but the keys in the table weren't case-folded,
so German locators failed to match!
Siphalor <info-K+7KtI1Sxfcb1SvskN2V4Q@public.gmane.org> writes:
> Hi,
> I'm trying to use citations in German and running into some issues with the
> locators here.
>
> A minimal-ish example:
>
> *bibliography.bib:*
> @Article{Mueller2015,
> author = {Frank Müller},
> title = {This is annyoing},
> year = {2015},
> }
>
> *Let's start with English, where everything works as expected (locators in
> parenthesis):*
> ---
> lang: en-US
> filters:
> - type: citeproc
> bibliography:
> - bibliography.bib
> ---
>
> Citation with nothing: [@Mueller2015, 12].
>
> Citation with English page: [@Mueller2015, p. 12].
>
> Citation with English chapter: [@Mueller2015, chap. 12].
>
> becomes:
>
> <p>Citation with nothing:<span class="citation"
> data-cites="Mueller2015"><sup>[1(p. 12)]</sup></span>.</p>
> <p>Citation with English page:<span class="citation"
> data-cites="Mueller2015"><sup>[1(p. 12)]</sup></span>.</p>
> <p>Citation with English chapter:<span class="citation"
> data-cites="Mueller2015"><sup>[1(Chapter 12)]</sup></span>.</p>
>
> *Now let's set the language to German and use German locators as in
> locales-de-DE.xml
> <https://github.com/citation-style-language/locales/blob/master/locales-de-DE.xml>.*
>
> ---
> lang: de-DE
> filters:
> - type: citeproc
> bibliography:
> - bibliography.bib
> ---
>
> Citation with nothing: [@Mueller2015, 12].
>
> Citation with English page: [@Mueller2015, p. 12].
>
> Citation with German page: [@Mueller2015, S. 12].
>
> Citation with German chapter: [@Mueller2015, Kap. 2].
>
> *becomes:*
>
> <p>Citation with nothing:<span class="citation"
> data-cites="Mueller2015"><sup>[1(S. 12)]</sup></span>.</p>
> <p>Citation with English page:<span class="citation"
> data-cites="Mueller2015"><sup>[1, p. 12]</sup></span>.</p>
> <p>Citation with German page:<span class="citation"
> data-cites="Mueller2015"><sup>[1, S. 12]</sup></span>.</p>
> <p>Citation with German chapter:<span class="citation"
> data-cites="Mueller2015"><sup>[1, Kap. 2]</sup></span>.</p>
>
> As you can see the German locators are not recognized with a German locale.
>
> For this example I'm using the APA numeric style
> <https://github.com/citation-style-language/styles/blob/master/apa-numeric-superscript-brackets.csl>,
> but I could reproduce the issue with any CSL style that I tried (and that
> differentiates between suffix and locator).
>
> I hope that I provided enough information, I'll provide more if requested.
> Also let me know if I should create an GitHub issue for this - I just
> assumed that the issue was on my side :)
>
> Thanks in advance.
> Siphalor
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1dd44886-7b79-4e5f-97ec-57b91113df36n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2lezpd8q6.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net.
next prev parent reply other threads:[~2022-01-09 1:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-08 15:30 Siphalor
[not found] ` <1dd44886-7b79-4e5f-97ec-57b91113df36n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-01-09 1:00 ` John MacFarlane [this message]
[not found] ` <m2lezpd8q6.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-01-11 0:11 ` Siphalor
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=m2lezpd8q6.fsf@MacBook-Pro-2.hsd1.ca.comcast.net \
--to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
--cc=info-K+7KtI1Sxfcb1SvskN2V4Q@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.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.
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 NNTP newsgroup(s).