From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30887 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: Thu, 30 Jun 2022 13:25:04 -0700 (PDT) Message-ID: <8c8c4dcc-5189-4b88-833d-c9154d1d2fb1n@googlegroups.com> References: <062deeeb-9dfb-4ca3-ae3a-10b360293315n@googlegroups.com> <0db7e968-6c00-4399-bd8e-a7b2ad46a841n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4798_673880758.1656620704998" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8181"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCYPBGVKTEEBBIUN7CKQMGQEAA2F6JA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 30 22:25:10 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f185.google.com ([209.85.219.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o70is-0001sa-0K for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 30 Jun 2022 22:25:10 +0200 Original-Received: by mail-yb1-f185.google.com with SMTP id p206-20020a255bd7000000b0066c9e778477sf226307ybb.2 for ; Thu, 30 Jun 2022 13:25:09 -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=5j29NTId4oGMieyBdq4CGvgOKAbcNNFp5euIrQzuaDU=; b=J2tUAGglBRBrwfJev8o/ac6e0Jekd0whsHZ3GHBgHOiGJCBs9P6P9SldgeLl52htS1 +MAh9+QMGWcgj5XAb4T0c/CqHZL9krIzH2k2bu21pL/w08in1AAHX8tR7nhztikUlrze 0WyiEWKfvvsfFQfqKmKn3q+twIr2tRxhd7WaU5IO0nBXTHvgqMHivDDlMCrOyefz3nqo aORc+NafqLl9+62s2VjgS8UYo154cMg0MYIxQKyHj26Y5Y8NXTffcQg2mBfRWl/Trm1K BDgFvdJyEqeqanzOeJmFXOWnC5FGhsHmjc5I4u6dXg2ouSzkUaByaXrUsO4CrC9LB9iK tpgQ== 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=5j29NTId4oGMieyBdq4CGvgOKAbcNNFp5euIrQzuaDU=; b=LpetELaWw4yxml80biExg0BDCohpabo55UzfzPaMxGxC9l1JuNGJBL81nncdIPxkyY wnpWcim2N7jHCfkUr3U2fR31x/pufwbR8ra9VxbRSgNS1eXl5y8LJsOXMIik9nUztiPd UE8D164x3mJmDMCTZWusd5pkH4JO49pZXdFPOksLS6U6p+Ki8vo/5dAFMYlKTRy/g37g pADwbhYUMnCn9Lq3AGLj3DiadAvphc34CL+56S3yAM/bncCp8LJwAhthNpuLJh98PtqT EjBf5Bl6Rm5StrjDC32TEq8IAiF4hGl7SjGiLxn5wSDkQHA5hMKvTt3l5t8/Ow5HRPT5 JrOg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora9kUAWta2XbxmyKM+eTaWDs1DhwjXFC2I7sjdvT1l/6GQ5W/Y8x 3XsG0xzgmFDNPTmmCiEUSXQ= X-Google-Smtp-Source: AGRyM1uclPdh1XJmlfCG1N/G8QUILhhSR73cuBm9LJFdowwojrdBUPVr7c25/1pycogmNJJA9lY3lw== X-Received: by 2002:a81:38c:0:b0:2f4:d0e2:dc2a with SMTP id 134-20020a81038c000000b002f4d0e2dc2amr12321615ywd.102.1656620708996; Thu, 30 Jun 2022 13:25:08 -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-20020a817dd4000000b0031881e791f6ls10177286ywc.5.gmail; Thu, 30 Jun 2022 13:25:05 -0700 (PDT) X-Received: by 2002:a81:4e83:0:b0:318:6aab:8bf4 with SMTP id c125-20020a814e83000000b003186aab8bf4mr12334373ywb.471.1656620705679; Thu, 30 Jun 2022 13:25:05 -0700 (PDT) In-Reply-To: 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:30887 Archived-At: ------=_Part_4798_673880758.1656620704998 Content-Type: multipart/alternative; boundary="----=_Part_4799_2044623658.1656620704998" ------=_Part_4799_2044623658.1656620704998 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 skrev= : >>> >>>> That's very helpful, thank you!=20 >>>> >>>> I had looked at the spec but overlooked the part on locales and quotes= .=20 >>>> >>>> >>>> https://docs.citationstyles.org/en/stable/translating-locale-files.htm= l#punctuation >>>> >>>> I will give that a try (probably tomorrow) and report whether it works= =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 files)= ,=20 >>>>> I think you would need to modify your CSL file, Add a locale element = in the=20 >>>>> 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 change= the=20 >>>>> typographical quotation marks when converting from Markdown to docx o= r pdf.=20 >>>>> I am familiar with pandoc-quotes.lua but when using it, it changes th= e=20 >>>>> quote marks in the main text, but not in the citations (which come fr= om 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). (Th= e document language is set to=20 >>>>> en-GB.)=20 >>>>> >>>>> The result changes the main text quotation marks but not the citation= s=20 >>>>> (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 citations= =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, 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/da178cb2-48fa-4f53-8= 417-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, 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/062deeeb-9dfb-4ca3-ae= 3a-10b360293315n%40googlegroups.com=20 >>>> >>>> . >>>> >>> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> 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-bd8e= -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/8c8c4dcc-5189-4b88-833d-c9154d1d2fb1n%40googlegroups.com. ------=_Part_4799_2044623658.1656620704998 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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:
<= /div>
= IIUC --citeproc corresponds to `citeproc: true`. Have you tried what happen= s with `--filter citeproc`? Does it work at all? I have no data to test tha= t on ATM.

Den tors 30 juni 2022 18:30John C= arter Wood <woo...@uni-mainz.= de> skrev:
Thanks!

This is the command I used:

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

Shouldn't this order have the same effe= ct as what you suggested?






BPJ schrieb a= m 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:
=C2=A0 = - citeproc
=C2=A0 - pandoc-quotes.lua
``````

Make su= re to remove any `citeproc: true` field!

Den tors 30 juni 2022 14:42John Carter Wood <woo...-ZOsAvrTRSvuEhhMi0yms2Q@public.gmane.org> skrev:
That's very helpful, thank you= !

I had looked at the spec but overlooked the part on locales and q= uotes.

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

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


s= uki...-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= ...@googlegroups.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/8c8c4dcc-5189-4b88-833d-c9154d1d2fb1n%40googlegroups.= com.
------=_Part_4799_2044623658.1656620704998-- ------=_Part_4798_673880758.1656620704998--