From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30892 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Carter Wood Newsgroups: gmane.text.pandoc Subject: Re: Changing typographical quotation marks in citations Date: Fri, 1 Jul 2022 07:15:37 -0700 (PDT) Message-ID: <8e39ea4c-765d-44fd-9c90-7f4c36c4065cn@googlegroups.com> References: <062deeeb-9dfb-4ca3-ae3a-10b360293315n@googlegroups.com> <0db7e968-6c00-4399-bd8e-a7b2ad46a841n@googlegroups.com> <8c8c4dcc-5189-4b88-833d-c9154d1d2fb1n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1130_1772792300.1656684937277" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33810"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCYPBGVKTEEBBC4D7SKQMGQEHYN4URA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jul 01 16:15:42 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f185.google.com ([209.85.128.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o7HQs-0008dd-QO for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 01 Jul 2022 16:15:42 +0200 Original-Received: by mail-yw1-f185.google.com with SMTP id 00721157ae682-317765eb7ccsf20098317b3.13 for ; Fri, 01 Jul 2022 07:15:42 -0700 (PDT) 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=G3b4ts891gjD5cqRW5RWZmUhH0XW6orwRVFSZtO5HWo=; b=kNkiyfGnj1Rx2Nm1V/os7i9iC1+iXeZEdssLBva2TrAvXpcvykycoK45+4M3PLZb5O 1e/rcddyNcv5vegmP1Pty9umK/0mLaPxeuaotuk/yHDYnfqcQ+xvYwNokymGyyLAQSoZ +10M9bwbJNOOD289qzQaudkt7Mh7yFyGVCRlCqCLhjh72x1L3pxLsnZQUq4sxySXy9+0 mZmJ1mICB2VB78EWkzLD77FjR67z1woczvGu0TIKnoV5LLCD8p49OpBeH6qkqEK2/5tc pxdd25JweqY5cd7BgH/chVrzrWkmSnorJIZl8WocBG2B1VejJoSeKl9ZlCGRMXk9Qzho VAvA== 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=G3b4ts891gjD5cqRW5RWZmUhH0XW6orwRVFSZtO5HWo=; b=Lc7/dOqp+2y84ASng50Ds4fG/LZpFjaHAiKBZfGA4OYuPzRiy3jRHgcrIJ3BrZgklh mlN2nl/a7OQNkmNv57Klw9bHl5LThnPSfw9DhrbLeFqCcgOiKRc+q3z6u1Z1+hfeKMGL beEws2xvB2JguTYbbiEtsiykBC4dFXRF3gLNDTtdWJiHakYwnUuSMD2zcWzwEbMFRBGM AIVq2hQoP/om3h0+XAnTPhw/GCGA5ih1PD9FxMdlLl0kN7X8wzer94ZSQKxzlYISTtRX z8JfmyQPJ+nLdEnToGT0wL6zVIClraIT4HsyDltTl/Q72Ipzw0FL+4HpE7S0h2GnQoOu BPYg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8tPDdbFRxQvuhDiKeM0ATFqfUC85HdbmPZPUwk+vG4GQO6XdI4 HUpHRL/9nTfBGlA+70HPQZc= X-Google-Smtp-Source: AGRyM1sSZUxqobAr948u08zEFXgjyYK8/UgBSq6Jfov10jWjgGPG9K051Fz5/Lnmo1KkdOwvPBmHaA== X-Received: by 2002:a25:50d4:0:b0:66c:9952:bec0 with SMTP id e203-20020a2550d4000000b0066c9952bec0mr15421067ybb.319.1656684941541; Fri, 01 Jul 2022 07:15:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:7dd4:0:b0:318:81e7:91f6 with SMTP id y203-20020a817dd4000000b0031881e791f6ls11272238ywc.5.gmail; Fri, 01 Jul 2022 07:15:38 -0700 (PDT) X-Received: by 2002:a81:8d08:0:b0:317:a4cd:d65d with SMTP id d8-20020a818d08000000b00317a4cdd65dmr16581852ywg.329.1656684937750; Fri, 01 Jul 2022 07:15:37 -0700 (PDT) In-Reply-To: <8c8c4dcc-5189-4b88-833d-c9154d1d2fb1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: woodjo-ZOsAvrTRSvuEhhMi0yms2Q@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:30892 Archived-At: ------=_Part_1130_1772792300.1656684937277 Content-Type: multipart/alternative; boundary="----=_Part_1131_769570747.1656684937277" ------=_Part_1131_769570747.1656684937277 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Adding the relevant quotation marks as terms in the CSL file as suggested= =20 by suki did the trick. Thank you! John Carter Wood schrieb am Donnerstag, 30. Juni 2022 um 22:25:05 UTC+2: > I will try this out when I have a chance and report back, thanks! > > > BP schrieb am Donnerstag, 30. Juni 2022 um 19:53:42 UTC+2: > >> IIUC --citeproc corresponds to `citeproc: true`. Have you tried what=20 >> happens with `--filter citeproc`? Does it work at all? I have no data to= =20 >> test that on ATM. >> >> Den tors 30 juni 2022 18:30John Carter Wood skrev: >> >>> Thanks!=20 >>> >>> This is the command I used:=20 >>> >>> pandoc CSL-Test.md -o CSL-test.docx --citeproc --lua-filter=20 >>> pandoc-quotes.lua=20 >>> --reference-doc=3D/home/john/.pandoc/templates/custom-reference.docx=20 >>> CSL-Test.md >>> >>> Shouldn't this order have the same effect as what you suggested?=20 >>> >>> >>> >>> >>> >>> >>> BPJ schrieb am Donnerstag, 30. Juni 2022 um 18:23:27 UTC+2: >>> >>>> Have you tried running pandoc-quotes.lua after citeproc? >>>> >>>> use this in a defaults file: >>>> >>>> ``````yaml >>>> filters: >>>> - citeproc >>>> - pandoc-quotes.lua >>>> `````` >>>> >>>> Make sure to remove any `citeproc: true` field! >>>> >>>> Den tors 30 juni 2022 14:42John Carter Wood =20 >>>> skrev: >>>> >>>>> That's very helpful, thank you!=20 >>>>> >>>>> I had looked at the spec but overlooked the part on locales and=20 >>>>> quotes.=20 >>>>> >>>>> >>>>> https://docs.citationstyles.org/en/stable/translating-locale-files.ht= ml#punctuation >>>>> >>>>> I will give that a try (probably tomorrow) and report whether it work= s=20 >>>>> for me or other problems crop up. >>>>> >>>>> >>>>> suki...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org schrieb am Donnerstag, 30. Juni 2022 um 14:34:13=20 >>>>> UTC+2: >>>>> >>>>>> Hi, >>>>>> >>>>>> After looking at the spec (the only experience I have with CSL=20 >>>>>> files), I think you would need to modify your CSL file, Add a locale= =20 >>>>>> element in the root style element, like this: >>>>>> >>>>>> >>>>>> >>>>>> (Or try left-inner-quote and right-inner quote instead, maybe) >>>>>> Hth, >>>>>> Sukil >>>>>> >>>>>> El 30/06/2022 a las 14:04, John Carter Wood escribi=C3=B3: >>>>>> >>>>>> In setting up a CSL file for a German-language publisher (but for=20 >>>>>> English-language texts), I've run into the issue of needing to chang= e the=20 >>>>>> typographical quotation marks when converting from Markdown to docx = or pdf.=20 >>>>>> I am familiar with pandoc-quotes.lua but when using it, it changes t= he=20 >>>>>> quote marks in the main text, but not in the citations (which come f= rom a=20 >>>>>> json file).=20 >>>>>> >>>>>> So, I have to use this group of quotation marks: =C2=BB=C2=AB=E2=80= =BA=E2=80=B9, which I have=20 >>>>>> set in a YAML block (quot-marks: =C2=BB=C2=AB=E2=80=BA=E2=80=B9). (T= he document language is set to=20 >>>>>> en-GB.)=20 >>>>>> >>>>>> The result changes the main text quotation marks but not the=20 >>>>>> citations (see screenshot).=20 >>>>>> >>>>>> [image: Screenshot from 2022-06-30 13-55-41.png] >>>>>> >>>>>> Is there a way of getting the quotation marks I want in the citation= s=20 >>>>>> as well? >>>>>> >>>>>> (pandoc-version 2.18) >>>>>> >>>>>> --=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,=20 >>>>>> send 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/da178cb2-48fa-4f53-= 8417-02dcae0129acn%40googlegroups.com=20 >>>>>> >>>>>> . >>>>>> >>>>>> --=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, sen= d=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/062deeeb-9dfb-4ca3-a= e3a-10b360293315n%40googlegroups.com=20 >>>>> >>>>> . >>>>> >>>> --=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/0db7e968-6c00-4399-bd8= e-a7b2ad46a841n%40googlegroups.com=20 >>> >>> . >>> >> --=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/8e39ea4c-765d-44fd-9c90-7f4c36c4065cn%40googlegroups.com. ------=_Part_1131_769570747.1656684937277 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Adding the relevant quotation marks as terms in the CSL file as suggested b= y suki did the trick. Thank you!

John Carter Wood schrieb am Donnerstag, 30. = Juni 2022 um 22:25:05 UTC+2:
I will try this out when I have a chance and report ba= ck, thanks!


BP schrieb am Donnerstag, 30. Juni 2022 um 19:53= :42 UTC+2:
IIUC --citeproc corresponds to `citeproc: true`. Have you tried what= happens with `--filter citeproc`? Does it work at all? I have no data to t= est that on ATM.

Den tors 30 juni 2022 18:3= 0John Carter Wood <woo...-ZOsAvrTRSvuEhhMi0yms2Q@public.gmane.org> skrev= :
= Thanks!

This is the command I used:

pandoc CSL-Test.md= -o CSL-test.docx --citeproc --lua-filter pandoc-quotes.lua --reference-doc= =3D/home/john/.pandoc/templates/custom-reference.docx CSL-Test.md

Shouldn't this order have the same effect as what you s= uggested?






BPJ schrieb am Donnerstag, 30= . Juni 2022 um 18:23:27 UTC+2:
Have you tried running pandoc-quotes.lua after c= iteproc?

use this in a default= s file:

``````yaml
=
filters:
=C2=A0 - citeproc
=C2=A0 - pandoc-quotes.lua
``````

Make sure to remove any `c= iteproc: true` field!

Den tors 30 jun= i 2022 14:42John Carter Wood <woo...@uni-= mainz.de> skrev:
That's very helpful, thank you!

I had loo= ked at the spec but overlooked the part on locales and quotes.

https://docs.citationstyles.org/en/stable/translating-locale-f= iles.html#punctuation

I will give that a try (probably tomorrow)= and report whether it works for me or other problems crop up.

=

suki...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= schrieb am Donnerstag, 30. Juni 2022 um 14:34:13 UTC+2:
=20 =20 =20

Hi,

After looking at the spec (the only experience I have with CSL files), I think you would need to modify your CSL file, Add a locale element in the root style element, like this:


<style>

=C2=A0=C2=A0=C2=A0 <locale xml:lang=3D"en">

=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 <terms>
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <= term name =3D "open-quote">&laquo;</term>
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <= term name =3D "close-quote">&raquo;</term>
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 </terms>
=C2=A0=C2=A0=C2=A0 </locale>
</style>
(Or try left-inner-quote and right-inner quote instead, maybe)
Hth,
Sukil

El 30/06/2022 a las 14:04, John Carter Wood escribi=C3=B3:
=20 In setting up a CSL file for a German-language publisher (but for English-language texts), I've run into the issue of needing to change the typographical quotation marks when converting from Markdown to docx or pdf. I am familiar with pandoc-quotes.lua but when using it, it changes the quote marks in the main text, but not in the citations (which come from a json file).

So, I have to use this group of quotation marks: =C2=BB=C2=AB=E2= =80=BA=E2=80=B9, which I have set in a YAML block (quot-marks: =C2=BB=C2=AB=E2=80=BA=E2=80= =B9). (The document language is set to en-GB.)

The result changes the main text quotation marks but not the citations (see screenshot).

3D"Screenshot

Is there a way of getting the quotation marks I want in the citations as well?

(pandoc-version 2.18)
--
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-dis= cus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid= /pandoc-discuss/da178cb2-48fa-4f53-8417-02dcae0129acn%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
pandoc-discus...@googlegr= oups.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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.

--
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/8e39ea4c-765d-44fd-9c90-7f4c36c4065cn%40googlegroups.= com.
------=_Part_1131_769570747.1656684937277-- ------=_Part_1130_1772792300.1656684937277--