From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33020 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: Thu, 3 Aug 2023 02:46:58 -0700 (PDT) Message-ID: References: <6bf5b865-b98a-4eab-ac15-9ca58d38e6cfn@googlegroups.com> <1513fe42-80ad-4acd-bb53-85a04ed52a7cn@googlegroups.com> <8e63fe5e-de8b-1bdb-27d7-60fab49f2b7b@web.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2618_1555276499.1691056018232" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36367"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARBE7PVWTAMGQEIHAYZUQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 03 11:47:04 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f59.google.com ([209.85.160.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qRUv8-0009FT-SS for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 03 Aug 2023 11:47:02 +0200 Original-Received: by mail-oa1-f59.google.com with SMTP id 586e51a60fabf-1be9b41bd5fsf945732fac.1 for ; Thu, 03 Aug 2023 02:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1691056021; x=1691660821; 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=BhqKdI2Eg5aSe4NPnind/koQG/nfaXymd0P//DH7Mrk=; b=HJFdnVgyqa7HmdoqwOstLig6B2f+SaXuAvbPzlUdjqa7On2x8w9rlrMK1xsr/txmCk 6Q94FrB9h2xnoOxNztyBlgGNZ5KWqDUM+8YF1RAVsmhkJuV5rstfVOhfps+3vh99wAo1 RUR5wxSmk3N5n7cMlXq19rc41LO4s71WL9lpsnQKEpv+aJXrf2uQLH0Fh+35rl64PeWT 9Ur2ux3kZQxprxBX0SZij0jsc2JMjmWalGE0DnrbrW4mHD6OF6Ubf92XDB0LBjw+SqLS yflFHp6ks75eWe3Cqt+Ki2Fiqk2krBQQxBqUahr/QCpq/a6AiltyBQSg8f/a6/dkF0a+ 5JyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691056021; x=1691660821; 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=BhqKdI2Eg5aSe4NPnind/koQG/nfaXymd0P//DH7Mrk=; b=fSWoR6x5j6vyOzoAZHQbUr1lmb3txB7HOkXjaDPjVI2uywgOYoZPSxy8ZnWIFbILPT 8RugaI2jpeiTWiVFJGpt0dSzJOI3CTrAtHBvIn+KKWa51SmlTLkutbKphnG5oKwh73Oz GzdNICbphgi+vrQ6/J9hpR3pjcc1zzfI8gB36Pp33OPiKKIlLa0RqZjlSaEU8nneh6pJ S9gpOKx578lh+L3TgpvQLSzfBxXlBsEvspoBjlt7YtBtF8GeYr6g+ueLv+WJzeT2BozC 1PhgAVEM272lz5KIBJGZahRwZFbJEfU0LzQKTve4VbqryGmOUJWADamrVOptnCUaf9qM GX4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691056021; x=1691660821; 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=BhqKdI2Eg5aSe4NPnind/koQG/nfaXymd0P//DH7Mrk=; b=Z8K///UBI5nOdelZyD/IYm6BK8Tz0/o+qYvAeWhMFgzlo2rGNfBaVWhuEujKGzWEhn X56uB+U6exhOeCj6e2ChUxmJ5zegHC7J/vUXlH/WCK/O/HUDKz+c/pCvMxyVtZ3MABHB RHfQA7Uib4YBOcBoReloa3SuV1HUpqZfwzGXyXntGp2WoRfFGOOCfVmjjFA4Ss9eIKf+ o9xDfubwEHxOUcs8xdkKfFV12JS9hoqxx8cP6zBG0SPEDedmlAb/Tq4LX05kmeqV8aBk zTxkAk/CWNskPA+YtMQsdU1dC877LL2RYtekQWrug2eO0yabKv Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLZqR8xCj5QT+TAni9jjGXbrnnMwzJoIGxCq+Ndksg0A5fX83p8I H5NxlMghUF0iew1cIrgkzyE= X-Google-Smtp-Source: APBJJlHKA0bqrqJvT72gmmTU4Rk0npdknlHuDlsohcwum62gkyMDR4sSULmdJWOmZCPBbSMHGbuxAA== X-Received: by 2002:a05:6870:7a7:b0:1bb:9c27:c7e6 with SMTP id en39-20020a05687007a700b001bb9c27c7e6mr21896859oab.41.1691056021833; Thu, 03 Aug 2023 02:47:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:b4a0:b0:1bb:af41:1099 with SMTP id y32-20020a056870b4a000b001bbaf411099ls4491395oap.0.-pod-prod-03-us; Thu, 03 Aug 2023 02:46:59 -0700 (PDT) X-Received: by 2002:a9d:7c90:0:b0:6b9:cc6b:275a with SMTP id q16-20020a9d7c90000000b006b9cc6b275amr18044025otn.3.1691056019020; Thu, 03 Aug 2023 02:46:59 -0700 (PDT) In-Reply-To: <8e63fe5e-de8b-1bdb-27d7-60fab49f2b7b-S0/GAf8tV78@public.gmane.org> 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:33020 Archived-At: ------=_Part_2618_1555276499.1691056018232 Content-Type: multipart/alternative; boundary="----=_Part_2619_847061417.1691056018232" ------=_Part_2619_847061417.1691056018232 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks everybody. I understand better how this works. The thing I still find awkward is that I can treat the quotes as semantic= =20 markup only for some output formats. It works that way for Context. And for= =20 LaTeX with csquotes, and HTML with q tags (and custom CSS). But for LaTeX= =20 without csquotes, html without q tags, or ODT (for example) a double quote= =20 in my source is a double quote in my output and no language setting will=20 change it. For example, with LaTeX: 'foo' -> Quoted SingleQuote [ Str "foo" ] -> `foo' "bar" -> Quoted DoubleQuote [ Str "bar" ] -> ``bar''=20 On Wednesday, 2 August 2023 at 22:26:53 UTC+2 Pablo Rodr=C3=ADguez wrote: On 8/2/23 20:54, Thomas Hodgson wrote:=20 > Correct me if I'm wrong, but here is how I think it works now:=20 >=20 > 'foo' -> Quoted SingleQuote [ Str "foo" ] -> \quote{foo}=20 > "bar" -> Quoted DoubleQuote [ Str "bar" ] -> \quotation{bar}=20 >=20 > My suggestion is that if the language is British (and maybe for some=20 > other varieties, I haven't checked) the result should be:=20 >=20 > 'foo' -> Quoted SingleQuote [ Str "foo" ] -> \quotation{foo}=20 > "bar" -> Quoted DoubleQuote [ Str "bar" ] -> \quote{bar}=20 >=20 > That would avoid my problem.=20 After having using ConTeXt for more than a decade (mainly without=20 pandoc), I think this is an issue with ConTeXt, not with pandoc.=20 Quotes or quotation marks aren=E2=80=99t set in stone. I mean, for Spanish = and=20 any language with diacritical marks I would never use these =E2=80=9Cquotes= =E2=80=9D,=20 but these =C2=ABones=C2=BB (either single or double). They don=E2=80=99t in= terfere with=20 the marks (such as =E2=80=9C=C3=B1and=C3=BA=E2=80=9D and =C2=AB=C3=B1and=C3= =BA=C2=BB).=20 I=E2=80=99m not a native speaker and I=E2=80=99m mainly exposed to US Engli= sh. If=20 British English uses double quotes for \quotation and single quotes for=20 \quote, you could do the following:=20 Either you suggest to change the default in ConTeXt itself, or you place=20 a file that includes the following in your local tree:=20 \setuplanguage[en-gb][=20 leftquotation=3D=E2=80=9C,=20 rightquotation=3D=E2=80=9D,=20 leftquote=3D=E2=80=98,=20 rightquote=3D=E2=80=99,=20 ]=20 I don=E2=80=99t have myself TeX Live installed (I use a pure ConTeXt=20 distribution) and in my case the file is=20 "$HOME/texmf/texmf-local/cont-loc.mkxl".=20 If you are on Windows, it would read=20 "%USERPROFILE%/texmf/texmf-local/cont-loc.mkxl".=20 After creating the file and saving the contents, it might be wise to=20 clean the cache and generate it again.=20 "mtxrun --scripts cache --erase && mtxrun --generate" does this in part.=20 After that, the next compilation would take longer, since it will have=20 to create the format file (required by ConTeXt).=20 Just in case it helps,=20 Pablo=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/d9bcf5be-c7f3-4225-ab9e-0d4cdc8de1e6n%40googlegroups.com. ------=_Part_2619_847061417.1691056018232 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks everybody. I understand better how this works.

=
The thing I still find awkward is that I can treat the quotes as= semantic markup only for some output formats. It works that way for Contex= t. And for LaTeX with csquotes, and HTML with q tags (and custom CSS). But = for LaTeX without csquotes, html without q tags, or ODT (for example) a dou= ble quote in my source is a double quote in my output and no language setti= ng will change it. For example, with LaTeX:

'foo= ' -> Quoted SingleQuote [ Str "foo" ] -> `foo'
"bar" -> Quote= d DoubleQuote [ Str "bar" ] -> ``bar''

On Wednesday, 2 August 2023 at 22:26:53 UTC+2 Pablo Rodr=C3=ADgue= z wrote:
On 8/2/23 20:54, Th= omas Hodgson wrote:
> Correct me if I'm wrong, but here is how I think it works now:
>
> 'foo' -> Quoted SingleQuote [ Str "foo" ] -> \quote{foo}
> "bar" -> Quoted DoubleQuote [ Str "bar" ] -> \quotation{ba= r}
>
> My suggestion is that if the language is British (and maybe for = some
> other varieties, I haven't checked) the result should be:
>
> 'foo' -> Quoted SingleQuote [ Str "foo" ] -> \quotation{fo= o}
> "bar" -> Quoted DoubleQuote [ Str "bar" ] -> \quote{bar}
>
> That would avoid my problem.

After having using ConTeXt for more than a decade (mainly without
pandoc), I think this is an issue with ConTeXt, not with pandoc.

Quotes or quotation marks aren=E2=80=99t set in stone. I mean, for Sp= anish and
any language with diacritical marks I would never use these =E2=80=9C= quotes=E2=80=9D,
but these =C2=ABones=C2=BB (either single or double). They don=E2=80= =99t interfere with
the marks (such as =E2=80=9C=C3=B1and=C3=BA=E2=80=9D and =C2=AB=C3=B1= and=C3=BA=C2=BB).

I=E2=80=99m not a native speaker and I=E2=80=99m mainly exposed to US= English. If
British English uses double quotes for \quotation and single quotes f= or
\quote, you could do the following:

Either you suggest to change the default in ConTeXt itself, or you pl= ace
a file that includes the following in your local tree:

\setuplanguage[en-gb][
leftquotation=3D=E2=80=9C,
rightquotation=3D=E2=80=9D,
leftquote=3D=E2=80=98,
rightquote=3D=E2=80=99,
]

I don=E2=80=99t have myself TeX Live installed (I use a pure ConTeXt
distribution) and in my case the file is
"$HOME/texmf/texmf-local/cont-loc.mkxl".

If you are on Windows, it would read
"%USERPROFILE%/texmf/texmf-local/cont-loc.mkxl".

After creating the file and saving the contents, it might be wise to
clean the cache and generate it again.

"mtxrun --scripts cache --erase && mtxrun --generate" does th= is in part.

After that, the next compilation would take longer, since it will hav= e
to create the format file (required by ConTeXt).

Just in case it helps,

Pablo

--
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/d9bcf5be-c7f3-4225-ab9e-0d4cdc8de1e6n%40googlegroups.= com.
------=_Part_2619_847061417.1691056018232-- ------=_Part_2618_1555276499.1691056018232--