From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33021 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Single and double quotes in Context with British English Date: Thu, 3 Aug 2023 10:16:46 +0000 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: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31566"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBFX5VWTAMGQE35OYE2A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 03 12:16:59 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f58.google.com ([209.85.128.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qRVO7-00081h-AF for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 03 Aug 2023 12:16:59 +0200 Original-Received: by mail-wm1-f58.google.com with SMTP id 5b1f17b1804b1-3fbb34f7224sf5073305e9.2 for ; Thu, 03 Aug 2023 03:16:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691057819; cv=pass; d=google.com; s=arc-20160816; b=YzcVau8p3bStgjf3cGG0jyVBlI1bFmhv9gEuAzDap35O6bEEfr44SdS3gzqPBlB4mM f5/pLR42ONRGiNboJtxuOVhRtJpWp4S5qB5pgCeqX8Aa9qjY1rN9rIWhPDzfjU8hp6Qv GcDjlyi981giEHEW5up522EOej3wjcAa4LYiq0K4423aHbcD3decFVzBNz+3ZcEX0R96 i+PFiQGFG33dXYW1YQA9O1mklVGoaFpIzy6BT+/rPnyQ15Z4Gmyx1BaEP3NqH75zv4Yi m5R0+EkQfTTAkJ3SRznrfT1rJHHSGHY+R3rdaA0OewIYY1D5kofAq1FL54UMzl7cvNJL oDNQ== 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:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=Jv6adozDC3mpDdj6pAGgVyNkGeGK894g9jeXmaJx1oA=; fh=zTk1OJJ/UIgC4n6p1b11w1SmP+rZGhoEUDeu1dHTagY=; b=OEVrFGFy5m1rlKgdbvLK25DdGgcU5PRnKhEMjU7DEnV80nKt9kCBTTh4ct5uo4R+YF La7sdsotyfPzC1q8JepiH6FM1PcdiNFZSXcFmk2ZyQmGo5J/1dZaU2dhZ2XsYt6i9/cG nUajr2OX8s76sEUq8xSGtXudp6JFVmRr0HtNO+6uEcigZpFQBf5qmLkCRB1P/b582YyX NndjztW/50twafySdbsqiu8tK38oQWpoFQ1BcizfTbECIhtqjjED79cTDrm5bWFgcaK/ dR7kAV/+2grTXDxpYwGhS0VjLvExFs+adhKx3voAVmkArHpXOO4q2Rgv0xPv3fXUOTl1 LwxA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=mr7Ay0rE; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1691057819; x=1691662619; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=Jv6adozDC3mpDdj6pAGgVyNkGeGK894g9jeXmaJx1oA=; b=gxcLDUSG3+3olvNpYS2KWO9d+epB1I5+LEhmo7L/oi+1lp0pWzV0NaZDET3aefNDxn ApRSD/fvFhOS3S96kWbL8vg8l8OV3iAfIyfJySR0i2VGyYx8hqtb792n1qCkhE+I7A5C Q8O0Dzjrufu+myJIAEodRjEGaH1P6uDsn/L7uJfBbnbw5eIXxu1PXiYZy5+zIxZrQQs0 DFHiGGD0vPsNh16fBO+0G5+7A5PH5koHLjy4p0dgbB2kfL7GbtZjDyQF9h0bfWLT/NU5 E8mgwFrqU6H1tScoj X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691057819; x=1691662619; 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-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=Jv6adozDC3mpDdj6pAGgVyNkGeGK894g9jeXmaJx1oA=; b=kLjhBp83thPrUVzWTZ4CiNFdKhUzzm78l/Zx2Q6gV15VSDwX9vzP67/FoPTakUnBQa 8hMBH6e09xHSuWNpki8flLEqZK+0FHY5CLD/VLj3ry/IVWl1OprZzeqXaAWMdvBT/ODn b02uW7zeuLBVHqiE0AIQvThAhdtd4FCr6ENzb5+0TRe6mO9hzf5zO0+bbPisnZSrgNTf K09chUU+WGMawmfzyQMfn8CgSTre Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLbDPw/CY6BoMP8x94NO6kdDT8hsIQ8VpyPeqQqezQF5M7kWjb5L o1G7fupyv8cArT+Urd2ataM= X-Google-Smtp-Source: APBJJlESXiJiBAaEHOd1nJvBw/M7ZE+q9b7b4zfloBAuChUQc4oFSrGHh8ZtQX6Fx9Jq+hRqyK3XyA== X-Received: by 2002:a7b:c855:0:b0:3fc:616:b0db with SMTP id c21-20020a7bc855000000b003fc0616b0dbmr6802836wml.9.1691057818530; Thu, 03 Aug 2023 03:16:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1c25:b0:3fd:2f74:fa8 with SMTP id j37-20020a05600c1c2500b003fd2f740fa8ls1433333wms.2.-pod-prod-02-eu; Thu, 03 Aug 2023 03:16:53 -0700 (PDT) X-Received: by 2002:a05:600c:ad2:b0:3fe:1cac:37d5 with SMTP id c18-20020a05600c0ad200b003fe1cac37d5mr6562233wmr.4.1691057813466; Thu, 03 Aug 2023 03:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691057813; cv=none; d=google.com; s=arc-20160816; b=YQ/WF0OHJ3xQuXNFm0u9Dd9TcsehHVBdZQfzl1nRYeQNce8adoGD0ilvzPuPRa0DNv ZtDQcSm+ErFbF4IpOtJRRz6vKmnhGCe8AMi7b+cJ5DoEmfFlq16+LaJ6dT+L6x9wTCJS eNDiv20MpF1mUxsP+MHy6uRVuzo/SLhKH1aWd5YjiWs6B5MDjDFjkS/iSEpgHj5d7AFr ai+rSD2iw3x/3NePfuRsCt0LuKZ9N+DB0NtsKSykiPb4qSTGp41hzBhE8GzZ1JobNBqA s/d0u47tvvRTJq6TgM/g1zBSWBCFMT4ZpjrK8V8Zg4EULuLO4j4FwAn0zhm0abEv1+q6 atVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=CLslVQoj3ZyOA2nPAhfGWZl1mafZJVsv63SGDY0aCXc=; fh=zTk1OJJ/UIgC4n6p1b11w1SmP+rZGhoEUDeu1dHTagY=; b=AdBZg3grpUrxjUlmVqYH6CD4aEKriRqLM8atOnK4lXNJPu0tmE1iwQUr/+R971sr3q f8NpiE37sG0whIfJZYm15yvsvOLhb9Ot5T/LwsEZ1AftumnzcJZzAJcsy2lkqInZ107n 8WzkrT0hCsnLzYzvHYbolEjTrQdLf931EGOGwW2e9bNkItC+icQmoom0qCdVZAmXZH+A 3/No7YVNFPUOFoY8hsih/WczqdI0OFQtQHMUmcO7IoWHr8uUsHbSS+UEITVqdKEbW921 jlId23oFN5stgDiylBLUrqYWohVBjIeSd++OhIdkg56NpY8bM7LA//j0M0DnZ6WhhYEE ZmDA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=mr7Ay0rE; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id o35-20020a05600c512300b003fe2591111dsi248909wms.1.2023.08.03.03.16.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 03:16:53 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F1E20240027 for ; Thu, 3 Aug 2023 12:16:52 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RGlBX48FTz9rxR for ; Thu, 3 Aug 2023 12:16:52 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=mr7Ay0rE; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:33021 Archived-At: Yes, you're right. One of the Lua filters in the official repo replaces the Quoted elements wi= th typographic quotes. Since the transformation is performed on the AST, it= will apply to all output formats. https://github.com/pandoc/lua-filters/tr= ee/master/pandoc-quotes.lua In your case, you would just have to write in your YAML block: lang: en-GB quot-lang: en-US Le Thursday 03 August 2023 =C3=A0 02:46:58AM, Thomas Hodgson a =C3=A9crit : > Thanks everybody. I understand better how this works. >=20 > 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 Context. And f= or > 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 double quot= e in > my source is a double quote in my output and no language setting will cha= nge > it. For example, with LaTeX: >=20 > '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: >=20 > On 8/2/23 20:54, Thomas 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{bar} > > > > My suggestion is that if the language is British (and maybe for som= e > > other varieties, I haven't checked) the result should be: > > > > 'foo' -> Quoted SingleQuote [ Str "foo" ] -> \quotation{foo} > > "bar" -> Quoted DoubleQuote [ Str "bar" ] -> \quote{bar} > > > > That would avoid my problem. >=20 > After having using ConTeXt for more than a decade (mainly without > 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 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). >=20 > 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: >=20 > Either you suggest to change the default in ConTeXt itself, or you pl= ace > a file that includes the following in your local tree: >=20 > \setuplanguage[en-gb][ > leftquotation=3D=E2=80=9C, > rightquotation=3D=E2=80=9D, > leftquote=3D=E2=80=98, > rightquote=3D=E2=80=99, > ] >=20 > 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". >=20 > If you are on Windows, it would read > "%USERPROFILE%/texmf/texmf-local/cont-loc.mkxl". >=20 > After creating the file and saving the contents, it might be wise to > clean the cache and generate it again. >=20 > "mtxrun --scripts cache --erase && mtxrun --generate" does this in pa= rt. >=20 > After that, the next compilation would take longer, since it will hav= e > to create the format file (required by ConTeXt). >=20 > Just in case it helps, >=20 > Pablo >=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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/d9bcf5be-c7f3-4225-ab9e-0d4cdc8de1e6n%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/d9bcf5be-c7f3-4225-a= b9e-0d4cdc8de1e6n%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/ZMt-jqUcF0aH34BJ%40localhost.