From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30880 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 05:41:14 -0700 (PDT) Message-ID: <062deeeb-9dfb-4ca3-ae3a-10b360293315n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1809_153806223.1656592874211" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26501"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCYPBGVKTEEBB25T62KQMGQETSKJFBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 30 14:41:19 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f184.google.com ([209.85.219.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o6tTy-0006ju-Ve for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 30 Jun 2022 14:41:18 +0200 Original-Received: by mail-yb1-f184.google.com with SMTP id n131-20020a255989000000b0066cef4b4a3asf9406398ybb.8 for ; Thu, 30 Jun 2022 05:41:18 -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=W2Vf1Pw2hKoVJkFaHS0955vKiexN+4H0l0hVhMh85U4=; b=KaxAgyPhbBrc9tebnNyI8uq+vLm1soFB9UliQdz4WrZS3bt4XM9r8s3Wl7VVG1gMVb eLhPa2jr9ujXDAEuUOqljrQzMGjNYBxoTuOe0MYmb+OvY1CmisQKFRsj1o514j7RrgYM Ei5IzX/uPNkHrxdfT8BMKBXZ14Em/une30+2YsDzyhUO0yjkACng8AkQuoUO25zTINqp pXys7EB7I2uBKqKcLewCFxg0exMIYfV6Fa6cMcjpGjrQK8keNL1ngiI5hE4sIqzcSKMh AVgbqOgv96PZq2nPkMVls8WazGsG6KQbF8m2OKW60wpEVT/Hw57YUmKLBMFRgPwstn0y zmFA== 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=W2Vf1Pw2hKoVJkFaHS0955vKiexN+4H0l0hVhMh85U4=; b=zYf6jkYAG0H6cnk+5mM2cxRFkZSEVbxD9btG+2VPvgClrkgOJwld8AfEkIo7DRQjaq XcPlkueB6SsSXmL1fjIVvRmdviz53b5xKN1fIDa6iabodPlMvjb6CbnqEwZu4M2SEt5V wFnSh43Qzn3hbyIyhhiqOSkJaRoj9I8u2vo3dC6Z027tmgU39XaUPbYm5D8wdQ9DqjKQ IYfnhW7Ch6iCm544lnqL9chuivYxhWwGeVt3H/yyN4hnX93zsYaKPNNbVhFK+rLpM8HV svujYFCrqP7zLA9tOYtpvcviGYW1LN0QnxCmfsL2GpCbzqSvGGsytt1Vvs7DA4fzdhwA q2kA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora9aUneiU/7ImSPO4nNNvBniqjyAlkSVpZRIv/QJSg6Nv7coL3iA UMrB1/bSbx/Cajqj244CeVo= X-Google-Smtp-Source: AGRyM1uhm/0pl2Fk+QI8NSpIkFDyfd8P/3D/1npQfMqvVV9HSCof9ApwMpWXbSvo8EvtI9pq3fO6ig== X-Received: by 2002:a81:f83:0:b0:317:dbd3:1f24 with SMTP id 125-20020a810f83000000b00317dbd31f24mr10517067ywp.386.1656592877813; Thu, 30 Jun 2022 05:41:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:44c4:0:b0:66d:68bd:9799 with SMTP id r187-20020a2544c4000000b0066d68bd9799ls2936040yba.2.gmail; Thu, 30 Jun 2022 05:41:14 -0700 (PDT) X-Received: by 2002:a25:38cb:0:b0:66d:3dd:385b with SMTP id f194-20020a2538cb000000b0066d03dd385bmr9642258yba.112.1656592874698; Thu, 30 Jun 2022 05:41:14 -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:30880 Archived-At: ------=_Part_1809_153806223.1656592874211 Content-Type: multipart/alternative; boundary="----=_Part_1810_232057550.1656592874211" ------=_Part_1810_232057550.1656592874211 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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#pun= ctuation I will give that a try (probably tomorrow) and report whether it works for= =20 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 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 or pd= f.=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 in=20 > a YAML block (quot-marks: =C2=BB=C2=AB=E2=80=BA=E2=80=B9). (The document = language is set to 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 as= =20 > well? > > (pandoc-version 2.18) > > --=20 > You received this message because you are subscribed to the Google Groups= =20 > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= =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/da178cb2-48fa-4f53-8417-= 02dcae0129acn%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/062deeeb-9dfb-4ca3-ae3a-10b360293315n%40googlegroups.com. ------=_Part_1810_232057550.1656592874211 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That's very helpful, thank you!

I had looked at the spec but overlo= oked the part on locales and quotes.

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

I will give th= at a try (probably tomorrow) and report whether it works for me or other pr= oblems crop up.


suki...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org schrieb am Donner= stag, 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-di= scus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/da178c= b2-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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/062deeeb-9dfb-4ca3-ae3a-10b360293315n%40googlegroups.= com.
------=_Part_1810_232057550.1656592874211-- ------=_Part_1809_153806223.1656592874211--