From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30884 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Changing typographical quotation marks in citations Date: Thu, 30 Jun 2022 18:23:11 +0200 Message-ID: References: <062deeeb-9dfb-4ca3-ae3a-10b360293315n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003851d905e2acb0fd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33177"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRB7E366KQMGQEYXMZENA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 30 18:23:29 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f61.google.com ([209.85.221.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o6wwx-0008QO-Lq for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 30 Jun 2022 18:23:27 +0200 Original-Received: by mail-wr1-f61.google.com with SMTP id j14-20020adfa54e000000b0021b8c8204easf3248809wrb.0 for ; Thu, 30 Jun 2022 09:23:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656606207; cv=pass; d=google.com; s=arc-20160816; b=rUDVTpHS4EQFV6VNKee5z2cL1MzL9MU2tm3ivHbouU/cQhiNgPThxNKRMlT3U86MPr jyYazk1bqueqNlymCZx/FquAdUHlsttKe/hZM8l/y2plgm9ukEP8oNfUr0fA9IvxQagO EP3hTkHS3MdrfCgCrh/t9rTWNnLR6mxvWHLJALt1jC9p5jfte3RhuLo8DMCemMpQM61p 0N19clJb0H/+O9DE7xNjuf9ZiexoJwWSn/6KiWSWgHcTQLAV2JF5KYDAJbIv8qtYJePG bxBqeRXB8j4mf4t/CtyollbmChjutxzdanUtDBpKl/H5yS9v8clxWO9L2UxzduWDogsw /xyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=lbeom+gHRqX3Y09bL8EbZ7kwBTPnYSd7T/kdbxsF+oE=; b=WQH/9glmJMQuuSdU4Z+lDV2DSGeSus2tCmxZwdCAyoQv2+ff/aJ6aZ9jZwMnDwetoR OD2bmfcyFebXfqFhyWHRxvhVkR8useZ3hLeFiDyTXM1cbq1AwRfcClRqSVy+oDbi9Z6h 3TmGh4Ku0dUQHkFu/kExMiKkpSDGgNfy1yPZ8+ben/f+A+LNNTSgFkLIx6kcd6X2s4f4 k90qQPrBDYaoBBhxtx+vJV5UsB6azXWLG8JvDyOlcBMi1eqDdbsBexGzQS4ZiLPMwDq6 neorXyNZn9JORC86PaeP177UmQcqa9BFadslG+y0jSzHDNW2bTU5p0IM7d8uVScvjksB UjPw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.48 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=lbeom+gHRqX3Y09bL8EbZ7kwBTPnYSd7T/kdbxsF+oE=; b=FBh75Mg+4QH6wVR1pkwxV1Od9UM6p4fYrK8/pE7CqpoVqmAwf40q+t8sRl5J07eRPC 6g8hyKcd3Yqmn+0PO2CBvuB1I344YDrUt4ohfo7SUbCQojC2wCvdxb8qMuUDRNuXf59G FpEtoeqAZxjSG0+/FNlryUjbZni50ItCsj8Gs5yspOd7az/iug/X+1XzLsQHvP4Ls0sz hdpIh311iNMdMi6SwdKkciWgOSrD/V02Pt9Z+NzdMRL/d+ewltObhDY7Un/kxNcmQVGK tkwr/treuo/B0mjGmPB4sjk2y/CI9iclJoTahPRrIhfNDljeNO1e/Qku4u33dzbA+01Z 8Ecw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to :reply-to:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=lbeom+gHRqX3Y09bL8EbZ7kwBTPnYSd7T/kdbxsF+oE=; b=zxb2hQG7G1BD6jhJxeUe/URqIWksiMIbHWNn4ONbCmVjgS6eDCqaCMD6VfnboRqLBU LwZeLcgSUgrecZuIuVFx7zaSwrq94r6OHdM1j4LPVVHpNuVw21EBaO1l9gFIgLXHzKj4 2l0BYIv/9t/ssiYGZTKZpcxlL3dm/v1NnlIBICXjnEfPIzGs9eMNx2V74VwfQGJYT8nc KRedCHRhmHKkHsIVhXWDSUgq/ZDT8xqB+y1L91MfIuOTLHiLTWKHwqwmjdtxn6znN27X ygbJJnDOzRio/jBCUusM9l9PrCT+WdRpMvJuaVGQvrwU7JAtEgAiqTgCR39cEBgVjfNO yU2Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+e+Lex+ecqsYTW6EfY6FpfWTO5s5SS9Ba+bBhAvMdJc1ZIGt04 LdqBuMT+g7GzQtVUjDQ4sq8= X-Google-Smtp-Source: AGRyM1sCi/gRx68pYxUDV99mR6wDFdMlWX6j+o58OY88+Ihz2DVcfdLafZmCW00Xav7GMNXpF9GT6A== X-Received: by 2002:a05:600c:3847:b0:39c:6a85:d20c with SMTP id s7-20020a05600c384700b0039c6a85d20cmr12982725wmr.129.1656606207093; Thu, 30 Jun 2022 09:23:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:178b:b0:21d:350e:23a6 with SMTP id e11-20020a056000178b00b0021d350e23a6ls4654715wrg.2.gmail; Thu, 30 Jun 2022 09:23:23 -0700 (PDT) X-Received: by 2002:a05:6000:54f:b0:21b:944c:c70b with SMTP id b15-20020a056000054f00b0021b944cc70bmr9167527wrf.572.1656606202930; Thu, 30 Jun 2022 09:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656606202; cv=none; d=google.com; s=arc-20160816; b=s3WXPb8xZm0mYXU+EMt8m6XB0qqUm3IbpTpLg7xFRv9NcXk8LlhZd3FH2OMw4uLji5 MkYbSl9n4BjtBbbyY1OKiFGV7cOV0oMXUCM1xIGnBgzqMhqCeU9Tf9eAAm1NiSAaNdwu 2l8bLnmWEGiNH3UK0fV3Bhm/0kwAHcdI5LyfMR7MGFwipxnXy8IlBGeQEcIfCRZTldBg Sf9X0ZzrMoB4TLcA1XqvpuRfa2ZrO0hKOfBrFro5xzK4qlsSkxROhnE9hMM0Fo1rSTz9 9ZawVGTh/z1kT49RTyRTknB/nVjIDwd1qNUkljjBF2nuvg+ZDQbipfrwJQRVEhjEoZEF xd8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=U50QGhJnPJApuEy09iGFBIN1Mrqcx2JVBcxHBqzDiCE=; b=HNso3erW5NrSml6nucHCsyCGNgjf0FO5votzQQsV4QSaQKL2Y5cRgTHOs+jKCpeEYf 8CDImdclrFSXcAAuVMYH8FE5Y7qqrlxEVeiddmutLI8LGVc6HZWC0QGo4q3e3KUYgY75 5S55aA2pk9Hsr+IMASBcmf9pAr47+wCi5SSAMKLsl/hsGJdZTP7w5xXyvUjO2DAEdIlh bG2RUcLOJPvJlt0URV+hRWC2Fk8syrq2573ZFX47MWUncxk7dEmaaPWXTKV2ADZZmjHp /uqvehSla0MWKrerFRyTGh8cMcyWIQXfkOokr5uUN1XW4hVCZR48FMbuJggEis3Po11r 03MA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.48 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com. [209.85.208.48]) by gmr-mx.google.com with ESMTPS id x11-20020adfdccb000000b0021bbdc3209asi658963wrm.1.2022.06.30.09.23.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jun 2022 09:23:22 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.48 as permitted sender) client-ip=209.85.208.48; Original-Received: by mail-ed1-f48.google.com with SMTP id ej4so27282810edb.7 for ; Thu, 30 Jun 2022 09:23:22 -0700 (PDT) X-Received: by 2002:a50:fb13:0:b0:435:90d1:19ca with SMTP id d19-20020a50fb13000000b0043590d119camr12858426edq.159.1656606202284; Thu, 30 Jun 2022 09:23:22 -0700 (PDT) In-Reply-To: <062deeeb-9dfb-4ca3-ae3a-10b360293315n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.48 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@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:30884 Archived-At: --0000000000003851d905e2acb0fd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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! > > I had looked at the spec but overlooked the part on locales and quotes. > > > https://docs.citationstyles.org/en/stable/translating-locale-files.html#p= unctuation > > I will give that a try (probably tomorrow) and report whether it works fo= r > 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 >> think you would need to modify your CSL file, Add a locale element in th= e >> 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 >> English-language texts), I've run into the issue of needing to change th= e >> typographical quotation marks when converting from Markdown to docx or p= df. >> 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 docum= ent language is set to >> en-GB.) >> >> The result changes the main text quotation marks but not the citations >> (see screenshot). >> >> [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 >> well? >> >> (pandoc-version 2.18) >> >> -- >> You received this message because you are subscribed to the Google Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email 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 > > . > --=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/CADAJKhAaLedtM4gWri6L-OFxG0aPoLA24w71Wn8zw%2BM-QxQe4g%40mail= .gmail.com. --0000000000003851d905e2acb0fd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Have you tried running pandoc-quotes.lua after citeproc?<= div dir=3D"auto">
use this in a defaults file:

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

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

Den tors 30 juni 2022 14:42John Carter Wood <woodjo-ZOsAvrTRSvuEhhMi0yms2Q@public.gmane.org> skrev:
That's very helpful, thank you!
I had looked at the spec but overlooked the part on locales and quotes. <= br>
https://do= cs.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 crop up.


suki...@gmai= l.com 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-discus...@goog= legroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discu= ss/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-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/062deeeb-9= dfb-4ca3-ae3a-10b360293315n%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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhAaLedtM4gWri6L-OFxG0aPoLA24w71Wn= 8zw%2BM-QxQe4g%40mail.gmail.com.
--0000000000003851d905e2acb0fd--