From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30885 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 09:29:24 -0700 (PDT) Message-ID: <0db7e968-6c00-4399-bd8e-a7b2ad46a841n@googlegroups.com> References: <062deeeb-9dfb-4ca3-ae3a-10b360293315n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1678_1674895004.1656606564849" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25200"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCYPBGVKTEEBBZU666KQMGQEYFW4FXA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 30 18:29:30 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f187.google.com ([209.85.128.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o6x2n-0006NF-UA for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 30 Jun 2022 18:29:30 +0200 Original-Received: by mail-yw1-f187.google.com with SMTP id 00721157ae682-317b6ecba61sf155677597b3.9 for ; Thu, 30 Jun 2022 09:29:29 -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=i4/UxUP1wQzFm1XQsavQb3eByCWoYLLQNomx2am13gY=; b=NZEMxBQJXW6Rut7rf1EgOnucdVdE0Vu3J/jDOV1EzSLMsLKOTf9uddRDAxgTy4vUhj PiqHEiA7KdU7Q7ByDfOE/mBsZGDga0zAuOHvVOjJs3x4QW7vndjqqwB63Cydd3imBYOO elE9LRSrdAwZYgRbNhpleRZSaBi1eEbYAExW/fbpeMao7E3UNQ+Y75m+3FIO+msG33LE lcHlOFNGdy/QQKbxN0GTKrweZZPqDdp3xZbOY3/g9f3MUYatv8xpvOTQ+GLBNTBl8Sjm cNtu4ApN+SCz5+rLeSUIwAl9aDliMRZgiHwnfiwvNEKkgJRNsAYcqTmQgrWGqrnLEfXJ avJA== 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=i4/UxUP1wQzFm1XQsavQb3eByCWoYLLQNomx2am13gY=; b=xPmSKOmSQ5KrV/pxbR39ai6lj5FPxLfGeqyLo84cdL3pheYIHg9Gn43wNHktHAy7oQ 1CLp8ruIU19VfHvtjpiI4x0VeE8RMd3SVibaPqXqYOjaWBOkGieogbLTPFa896vppVsQ 3hvG1/jI76tiUSPaF4H0FCIed6cgIZ2+/C4BdggRd4xAMnHGaEoSJUEJmL4GvsTXh9f5 PS2SHhrzG3Lq3ZTvxO0ixbAp+7bHsEXQu7nWE8auyrLuT/IvSiHNqnIzmuVfoFjM5Xdo 0tMME5TPZ+Ww7jj689KLa3WeKgG37ZYV4lOi9F7NpGYK31D2ILAORJD3M0YnnCttiND5 8qww== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8njKUECzxNbLkag3/7BG4L8HdlBdIn2FK5kY13LHmSii68Vk5Q /XO/yVwb3H0lqExgPdnosOE= X-Google-Smtp-Source: AGRyM1ubDSxR0zbw/Tnmy7celr3Lt5zkIxm76sPRpPeG4E5HM9HCoCDMCr3m2P7JguSwtwRu28QDMw== X-Received: by 2002:a25:5bc3:0:b0:669:b722:beb8 with SMTP id p186-20020a255bc3000000b00669b722beb8mr10241450ybb.447.1656606568683; Thu, 30 Jun 2022 09:29:28 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:2fc1:0:b0:66d:6873:840d with SMTP id v184-20020a252fc1000000b0066d6873840dls3326433ybv.8.gmail; Thu, 30 Jun 2022 09:29:25 -0700 (PDT) X-Received: by 2002:a25:684:0:b0:65c:a09a:da8d with SMTP id 126-20020a250684000000b0065ca09ada8dmr10078911ybg.580.1656606565402; Thu, 30 Jun 2022 09:29:25 -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:30885 Archived-At: ------=_Part_1678_1674895004.1656606564849 Content-Type: multipart/alternative; boundary="----=_Part_1679_12790813.1656606564849" ------=_Part_1679_12790813.1656606564849 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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.html#= 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 UTC+2= : >> >>> Hi, >>> >>> After looking at the spec (the only experience I have with CSL files), = I=20 >>> think you would need to modify your CSL file, Add a locale element in t= he=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 t= he=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 the= =20 >>> quote marks in the main text, but not in the citations (which come from= 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 set=20 >>> in a YAML block (quot-marks: =C2=BB=C2=AB=E2=80=BA=E2=80=B9). (The docu= ment language is set to=20 >>> en-GB.)=20 >>> >>> The result changes the main text quotation marks but not the citations= =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 a= s=20 >>> 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, 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/da178cb2-48fa-4f53-841= 7-02dcae0129acn%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/062deeeb-9dfb-4ca3-ae3a= -10b360293315n%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/0db7e968-6c00-4399-bd8e-a7b2ad46a841n%40googlegroups.com. ------=_Part_1679_12790813.1656606564849 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 sugge= sted?






BPJ schrieb am Donnerstag, 30. Ju= ni 2022 um 18:23:27 UTC+2:
Have you tried running pandoc-quotes.lua af= ter citeproc?

use this in a de= faults file:

``````yaml<= /div>
filters:
=C2=A0 - citeproc
=C2=A0 - pandoc-quotes.lua
````= ``

Make sure to remove a= ny `citeproc: true` field!

=
Den tors 3= 0 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 quo= tes.

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

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


suk= i...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org schrieb am Donnerstag, 30. Juni 2022 um 14:34:13 UTC+2:<= br>
=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-discus...@goog= legroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/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= ...@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/0db7e968-6c00-4399-bd8e-a7b2ad46a841n%40googlegroups.= com.
------=_Part_1679_12790813.1656606564849-- ------=_Part_1678_1674895004.1656606564849--