From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33012 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 10:57:11 -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_5036_915061116.1690999031866" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26936"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARBY5SVKTAMGQE22XATJQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 02 19:59:05 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f184.google.com ([209.85.160.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qRG7j-0006mg-IZ for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 02 Aug 2023 19:59:03 +0200 Original-Received: by mail-qt1-f184.google.com with SMTP id d75a77b69052e-4054bb356a6sf1262681cf.1 for ; Wed, 02 Aug 2023 10:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1690999141; x=1691603941; 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=Yla5bijpyMod5+WCW26PuTMemBY1qM28VK+atfCSPFk=; b=XVJwDOlpi1FVhz4H4CzEq96aUbcWff6F+sIKU0L3RJFOXODC6tmBibs7gPRnuCmx5T kff1MlqYqqIyoYfvqc4ncZN0iSRkRvMWXhg5FAV7717YrowNOW9wkL/4aOqcKwwQYJ3O 0QVfsNqZIiLbvyZf3UcABj9k1BR0C/HR76BE4OywKK3phuGtjEVf/vW71tILTQCbDCPD zZJvP2Cy9K+TV818Ql01frW0ZiWIM7QijWzECrss+sLJ3wZ51GOji9CP/AYFUaE4NZcn DcxQSn692rfnncXMm6sI0tlSNhzWF2iA2oSVoU3BSS9MZDNqtimv7ZCvH/Wt4LM0QK0P dDJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690999141; x=1691603941; 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=Yla5bijpyMod5+WCW26PuTMemBY1qM28VK+atfCSPFk=; b=VK0DDxu2BWjDjV9qiZZheQj0Xv77fYBFVdmQtY/GduaNtNhdlArDIOP8agLxuhR/H4 E9OPyEPdOOCpfiRYAxC+2EhQdt8LtVnjdirdqHP2jXS/e3+ygI38LTPq/XcRb73zZhTa 0pMBrEyoI40vhxmviplETdckRu4mGo6MU3wxyYgjAguLo8veOWCmYfhAjB6r2+cTY2qw 3jgeU1Mg2oC/wfS+TJzvMW3Ek2IzNBrr+rBw9oLSyJ9kZjg24skPPokeciCyxjoz0Of7 KYD2cGIGhkIEbFU2OuOzk+gN5XVkRvrPKEI4LVxAQLhr3x9AEYm4YJRn3AzAGr9PZOiC tbTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690999141; x=1691603941; 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=Yla5bijpyMod5+WCW26PuTMemBY1qM28VK+atfCSPFk=; b=IvMmI98q6DQZy+uednPTpGT8TFzVxT+riV1P5lkWU81fM3TR7Z8OjEpvMES5a8QhJY uh12/Mwv/bDLtItEl/upwwjXn3VDWcQykf4i8iX8d8NsR0ffWBMelWLkak8Lu90MtC5c KLFnIEMo0CXXRA+zffMBZbNy9tE8UQxFP3DQovA68QlLtCP8zl8Gb3A3okestThRIW8J DQ6nH0tiLx56UVSqpo/ojUPahJBn/eFqIXxH5iHH3Zerj6kgPrTx0w69NiuAwNJVx3NS QDP8xpzX9moUsrv7dYuERVN44WH+WTBo10oBOU2HPjP6xNLXPe Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLYlj8z3ky/9WezZZzov8BmtBXt69cISHWy+QLLao24LMA6pJE2+ zRO1pRy/7Fqc6sYEJm/pNsA= X-Google-Smtp-Source: APBJJlHCOCojPKSbyN7/dF2rypqBDlUuVhUD64epzyck8DcmqQHYAUggTAKBUh9k6TisViu0BjDsbA== X-Received: by 2002:a05:622a:120e:b0:403:9fd0:d43e with SMTP id y14-20020a05622a120e00b004039fd0d43emr21873923qtx.21.1690999141625; Wed, 02 Aug 2023 10:59:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:7255:0:b0:40e:c8af:ea83 with SMTP id l21-20020ac87255000000b0040ec8afea83ls735352qtp.1.-pod-prod-06-us; Wed, 02 Aug 2023 10:58:58 -0700 (PDT) X-Received: by 2002:a05:6870:5a84:b0:1bb:ad9e:2982 with SMTP id dt4-20020a0568705a8400b001bbad9e2982mr17040574oab.10.1690999032494; Wed, 02 Aug 2023 10:57:12 -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:33012 Archived-At: ------=_Part_5036_915061116.1690999031866 Content-Type: multipart/alternative; boundary="----=_Part_5037_921377100.1690999031866" ------=_Part_5037_921377100.1690999031866 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I wonder whether it would be feasible/desirable for the Context writer to= =20 change its mapping from DoubleQuote/SingleQuote to `\quotation`/`\quote`=20 based on the language of the document? (And the same for=20 `\enquote`/`\enquote*` for LaTeX.) On Wednesday, 2 August 2023 at 18:27:38 UTC+2 Thomas Hodgson wrote: > 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 an= d=20 >> single quotes as secondary quotes. How they are rendered in PDF depends = on=20 >> ConTeXt. To alter the rendering of British English, you will need to use= =20 >> the macro \setuplanguage ( >> https://wiki.contextgarden.net/Command/setuplanguage).=20 >> >> Le Wednesday 02 August 2023 =C3=A0 07:10:40AM, Thomas Hodgson a =C3=A9cr= it :=20 >> > When I have a markdown file like this:=20 >> >=20 >> > ```=20 >> > 'foo'=20 >> > "bar"=20 >> > ```=20 >> >=20 >> > The result of `pandoc --to=3Dcontext foo.md` is `\quote{foo}=20 >> \quotation{bar}`.=20 >> > The result of `pandoc --to=3Dcontext --output=3Dfoo.pdf foo.md` is wha= t I=20 >> would=20 >> > expect: single quotes around 'foo' and double quotes around 'bar'. The= =20 >> output=20 >> > of `pandoc --metadata=3Dlang:en-GB --to=3Dcontext foo.md` is the same.= But,=20 >> the=20 >> > output of `pandoc --metadata=3Dlang:en-GB --to=3Dcontext --output=3Dfo= o.pdf=20 >> foo.md`=20 >> > has double quotes around 'foo' and single quotes around 'bar'.=20 >> >=20 >> > I could solve this by using double quotes where I want single, and vic= e=20 >> versa.=20 >> > But that will give the wrong result for HTML from the same source.=20 >> Also, I'm=20 >> > sure that I would forget half the time.=20 >> >=20 >> > I assume that this happens because Pandoc treats the double quote as= =20 >> the 'top'=20 >> > level of quotes, which in US English is a double quote and in UK=20 >> English (in=20 >> > this case, confusingly) is a single quote. I don't think it's a bug,= =20 >> therefore.=20 >> >=20 >> > I think that the same thing happens with csquotes and LaTeX. But there= =20 >> I don't=20 >> > turn on csquotes.=20 >> >=20 >> > Is there some way to get the behaviour I want while still using Britis= h=20 >> > English?=20 >> >=20 >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups=20 >> > "pandoc-discuss" group.=20 >> > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email=20 >> > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >> > To view this discussion on the web visit [2] >> https://groups.google.com/d/msgid/=20 >> > pandoc-discuss/6bf5b865-b98a-4eab-ac15-9ca58d38e6cfn%40googlegroups.co= m.=20 >> >> >=20 >> > References:=20 >> >=20 >> > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=20 >> > [2]=20 >> https://groups.google.com/d/msgid/pandoc-discuss/6bf5b865-b98a-4eab-ac15= -9ca58d38e6cfn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter=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/a1f39c5a-624a-48d7-af9a-d4b7dd66f3bbn%40googlegroups.com. ------=_Part_5037_921377100.1690999031866 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I wonder whether it would be feasible/desirable for the Context writer to c= hange its mapping from DoubleQuote/SingleQuote to `\quotation`/`\quote` bas= ed on the language of the document? (And the same for `\enquote`/`\enquote*= ` for LaTeX.)

On Wednesday, 2 August 2023 at 18:27:38 UTC+2 Thomas Hodgso= n wrote:
Thank you.

I tried this (included in my header) a= nd 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 A= ugust 2023 at 16:55:36 UTC+2 Bastien DUMONT wrote:
As you saw in the ConTeXt outputs, whatever la= nguage you set in the metadata, Pandoc will always identify double quotes a= s primary quotes and single quotes as secondary quotes. How they are render= ed in PDF depends on ConTeXt. To alter the rendering of British English, yo= u will need to use the macro \setuplanguage (https://wiki.contextg= arden.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...-/JYPxA39Uh5TLH3MbocFFw@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]
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/a1f39c5a-624a-48d7-af9a-d4b7dd66f3bbn%40googlegroups.= com.
------=_Part_5037_921377100.1690999031866-- ------=_Part_5036_915061116.1690999031866--