From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32469 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Issues with Quotation Marks in Pandoc When Mixing Japanese and English Texts Date: Wed, 12 Apr 2023 00:01:30 +0200 Message-ID: References: <4a0eafdc-b4a2-4a6a-9488-d2a1c9ef8351n@googlegroups.com> <602edc59-8983-4459-bbbb-85cee5f013b3n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d258d505f916a279" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3197"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBRNR26QQMGQEABJQ35I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Apr 12 00:01:48 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f187.google.com ([209.85.128.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pmM3e-0000dd-LK for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 12 Apr 2023 00:01:46 +0200 Original-Received: by mail-yw1-f187.google.com with SMTP id 00721157ae682-54efad677cbsf89984157b3.6 for ; Tue, 11 Apr 2023 15:01:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681250505; cv=pass; d=google.com; s=arc-20160816; b=OxMXPobkyVRgOezfC5xHHr7dVblgtIgmpBZMf+WbWB3XB/+b5CGntSfQZkxWDIoyjL 5Ys200cpZBp80z+fztkkfv6ZnP/JVbHODJNS3oN/SXCYbjj5dXCFlEDxcjLM5YUhz08h tKZn/NWWegU7wt3tk9W1G1zplgL9dowNmoJQiS+eknnlAiw56Cd+nEtormdCCgR7pLfi 1RkfWcf3jdpZlUtazUY0h2unXOh/8sTqiwUx5NsTNORkNyHBKvKkDsH7xgZ9yGvUm70s l3KZSvQVjlO+gS3aDusILMZEFaxkyhiPSSClecvaqLwDWnW/42gmrmeoaXGNeFFeJHgP /B1A== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=ETOVPOJE7HfW6NiHipmlXfl4xIlz9B9vJlPF8/jyGDI=; b=yklZICVC3lhsdHTk/lF6o7hV2Xo2ajdU26CAVvUEnixce1CQShmxk19imKhMRWzpaP AaKsMR4bkKyvh5gSGb69S7+loLimuHPT2/v7PPXvZoVYTwv0tcDF5I9hCsqfBBmwgcKa Kqr+ItAilNg4gFcPA5222WCoBSfi9ciOmz2WnOnuMKtlcBxYvszaNfByFOszjToM905a fespy6H6AJ5srInZrlE/ZNu0JECdmyru542p29IQ7pNmxXxnMvOe5bew+j6iiqS6KqEH o79KIYL6Vs9/IT170rE4cRV/tsQkaZFV2rLpIetAVuOW50TSrf4ArocK5ifMHjasvYj/ faEQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.176 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1681250505; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=ETOVPOJE7HfW6NiHipmlXfl4xIlz9B9vJlPF8/jyGDI=; b=dIQsp8kHPOjp0zG4L1nceKhNZ0+R0+A1OOIzqzYGldXiSz4q/v5wYAVPwbrHTgDcyh O2STs5NB0ULmVZ8g5/zwHtjKHW5Ud8D3yKqks8PEb7ud3ujxTzhe2oWlCVJ+gFfKY/Rv CkqOs3Jdo8tmDUNjG3Uud7ZZWRaOupUhvgD2zHWPzGDvaUvbjPgUVBC6RIaS9xkrLJf5 7LSbdniOu7FtCqkY5Djsr/dIyw6H7P3EgUGD9fr/fk1HJ7PR0VdnciQopZkwqsmn5tDT CQb3NBA9GaFWVsvam67ZeXODrYHUDE/uU4ljUnBIKrXI/JJrRqwlR3g2VRNcerbPGUyB FcDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681250505; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=ETOVPOJE7HfW6NiHipmlXfl4xIlz9B9vJlPF8/jyGDI=; b=hAiU/QSgXDd9dCpdr1Ojnhy94x2r9UW3vmdipR1OfSi3aHD5LCA8u0UgSyY0Q77FrR 6p4pLWh4dKI5l49udb9YMtcygd9X0vOGuilUV+OtHdJsBc2xbuUX8Z8VGCkeCQ8k5m6v g9XOWPnR/oLB/1WtTgnVklprMLonhwH6O5KOuJfkikmkX2Sf9k+qmKZBM6gXby02uDJ0 QNdMRXhAdO6qzzXXpJPQrFGQui0O2ynmjVJp0WL6W1T+tceKCplsJIAKIpnjXAqSSD6v /Br5UD21yQL4F/Bnb00M Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9cLnjtMv1vOBLcbfeBUO011c1/Srl1X9y6++LQvJpkXhGAKmHm3 VLsg6G0jIMhuUjgYihPK+wY= X-Google-Smtp-Source: AKy350a8b8RBBjKMkHDINjmZ1kno7WN/qGqscNJizldRsUqty/vp5wbsQLjTOa2H5130tpB1LrlAEg== X-Received: by 2002:a81:ae46:0:b0:54e:edf3:b48f with SMTP id g6-20020a81ae46000000b0054eedf3b48fmr489265ywk.5.1681250504936; Tue, 11 Apr 2023 15:01:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:814d:0:b0:b32:32f7:8ee7 with SMTP id j13-20020a25814d000000b00b3232f78ee7ls6708653ybm.2.-pod-prod-gmail; Tue, 11 Apr 2023 15:01:40 -0700 (PDT) X-Received: by 2002:a25:2b05:0:b0:b6e:b7ef:23de with SMTP id r5-20020a252b05000000b00b6eb7ef23demr11027837ybr.36.1681250500653; Tue, 11 Apr 2023 15:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681250500; cv=none; d=google.com; s=arc-20160816; b=Hdsp7GxzbUfY1KYWqcqGbBlIBoJpe5vg4d9/6o9m51xob9WA8jpZjeQ2g4ZqtU96bL kITeS2Rfxb4V4lU3UfPb7EO80hCoUknR0o5X1lIj/FbssGexxbt0JLkYwTovTXb0Q1Ua OXSpwbMH9eGm3+M1Wj/f01XNgmmi2hFRW6iRlefhF47Uh/nAWoyTLoPKq+0Wjf1LADWA KcEVESnp/Dg4291hzTngJ39JDbKF2p+i3TxSJiXzI0JaRVhYySuB2mkIEEDxy9OKRtCL 2ImGST3xZt+DUIueCPKh1+55YYC1u7cDfKtNf1LLoL0SCh1pIycsZ9v7CMN6SrT6JKUt dY5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=MogG/LQ3kxNI3mrQGA7jEdI1fSG8JJLtwPmOLJEEDIE=; b=0UgERqRwaVtupL2vO4zhaglmyKW7YFFTPQCw1F5V2R50zzw1GGU98OGj3uMSmFviiZ X/kigKQD2vacA4uG0lHA50XC82DqDSV59oqWeELgoefcBPtyJu85NS5/KE4oML/5Eh95 ydB+cRcXRdqlCWkj3rR0mcSp0SzVyPoGem0I3gqChpYsrYMBkCTNZK7+APpBmAvPblBu qJQYdHXC9cYhBmlKIUmER3ZUuxoltAdET8f+kPfHILtNIfg8JNFZSh6d+SaCqA2od8rC 1irie1kI5U1XsChQJi4TL+e201yHKE52iBB9Mjh/hdH32/fFCUlwq2fopC2gHR5Wpy5E a8Vw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.176 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com. [209.85.219.176]) by gmr-mx.google.com with ESMTPS id n203-20020a3740d4000000b0074a42fed169si965023qka.5.2023.04.11.15.01.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Apr 2023 15:01:40 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.176 as permitted sender) client-ip=209.85.219.176; Original-Received: by mail-yb1-f176.google.com with SMTP id z9so9814646ybs.9 for ; Tue, 11 Apr 2023 15:01:40 -0700 (PDT) X-Received: by 2002:a25:cb50:0:b0:b8b:f597:f3e5 with SMTP id b77-20020a25cb50000000b00b8bf597f3e5mr241529ybg.9.1681250499842; Tue, 11 Apr 2023 15:01:39 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.176 as permitted sender) smtp.mailfrom=melroch-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:32469 Archived-At: --000000000000d258d505f916a279 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Den tis 11 apr. 2023 07:53Shigeru Kobayashi skrev: > Dear Bastien DUMONT, > > Thank you very much for your reply. I tried as follows and got no changes= . > I'm sorry if I misunderstood your suggestion. > > *preamble.tex:* > \usepackage{fontspec} > \setmainfont{Georgia} > \setjamainfont{BIZ UDMincho Medium} > \babelfont[english]{rm}{Georgia} > > *input.md:* > --- > documentclass: bxjsarticle > classoption: pandoc > papersize: a4 > --- > > [That person said, "Hello, world!"]{lang=3Den} > And if you use Unicode curly quotes inside the span? If all else fails use Unicode curly quotes throughout and try this in the preamble: \newfontfamily{\GeorgiaFont}{Georgia} \usepackage{newunicodechar} \newunicodechar{=E2=80=98}{{\GeorgiaFont =E2=80=98}} \newunicodechar{=E2=80=99}{{\GeorgiaFont =E2=80=99}} \newunicodechar{=E2=80=9C}{{\GeorgiaFont =E2=80=9C}} \newunicodechar{=E2=80=9D}{{\GeorgiaFont =E2=80=9D}} Inspect the LaTeX output by pandoc and make sure you get curly quotes in the LaTeX source, otherwise experiment with the +smart/-smart extension on input and output format till you get curly quotes in the LaTeX source. > *shell:* > $ pandoc -V lang=3Dja input.md -o input.pdf --pdf-engine=3Dxelatex -V pan= doc > -H preamble.tex > > > > On Tuesday, April 11, 2023 at 2:32:57=E2=80=AFPM UTC+9 Bastien DUMONT wro= te: > >> An if you put the English parts in language spans as I said and add in >> header-includes \babelfont[english]{rm}{Georgia}? >> >> Le Monday 10 April 2023 =C3=A0 04:30:37PM, Shigeru Kobayashi a =C3=A9cri= t : >> > Dear Bastien DUMONT and John MacFarlane, >> > >> > Thank you very much for your reply. >> > >> > Regarding issue 1, I will use Unicode curly quotes instead of strait >> quotes to >> > avoid misinterpretation. >> > >> > Regarding issue 2, I tried marking the English text as [That person >> said, >> > "Hello, world!"]{lang=3Den}, but the result was the same (i.e., quotes >> are >> > typeset with the Japanese font instead of the English font). I also >> tried >> > Unicode curly quotes. >> > >> > I have confirmed that "pandoc input.md -t input.tex" generates a code >> as >> > expected as follows: >> > \foreignlanguage{english}{That person said, ``Hello, world!''} >> > >> > Therefore, this is puzzling to me... >> > >> > >> > Best regards, >> > Shigeru KOBAYASHI >> > >> > >> > On Tuesday, April 11, 2023 at 2:34:40=E2=80=AFAM UTC+9 John MacFarlane= wrote: >> > >> > I would recommend using unicode curly quotes in the markdown when >> you're >> > working in a language without interword spacing. We rely on interword >> > spacing for heuristics about smart quotes. >> > >> > > On Apr 9, 2023, at 4:53 PM, Shigeru Kobayashi >> wrote: >> > > >> > > Dear Pandoc community, >> > > >> > > I have encountered two issues regarding Pandoc's handling of >> quotation >> > marks in cases where Japanese and English texts are mixed. >> > > >> > > I am using Pandoc version 3.1.2 on macOS 12.6.3, and I can reproduce >> > these issues. If these are indeed bugs, I am planning to submit them a= s >> > issues on GitHub. However, I would appreciate any guidance if these >> issues >> > arise from my incorrect usage. >> > > >> > > Issue 1: Conversion of English phrases within Japanese text >> > > >> > > I have observed the following issue. "input.md" is the input file, >> and >> > "input.tex" is the output file. >> > > >> > > $ pandoc input.md -o input.tex >> > > >> > > input.md: >> > > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF"Hello, world!"=E3=81=A8=E8=A8= =80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82 >> > > >> > > input.tex: >> > > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF''Hello, world!{}``=E3=81=A8=E8= =A8=80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82 >> > > >> > > However, the conversion is correct when spaces are added before and >> after >> > the double quotation marks. >> > > >> > > input.md: >> > > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF "Hello, world!" =E3=81=A8=E8=A8= =80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82 >> > > >> > > input.tex: >> > > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF ``Hello, world!'' =E3=81=A8=E8= =A8=80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82 >> > > >> > > >> > > Issue 2: The quotation marks are treated as Japanese text >> > > >> > > When converting with Pandoc, the quotation marks are treated as >> Japanese >> > text, resulting in an unnaturally wide gap. I have confirmed this usin= g >> two >> > files, "preamble.tex" and "input.md," and specifying as follows: >> > > >> > > $ pandoc input.md -o input.pdf --pdf-engine=3Dxelatex -H preamble.te= x. >> > > >> > > preamble.tex: >> > > \usepackage{fontspec} >> > > >> > > \setmainfont{Georgia} >> > > \setjamainfont{BIZ UDMincho Medium} >> > > >> > > >> > > input.md: >> > > --- >> > > documentclass: bxjsarticle >> > > classoption: pandoc >> > > papersize: a4 >> > > fontsize: 10pt >> > > --- >> > > >> > > # =E3=81=AF=E3=81=98=E3=82=81=E3=81=AB >> > > >> > > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF "Hello, world!" =E3=81=A8=E8=A8= =80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82 >> > > >> > > That person said, "Hello, world!" >> > > >> > > >> > > >> > > In contrast, when I directly write the content in TeX and output it >> using >> > $ xelatex test.tex, the quotation marks are treated as English text, >> and >> > the expected output is obtained. >> > > >> > > test.tex: >> > > \documentclass[a4paper,xelatex,ja=3Dstandard]{bxjsarticle} >> > > >> > > \usepackage{fontspec} >> > > \setmainfont{Georgia} >> > > \setjamainfont{BIZ UDMincho Medium} >> > > >> > > \title{=E3=83=86=E3=82=B9=E3=83=88} >> > > \begin{document} >> > > \maketitle >> > > >> > > \section{=E3=81=AF=E3=81=98=E3=82=81=E3=81=AB} >> > > >> > > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF ``Hello, world!'' =E3=81=A8=E8= =A8=80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82 >> > > >> > > That person said, ``Hello, world!'' >> > > >> > > \end{document} >> > > >> > > >> > > >> > > Shigeru Kobayashi >> > > >> > > >> > > -- >> > > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > > To view this discussion on the web visit [1] >> https://groups.google.com/d/ >> > msgid/pandoc-discuss/ >> > 4a0eafdc-b4a2-4a6a-9488-d2a1c9ef8351n%40googlegroups.com. >> > > > 8.47.43.png> >> > >> > >> > -- >> > 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 [2]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit [3] >> https://groups.google.com/d/msgid/ >> > pandoc-discuss/602edc59-8983-4459-bbbb-85cee5f013b3n%40googlegroups.co= m. >> >> > >> > References: >> > >> > [1] >> https://groups.google.com/d/msgid/pandoc-discuss/4a0eafdc-b4a2-4a6a-9488= -d2a1c9ef8351n%40googlegroups.com >> > [2] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> > [3] >> https://groups.google.com/d/msgid/pandoc-discuss/602edc59-8983-4459-bbbb= -85cee5f013b3n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter >> >> -- > 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/bad8035a-d12b-4ec2-be89-= 788476948a56n%40googlegroups.com > > . > --=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/CADAJKhC8hggDWF93mdtd2kYhUhjuBGJ7Jk-q1qx7omm%2BdCsMXw%40mail= .gmail.com. --000000000000d258d505f916a279 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Den tis 11 apr. 2023 07:53Shigeru Kobayashi <mayfa= ir-+k8b35VvZrR3+QwDJ9on6Q@public.gmane.org> skrev:
= Dear=C2=A0Bastien DUMONT,

Thank you very much for your reply. I tr= ied as follows and got no changes. I'm sorry if I misunderstood your su= ggestion.

preamble.tex:
\usepackage{fontspec}
\setmainf= ont{Georgia}
\setjamainfont{BIZ UDMincho Medium}
\babelfont[english]{= rm}{Georgia}

input.md:
---
documentclass: bxjsarticleclassoption: pandoc
papersize: a4
---

[That person said, &qu= ot;Hello, world!"]{lang=3Den}

And if you use Unicode curly quotes inside the span?

If all else fails use Unicode curly = quotes throughout and try this in the preamble:

=
\newfontfamily{\GeorgiaFont}{Geor= gia}
\usepackage{newunicodechar}
\newunicodechar{=E2=80=98}{{\GeorgiaFont =E2=80=98}}
\newunicodechar{=E2=80=99}{{\GeorgiaFont =E2=80=99}}
\newunicodechar{=E2=80=9C}{{\GeorgiaFont =E2=80=9C}}
\newunicodechar{=E2=80=9D}{{\GeorgiaFont =E2=80=9D}}

Inspect the LaTeX output by pandoc an= d make sure you get curly quotes in the LaTeX source, otherwise experiment = with the +smart/-smart extension on input and output format till you get cu= rly quotes in the LaTeX source.





shell:
$ pandoc -V lang=3Dja= input.md -o input.pdf --pdf-engine=3Dxelatex -V pandoc -H preamble.tex
=



On Tuesday, April 11, 2023 at 2:32:57= =E2=80=AFPM UTC+9 Bastien DUMONT wrote:
An if you put the English parts in language spans as I sa= id and add in header-includes \babelfont[english]{rm}{Georgia}?

Le Monday 10 April 2023 =C3=A0 04:30:37PM, Shigeru Kobayashi a =C3=A9cr= it :
> Dear=C2=A0Bastien DUMONT and=C2=A0John MacFarlane,
>=20
> Thank you very much for your reply.
>=20
> Regarding issue 1, I will use Unicode curly quotes instead of stra= it quotes to
> avoid misinterpretation.
>=20
> Regarding issue 2, I tried marking the English text as [That perso= n said,
> "Hello, world!"]{lang=3Den}, but the result was the same= (i.e., quotes are
> typeset with the Japanese font instead of the English font). I als= o tried
> Unicode curly quotes.
>=20
> I have confirmed that "pandoc input.md -t input.tex" gen= erates a code as
> expected as follows:
> \foreignlanguage{english}{That person said, ``Hello, world!'&#= 39;}
>=20
> Therefore, this is puzzling to me...
>=20
>=20
> Best regards,
> Shigeru KOBAYASHI
>=20
>=20
> On Tuesday, April 11, 2023 at 2:34:40=E2=80=AFAM UTC+9 John MacFar= lane wrote:
>=20
> I would recommend using unicode curly quotes in the markdown w= hen you're
> working in a language without interword spacing. We rely on in= terword
> spacing for heuristics about smart quotes.
>=20
> > On Apr 9, 2023, at 4:53 PM, Shigeru Kobayashi <may...-+k8b35VvZrR3+QwDJ9on6Q@public.gmane.org> wrote:
> >
> > Dear Pandoc community,
> >
> > I have encountered two issues regarding Pandoc's hand= ling of quotation
> marks in cases where Japanese and English texts are mixed.
> >
> > I am using Pandoc version 3.1.2 on macOS 12.6.3, and I ca= n reproduce
> these issues. If these are indeed bugs, I am planning to submi= t them as
> issues on GitHub. However, I would appreciate any guidance if = these issues
> arise from my incorrect usage.
> >
> > Issue 1: Conversion of English phrases within Japanese te= xt
> >
> > I have observed the following issue. "input.md"= is the input file, and
> "input.tex" is the output file.
> >
> > $ pandoc input.md -o input.tex
> >
> > input.md:
> > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF"Hello, world!&q= uot;=E3=81=A8=E8=A8=80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82
> >
> > input.tex:
> > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF''Hello, worl= d!{}``=E3=81=A8=E8=A8=80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82
> >
> > However, the conversion is correct when spaces are added = before and after
> the double quotation marks.
> >
> > input.md:
> > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF "Hello, world!&= quot; =E3=81=A8=E8=A8=80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82
> >
> > input.tex:
> > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF ``Hello, world!'= ' =E3=81=A8=E8=A8=80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82
> >
> >
> > Issue 2: The quotation marks are treated as Japanese text
> >
> > When converting with Pandoc, the quotation marks are trea= ted as Japanese
> text, resulting in an unnaturally wide gap. I have confirmed t= his using two
> files, "preamble.tex" and "input.md," and = specifying as follows:
> >
> > $ pandoc input.md -o input.pdf --pdf-engine=3Dxelatex -H = preamble.tex.
> >
> > preamble.tex:
> > \usepackage{fontspec}
> >
> > \setmainfont{Georgia}
> > \setjamainfont{BIZ UDMincho Medium}
> >
> >
> > input.md:
> > ---
> > documentclass: bxjsarticle
> > classoption: pandoc
> > papersize: a4
> > fontsize: 10pt
> > ---
> >
> > # =E3=81=AF=E3=81=98=E3=82=81=E3=81=AB
> >
> > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF "Hello, world!&= quot; =E3=81=A8=E8=A8=80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82
> >
> > That person said, "Hello, world!"
> >
> > <pandoc test 2023-04-10 8.47.43.png>
> >
> > In contrast, when I directly write the content in TeX and= output it using
> $ xelatex test.tex, the quotation marks are treated as English= text, and
> the expected output is obtained.
> >
> > test.tex:
> > \documentclass[a4paper,xelatex,ja=3Dstandard]{bxjsarticle= }
> >
> > \usepackage{fontspec}
> > \setmainfont{Georgia}
> > \setjamainfont{BIZ UDMincho Medium}
> >
> > \title{=E3=83=86=E3=82=B9=E3=83=88}
> > \begin{document}
> > \maketitle
> >
> > \section{=E3=81=AF=E3=81=98=E3=82=81=E3=81=AB}
> >
> > =E3=81=9D=E3=81=AE=E4=BA=BA=E3=81=AF ``Hello, world!'= ' =E3=81=A8=E8=A8=80=E3=81=84=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82
> >
> > That person said, ``Hello, world!''
> >
> > \end{document}
> >
> > <xelatex test 2023-04-10 8.46.44.png>
> >
> > Shigeru Kobayashi
> >
> >
> > --
> > You received this message because you are subscribed to t= he Google Groups
> "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails = from it, send an
> email to pandoc-disc= us...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit [1]https://groups.google.com/d/
> msgid/pandoc-discuss/
> 4a0eafdc-b4a2-4a6a-9488-d2a1c9ef8351n%40go= oglegroups.com.
> > <xelatex test 2023-04-10 8.46.44.png><pandoc tes= t 2023-04-10 8.47.43.png>
>=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 email
> to [2]pandoc-discus...@g= ooglegroups.com.
> To view this discussion on the web visit [3]https://groups.google.com/d/msgid/
> pandoc-discuss/602edc59-8983-4459-bbbb-85cee5f013b3n%40googlegroups.com.
>=20
> References:
>=20
> [1] https://groups.google.com/d/msgid/pan= doc-discuss/4a0eafdc-b4a2-4a6a-9488-d2a1c9ef8351n%40googlegroups.com
> [2] mailto:pandoc-discus= ...@googlegroups.com
> [3] https://groups.google.com/d/msgid/pandoc-discuss/602edc59-8983-4459-b= bbb-85cee5f013b3n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfo= oter

--
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 pandoc-discuss+unsubscribe@goo= glegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b= ad8035a-d12b-4ec2-be89-788476948a56n%40googlegroups.com.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhC8hggDWF93mdtd2kYhUhjuBGJ7Jk-q1q= x7omm%2BdCsMXw%40mail.gmail.com.
--000000000000d258d505f916a279--