From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33010 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Hodgson Newsgroups: gmane.text.pandoc Subject: Re: Single and double quotes in Context with British English Date: Wed, 2 Aug 2023 09:27:38 -0700 (PDT) Message-ID: References: <6bf5b865-b98a-4eab-ac15-9ca58d38e6cfn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5870_1721749214.1690993658003" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26821"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARB3MSVKTAMGQEELUPZXQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 02 18:50:58 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f62.google.com ([209.85.161.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qRF3o-0006iL-GC for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 02 Aug 2023 18:50:56 +0200 Original-Received: by mail-oo1-f62.google.com with SMTP id 006d021491bc7-56cd299ba92sf4697029eaf.1 for ; Wed, 02 Aug 2023 09:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1690995055; x=1691599855; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=mmDdZFiuAy6nfsQ3i5sNZPDIIta4ro+j2N4a5FEn2a0=; b=O2sbI+Aj+5a9IBmT5shSUlTnjifpGDymdhpfVPZVvYfB4sD20t3VkTJWnBHhPThUpI PaFfFx/fHQlYs0RIVS4xr20JKdpH5MOlkIqaYe69P2A0EFrm9M8WW9JK1FWzV75eJ+Bg dW4XFEYezmYuLlUxbMuMYJV2J37Bwmv/p4vT8IZhsgAiu3EzXq4A6mhQ//HkdlGcOVGH /AlsWtTEb1gjlXcEuAl8tihQoCDywfIWZW/FsBw6cENuX1bqW/0NaQ0e9SWVyYTtlaKu /LmreiPahMx+d+P61ej3ltIJgjJWgYgww57ZdUSUGbGM0gCZ1kfgUUtSLPwiD5s1n58p nRIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690995055; x=1691599855; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=mmDdZFiuAy6nfsQ3i5sNZPDIIta4ro+j2N4a5FEn2a0=; b=kbZJsfhaEiVuXpFrDlZBTJ4pbMR0o8rjzDFsrpPq7NSSiTqzIC1TnNiEe40sfhRhR+ NTzV6t0RB9muD8AEadbukr77BkcV0hbnDBqjH9UH5M0/AlsT7Or1MKItFZ2eEZOVhjf8 YS+kADforEMdG/ipzodln8zJMRgdTsW25T7pWlNLPbKHD4tG2gRDU1cV5xLRInPR57JT SGp0CnVSnshswbFTOCTFXW5J8woYPMJnKDxGhTGvf2eO9y9lWEQ3tV2HTA8tnTYK55Uu Mt/G1pOXHUcOrG1OdMIZ3mplOfTHyNbbhPmcCZEhm1bJWL6zr022oNxUUeKLcLLmoJfZ B2lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690995055; x=1691599855; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=mmDdZFiuAy6nfsQ3i5sNZPDIIta4ro+j2N4a5FEn2a0=; b=NuiWay89fUQaqED94P6YOr5Pm+1naYz89msca/uRycmzCl0C89rBfimGw6glwf72dO Mz326tJ9WgVW967r1kEgrlRC6DLZqXqQ4pOj98O3Rmfl7yf9r3yH2eI9pZ/McmJd4cAO iwc1u25lX262X2zGCsskxccd3Q4fXmXAdURPBIFC4At51IwLjzDAupjz4y4mT8j1zqWl wGHskoOQmGnHcqwzL1ey99hgaqsFqH4ORWXYmQYrm/o7p8vliRxlZQ5BTDRReIudMHBT dq/ynxz/u1rzr1HJ6AhyDFrtoNoKq2WhHqg75QLcCCILLJZH3M Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLbQsECY/wDwrpGH8cb+Tf9FoS/YRHsU84NhCIiQ2xMgbNHY5Q3o 8XSp7La9/W5iVJN7Wv0NHKs= X-Google-Smtp-Source: APBJJlFC96JZ4bBrpWZdGidNrBEN3Phezy+qByP6I5YBLqWo4iM5goXRsUOvMWbSPxM8RFktVf8EbA== X-Received: by 2002:a4a:2419:0:b0:56c:8d61:f66f with SMTP id m25-20020a4a2419000000b0056c8d61f66fmr10809911oof.2.1690995055196; Wed, 02 Aug 2023 09:50:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:4fd8:0:b0:56d:28f8:bff6 with SMTP id c207-20020a4a4fd8000000b0056d28f8bff6ls117583oob.0.-pod-prod-00-us; Wed, 02 Aug 2023 09:50:52 -0700 (PDT) X-Received: by 2002:a05:6830:909:b0:6b7:528c:d8bf with SMTP id v9-20020a056830090900b006b7528cd8bfmr32765704ott.0.1690993658678; Wed, 02 Aug 2023 09:27:38 -0700 (PDT) In-Reply-To: X-Original-Sender: thomas.hodgson-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:33010 Archived-At: ------=_Part_5870_1721749214.1690993658003 Content-Type: multipart/alternative; boundary="----=_Part_5871_831751959.1690993658003" ------=_Part_5871_831751959.1690993658003 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you. I tried this (included in my header) and I get the result I want visually= =20 in the PDF: ``` \setuplanguage[en-gb][ leftquotation=3D=E2=80=9C, rightquotation=3D=E2=80=9D, leftquote=3D=E2=80=98, rightquote=3D=E2=80=99, ] ``` On Wednesday, 2 August 2023 at 16:55:36 UTC+2 Bastien DUMONT wrote: > As you saw in the ConTeXt outputs, whatever language you set in the=20 > metadata, Pandoc will always identify double quotes as primary quotes and= =20 > single quotes as secondary quotes. How they are rendered in PDF depends o= n=20 > ConTeXt. To alter the rendering of British English, you will need to use= =20 > the macro \setuplanguage ( > https://wiki.contextgarden.net/Command/setuplanguage). > > Le Wednesday 02 August 2023 =C3=A0 07:10:40AM, Thomas Hodgson a =C3=A9cri= t : > > When I have a markdown file like this: > >=20 > > ``` > > 'foo' > > "bar" > > ``` > >=20 > > The result of `pandoc --to=3Dcontext foo.md` is `\quote{foo}=20 > \quotation{bar}`. > > The result of `pandoc --to=3Dcontext --output=3Dfoo.pdf foo.md` is what= I=20 > would > > expect: single quotes around 'foo' and double quotes around 'bar'. The= =20 > output > > of `pandoc --metadata=3Dlang:en-GB --to=3Dcontext foo.md` is the same. = But,=20 > the > > output of `pandoc --metadata=3Dlang:en-GB --to=3Dcontext --output=3Dfoo= .pdf=20 > foo.md` > > has double quotes around 'foo' and single quotes around 'bar'. > >=20 > > I could solve this by using double quotes where I want single, and vice= =20 > versa. > > But that will give the wrong result for HTML from the same source. Also= ,=20 > I'm > > sure that I would forget half the time. > >=20 > > I assume that this happens because Pandoc treats the double quote as th= e=20 > 'top' > > level of quotes, which in US English is a double quote and in UK Englis= h=20 > (in > > this case, confusingly) is a single quote. I don't think it's a bug,=20 > therefore. > >=20 > > I think that the same thing happens with csquotes and LaTeX. But there = I=20 > don't > > turn on csquotes. > >=20 > > Is there some way to get the behaviour I want while still using British > > English? > >=20 > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [2] > https://groups.google.com/d/msgid/ > > pandoc-discuss/6bf5b865-b98a-4eab-ac15-9ca58d38e6cfn%40googlegroups.com= . > >=20 > > References: > >=20 > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [2]=20 > https://groups.google.com/d/msgid/pandoc-discuss/6bf5b865-b98a-4eab-ac15-= 9ca58d38e6cfn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > > --=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/a416671d-1c67-4f4b-97c4-24b18e440466n%40googlegroups.com. ------=_Part_5871_831751959.1690993658003 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you.

I tried this (included in my hea= der) and I get the result I want visually in the PDF:

```
\setuplanguage[en-gb][
=C2=A0 leftquotation=3D=E2= =80=9C,
=C2=A0 rightquotation=3D=E2=80=9D,
=C2=A0 leftquote=3D=E2= =80=98,
=C2=A0 rightquote=3D=E2=80=99,
]
```
=
On Wednesday, 2 August 2023 at 16:55:36 UTC+2 Bastien DUMONT wrote:
=
As you saw in the= ConTeXt outputs, whatever language you set in the metadata, Pandoc will al= ways identify double quotes as primary quotes and single quotes as secondar= y quotes. How they are rendered in PDF depends on ConTeXt. To alter the ren= dering of British English, you will need to use the macro \setuplanguage (<= a href=3D"https://wiki.contextgarden.net/Command/setuplanguage" target=3D"_= blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.com/url?= hl=3Den-GB&q=3Dhttps://wiki.contextgarden.net/Command/setuplanguage&= ;source=3Dgmail&ust=3D1691079206578000&usg=3DAOvVaw1Fq1JYm2RW0k4PTc= --1QgF">https://wiki.contextgarden.net/Command/setuplanguage).

Le Wednesday 02 August 2023 =C3=A0 07:10:40AM, Thomas Hodgson a =C3=A9c= rit :
> When I have a markdown file like this:
>=20
> ```
> 'foo'
> "bar"
> ```
>=20
> The result of `pandoc --to=3Dcontext foo.md` is `\quote{foo} \quot= ation{bar}`.
> The result of `pandoc --to=3Dcontext --output=3Dfoo.pdf foo.md` is= what I would
> expect: single quotes around 'foo' and double quotes aroun= d 'bar'. The output
> of `pandoc --metadata=3Dlang:en-GB --to=3Dcontext foo.md` is the s= ame. But, the
> output of `pandoc --metadata=3Dlang:en-GB --to=3Dcontext --output= =3Dfoo.pdf foo.md`
> has double quotes around 'foo' and single quotes around &#= 39;bar'.
>=20
> I could solve this by using double quotes where I want single, and= vice versa.
> But that will give the wrong result for HTML from the same source.= Also, I'm
> sure that I would forget half the time.
>=20
> I assume that this happens because Pandoc treats the double quote = as the 'top'
> level of quotes, which in US English is a double quote and in UK E= nglish (in
> this case, confusingly) is a single quote. I don't think it= 9;s a bug, therefore.
>=20
> I think that the same thing happens with csquotes and LaTeX. But t= here I don't
> turn on csquotes.
>=20
> Is there some way to get the behaviour I want while still using Br= itish
> English?
>=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 email
> to [1]pandoc-discus...@= googlegroups.com.
> To view this discussion on the web visit [2]https://groups.google.com/d/msgid/
> pandoc-discuss/6bf5b865-b98a-4eab-ac15-9ca58d38e6cfn%40googlegroups.com.
>=20
> References:
>=20
> [1] mailto:pandoc-discu= s...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] https://gro= ups.google.com/d/msgid/pandoc-discuss/6bf5b865-b98a-4eab-ac15-9ca58d38e6cfn= %40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter

--
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/a416671d-1c67-4f4b-97c4-24b18e440466n%40googlegroups.= com.
------=_Part_5871_831751959.1690993658003-- ------=_Part_5870_1721749214.1690993658003--