From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29940 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Siphalor Newsgroups: gmane.text.pandoc Subject: Re: Issues with citation locators in German Date: Mon, 10 Jan 2022 16:11:58 -0800 (PST) Message-ID: References: <1dd44886-7b79-4e5f-97ec-57b91113df36n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_182_1237615532.1641859918088" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19444"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDKZHBHFVQLBBT4W6OHAMGQE5CVOW5A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 11 01:12:02 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n74le-0004rM-6x for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Jan 2022 01:12:02 +0100 Original-Received: by mail-ot1-f60.google.com with SMTP id m23-20020a9d6457000000b0058f6f926cabsf3002047otl.6 for ; Mon, 10 Jan 2022 16:12:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=o6kU9xrXTGBTTelPG8s7AxzQzpG6Z84TQLbmqReoMpQ=; b=MWoonZrSfzPCdk8/JjOEYeZJDwfyfq9xG5DNLxv+kWrEbBWYE1fsD8MrMuk5yhVBlj LyT+aWzzZ1nu6nCD2PQMpvMsqSVk/qd0QTrAy7OJwIAgaEXTlzj9KzmKu64iIGdHicpW ajHwEihQhb76DwCYn1PuX9LLqhfaZxl6+AOBppbKWsxFtRb+x3faSfuyHS94T2L1BySu zNNW790Ztilo845pTZIteHU+w4f81evBq6OWxCcyTgFfIxRZXAjNu1tMglnn0DMCrdQE FfdLF7lPeeA/assVkg4WV5fIPKRpS4MQ+1hVPjYatLbqNVlJplqu5AxOgNJ1OZ3Jwcj7 KR3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=o6kU9xrXTGBTTelPG8s7AxzQzpG6Z84TQLbmqReoMpQ=; b=0YkxXGr8NDNcZNUQvpmfYpO9PYIP6HhnWcHsfhFDEn6hlxPFmec3pYQUdIr9d21lOI 3f2FT5PdrXP4pfEpx5qr6d1E125RHX6Vxgz4jlFxfiHi4XhU7+QM8yvFNxsolUYXFVIZ 8gp+C//1zf6COVFwmVwm6c2Wle3C6N9pPQupiaA543kxqXmVthIgEDeL2zvW73qgvJN7 GtqZPqIeDPpFdhZg71yclLs+sW5IZqHAG7shknyGd0Q8Pnt3/ooCADX7hF799Lei8WjG bwbaxedjZsneKtXRCB4SbG9llecee58tz2EUAY5Xgq2pMy9+neXEWywh2H/HllLa8ktG Tokg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532mFgnnzig++skF43pj+3zSAXhtP8UiKjKsVMBk8slbrY3jhX2N roGhT+JT7s+bPyS4WH3WDHs= X-Google-Smtp-Source: ABdhPJw/YB8xRgEbUkGwLMNBeOyEXfS5/k1rL0tH/zZgu0wgVGi2L2sgAWoV98FHcOUVRYp9SJNxMA== X-Received: by 2002:a05:6808:8cb:: with SMTP id k11mr159308oij.1.1641859920598; Mon, 10 Jan 2022 16:12:00 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a54:4195:: with SMTP id 21ls3529091oiy.1.gmail; Mon, 10 Jan 2022 16:11:58 -0800 (PST) X-Received: by 2002:aca:bd89:: with SMTP id n131mr169858oif.64.1641859918679; Mon, 10 Jan 2022 16:11:58 -0800 (PST) In-Reply-To: X-Original-Sender: info-K+7KtI1Sxfcb1SvskN2V4Q@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29940 Archived-At: ------=_Part_182_1237615532.1641859918088 Content-Type: multipart/alternative; boundary="----=_Part_183_1642433505.1641859918088" ------=_Part_183_1642433505.1641859918088 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oof. German capitalization struck again ^^ Thanks for the insanely quick reply and fix. I just built Pandoc from=20 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 writes: > > > Hi, > > I'm trying to use citations in German and running into some issues with= =20 > the=20 > > locators here. > > > > A minimal-ish example: > > > > *bibliography.bib:* > > @Article{Mueller2015, > > author =3D {Frank M=C3=BCller}, > > title =3D {This is annyoing}, > > year =3D {2015}, > > } > > > > *Let's start with English, where everything works as expected (locators= =20 > in=20 > > 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: > > > >

Citation with nothing: > data-cites=3D"Mueller2015">[1(p. 12)].

> >

Citation with English page: > data-cites=3D"Mueller2015">[1(p. 12)].

> >

Citation with English chapter: > data-cites=3D"Mueller2015">[1(Chapter 12)].

> > > > *Now let's set the language to German and use German locators as in=20 > > locales-de-DE.xml=20 > > < > 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:* > > > >

Citation with nothing: > data-cites=3D"Mueller2015">[1(S. 12)].

> >

Citation with English page: > data-cites=3D"Mueller2015">[1, p. 12].

> >

Citation with German page: > data-cites=3D"Mueller2015">[1, S. 12].

> >

Citation with German chapter: > data-cites=3D"Mueller2015">[1, Kap. 2].

> > > > As you can see the German locators are not recognized with a German=20 > locale. > > > > For this example I'm using the APA numeric style=20 > > < > https://github.com/citation-style-language/styles/blob/master/apa-numeric= -superscript-brackets.csl>,=20 > > > but I could reproduce the issue with any CSL style that I tried (and=20 > that=20 > > differentiates between suffix and locator). > > > > I hope that I provided enough information, I'll provide more if=20 > requested. > > Also let me know if I should create an GitHub issue for this - I just= =20 > > assumed that the issue was on my side :) > > > > Thanks in advance. > > Siphalor > > > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/1dd44886-7b79-4e5f-97ec-= 57b91113df36n%40googlegroups.com > . > --=20 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 e= mail 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. ------=_Part_183_1642433505.1641859918088 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oof. German capitalization struck again ^^

Thanks for the insan= ely 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...@siphalor.= de> writes:

> Hi,
> I'm trying to use citations in German and running into some is= sues with the=20
> locators here.
>
> A minimal-ish example:
>
> *bibliography.bib:*
> @Article{Mueller2015,
> author =3D {Frank M=C3=BCller},
> title =3D {This is annyoing},
> year =3D {2015},
> }
>
> *Let's start with English, where everything works as expected = (locators in=20
> 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=3D"citation&quo= t;=20
> data-cites=3D"Mueller2015"><sup>[1(p. 12)]</= sup></span>.</p>
> <p>Citation with English page:<span class=3D"citatio= n"=20
> data-cites=3D"Mueller2015"><sup>[1(p. 12)]</= sup></span>.</p>
> <p>Citation with English chapter:<span class=3D"cita= tion"=20
> data-cites=3D"Mueller2015"><sup>[1(Chapter 12)]= </sup></span>.</p>
>
> *Now let's set the language to German and use German locators = as in=20
> locales-de-DE.xml=20
> <https://github.com/citation-style-language/locales/blob/master/loc= ales-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=3D"citation&quo= t;=20
> data-cites=3D"Mueller2015"><sup>[1(S. 12)]</= sup></span>.</p>
> <p>Citation with English page:<span class=3D"citatio= n"=20
> data-cites=3D"Mueller2015"><sup>[1, p. 12]</= sup></span>.</p>
> <p>Citation with German page:<span class=3D"citation= "=20
> data-cites=3D"Mueller2015"><sup>[1, S. 12]</= sup></span>.</p>
> <p>Citation with German chapter:<span class=3D"citat= ion"=20
> data-cites=3D"Mueller2015"><sup>[1, Kap. 2]<= /sup></span>.</p>
>
> As you can see the German locators are not recognized with a Germa= n locale.
>
> For this example I'm using the APA numeric style=20
> <https://github.com/citation-st= yle-language/styles/blob/master/apa-numeric-superscript-brackets.csl>= ;,=20
> but I could reproduce the issue with any CSL style that I tried (a= nd that=20
> differentiates between suffix and locator).
>
> I hope that I provided enough information, I'll provide more i= f requested.
> Also let me know if I should create an GitHub issue for this - I j= ust=20
> assumed that the issue was on my side :)
>
> Thanks in advance.
> Siphalor
>
> --=20
> 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..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1= dd44886-7b79-4e5f-97ec-57b91113df36n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.
------=_Part_183_1642433505.1641859918088-- ------=_Part_182_1237615532.1641859918088--