From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33007 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Hodgson Newsgroups: gmane.text.pandoc Subject: Single and double quotes in Context with British English Date: Wed, 2 Aug 2023 07:10:40 -0700 (PDT) Message-ID: <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_4716_786096993.1690985440662" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23777"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARBSOIVGTAMGQE2OGOOGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 02 16:12:31 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f61.google.com ([209.85.216.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qRCaV-0005xG-EW for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 02 Aug 2023 16:12:31 +0200 Original-Received: by mail-pj1-f61.google.com with SMTP id 98e67ed59e1d1-267f1559391sf4346450a91.0 for ; Wed, 02 Aug 2023 07:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1690985550; x=1691590350; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=hEfdDnDhfEz5iGyaDXVoT2AKZZbBTf6MH+1nH4JNEA4=; b=bJ0kvju18v2bydTblRC/mx+DHJieD3PX1i+vmXm7m4aGUhCbE+TaiT1gHv/DP0igpS MwNLiah/CLUUJ7SU2piTWrZyKdQcC8hDthAhjCcbU/XiwWGbzZb6Jc3PQXXBK5576cbR SWVvvEF1dKa76+GvS1eRStm867d3AjT4kNqAu/IcWj3E4unrIVD8kXDF5qIDm9c5B1lo uMiYP9z7M2KtdWrhJYvU/UJutVz5Qh6GOIrcjlYw6qq0Qc3dNtqxijFqaPUTErRWAOSK gcjGBFUCoczUPwcCXPDm4kfrxxGNE1SgFIL6KI0kmmY9ih3tuFXR+KFWZ0Xi2MiXPJzP a8JA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690985550; x=1691590350; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=hEfdDnDhfEz5iGyaDXVoT2AKZZbBTf6MH+1nH4JNEA4=; b=dpGXzuwDkZwc3ZKuezjufIlYRbO+eebVtCfY+qYNGAHdb+YVen5vjBVZEmb9DeaFId 8cfx9WP8qeeJonteRy+4qhJGNSXKHEBkpGEBzBMNy+HFDyfR4zF8PQ3ew4Vyox/FTUKa fqb+BsTPgYEk1v0hbBKabDRle6yTuis8O++zqy2fBpez+Dr4EK7WYx948DSL1J63z5TB BaOV/IVvyE8flTOjRrfh0RsFDhDvPubIr4Q+9hfY9fDqxNA3Weik8PDjPKjy8MZuSkJ1 XsQ1q3PrpXuhh9opDzuIGxdlUdfWucc6zJrvLlq5bvImVBaB0zmXWzAp0E6nVaYSAJq8 yVLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690985550; x=1691590350; 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:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=hEfdDnDhfEz5iGyaDXVoT2AKZZbBTf6MH+1nH4JNEA4=; b=kB0FcWcoJYYFTTaYDxU3kHY59YBG5VHf6j+OmHMC07eiE+nsfNBKG/hXOPQp2nQK4Z 5xxjfpeZdCfYFLnfOHvGCJUCkhe3aIpak5rGiZ/wQVfeTWECwLxXnyhbe4eRDHspHLJD NzV0XpsW9h4BZtgQVBXvY2uIfiPzhWx6RUEcNVa+qqalHY2Ril+eb+Ye4bjqs9hgcuW0 dB0K1DpLllqN7CVkFuuwxJpQop4l9xhub5NiaS1+ZVkxi1krr+AkUN4fjLIPU0MR535A ICz28xjfJolRto3scgG/wYj9A5MIRv7pstW3gPAxxSOKv6kSK6sfE8cKHtdcJyFf5+xO Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLbQrY7OS+JlyBJFF1K0heUbQ/0kkaoUjlhBiywhxTifBBiDg9cK gHnQZuZxjOR/mdGDdXeJrpo= X-Google-Smtp-Source: APBJJlHmLKsBcqFxZh4l7WoYBzRbrqx7myYXXN4ZMCNpFwCyvslOgNavmfkxU4xNwWonQrfHBhNMIw== X-Received: by 2002:a17:90b:3908:b0:268:d1c:2421 with SMTP id ob8-20020a17090b390800b002680d1c2421mr14123842pjb.38.1690985549953; Wed, 02 Aug 2023 07:12:29 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90b:3445:b0:268:5531:420e with SMTP id lj5-20020a17090b344500b002685531420els5322953pjb.1.-pod-prod-03-us; Wed, 02 Aug 2023 07:12:24 -0700 (PDT) X-Received: by 2002:a05:6870:c7af:b0:1bb:3fd4:6cc2 with SMTP id dy47-20020a056870c7af00b001bb3fd46cc2mr17416572oab.6.1690985441437; Wed, 02 Aug 2023 07:10:41 -0700 (PDT) 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:33007 Archived-At: ------=_Part_4716_786096993.1690985440662 Content-Type: multipart/alternative; boundary="----=_Part_4717_1792865589.1690985440662" ------=_Part_4717_1792865589.1690985440662 Content-Type: text/plain; charset="UTF-8" When I have a markdown file like this: ``` 'foo' "bar" ``` The result of `pandoc --to=context foo.md` is `\quote{foo} \quotation{bar}`. The result of `pandoc --to=context --output=foo.pdf foo.md` is what I would expect: single quotes around 'foo' and double quotes around 'bar'. The output of `pandoc --metadata=lang:en-GB --to=context foo.md` is the same. But, the output of `pandoc --metadata=lang:en-GB --to=context --output=foo.pdf foo.md` has double quotes around 'foo' and single quotes around 'bar'. 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. 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 English (in this case, confusingly) is a single quote. I don't think it's a bug, therefore. I think that the same thing happens with csquotes and LaTeX. But there I don't turn on csquotes. Is there some way to get the behaviour I want while still using British English? -- 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/6bf5b865-b98a-4eab-ac15-9ca58d38e6cfn%40googlegroups.com. ------=_Part_4717_1792865589.1690985440662 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When I have a markdown file like this:

```<= /div>
'foo'
"bar"
```

The res= ult of `pandoc --to=3Dcontext foo.md` is `\quote{foo} \quotation{bar}`. The= result of `pandoc --to=3Dcontext --output=3Dfoo.pdf foo.md` is what I woul= d expect: single quotes around 'foo' and double quotes around 'bar'. The ou= tput of `pandoc --metadata=3Dlang:en-GB --to=3Dcontext foo.md` is the same.= 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 = 'bar'.

I could solve this by using double quotes= where I want single, and vice versa. But that will give the wrong result f= or HTML from the same source. Also, I'm sure that I would forget half the t= ime.

I assume that this happens because Pandoc t= reats the double quote as the 'top' level of quotes, which in US English is= a double quote and in UK English (in this case, confusingly) is a single q= uote. I don't think it's a bug, therefore.

I think that the same thing happens with csquotes and LaTeX. But there I d= on't turn on csquotes.

Is there some way to get = the behaviour I want while still using British English?

--
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/6bf5b865-b98a-4eab-ac15-9ca58d38e6cfn%40googlegroups.= com.
------=_Part_4717_1792865589.1690985440662-- ------=_Part_4716_786096993.1690985440662--