* Issues with citation locators in German
@ 2022-01-08 15:30 Siphalor
[not found] ` <1dd44886-7b79-4e5f-97ec-57b91113df36n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Siphalor @ 2022-01-08 15:30 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2930 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 4518 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Issues with citation locators in German
[not found] ` <1dd44886-7b79-4e5f-97ec-57b91113df36n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-01-09 1:00 ` John MacFarlane
[not found] ` <m2lezpd8q6.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2022-01-09 1:00 UTC (permalink / raw)
To: Siphalor, pandoc-discuss
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Issues with citation locators in German
[not found] ` <m2lezpd8q6.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
@ 2022-01-11 0:11 ` Siphalor
0 siblings, 0 replies; 3+ messages in thread
From: Siphalor @ 2022-01-11 0:11 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 4416 bytes --]
Oof. German capitalization struck again ^^
Thanks for the insanely quick reply and fix. I just built Pandoc from
source, and it's working fine now.
On Sunday, 9 January 2022 at 02:00:18 UTC+1 John MacFarlane wrote:
>
> 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 <in...-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-discus...-/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/db76ee77-1f8d-440a-ac4a-9d7ec8f2c61dn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 7011 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-11 0:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-08 15:30 Issues with citation locators in German Siphalor
[not found] ` <1dd44886-7b79-4e5f-97ec-57b91113df36n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-01-09 1:00 ` John MacFarlane
[not found] ` <m2lezpd8q6.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-01-11 0:11 ` Siphalor
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).