From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32468 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shigeru Kobayashi Newsgroups: gmane.text.pandoc Subject: Re: Issues with Quotation Marks in Pandoc When Mixing Japanese and English Texts Date: Mon, 10 Apr 2023 22:50:23 -0700 (PDT) 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/mixed; boundary="----=_Part_11268_1516786192.1681192223699" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35737"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDN3RFWFQMMBBHXL2OQQMGQEW37Q4FQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Apr 11 07:52:35 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f192.google.com ([209.85.215.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pm6vi-00096V-V4 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Apr 2023 07:52:35 +0200 Original-Received: by mail-pg1-f192.google.com with SMTP id j62-20020a638041000000b0051827ed9c15sf2810959pgd.7 for ; Mon, 10 Apr 2023 22:52:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681192353; cv=pass; d=google.com; s=arc-20160816; b=bo9nU6bXWcYLm9RTcxZEnMtLELQek753VbqUdeyfZCjXqqt4K9g72cp3ShPXSMAQbc 3WKdaREU3cBzgRod7xStA9vjRfP7osMJH1EANmo25p3J7nS8PfpkiBzSfURLWfFuICYg GGPYFUBd8Kh1MAi1G4VZbhQ1KhrzPlhhXArdWkiR6Cnu2swUv5v7GrJ59924+d/O1VZg f6uOpZHGT5F25TLvu4x+67e97+My+XYYwtBOFXuXugCfssnoD0dQ1i+PYiO+RE7awD5a pnL7+dga8PwphdaxZ6SbxTkmrHwI/c1F++MmhTo9A7Aowc8kO+8YOV3IE2zuzJ8ObPiH Gv/Q== 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:mime-version:subject :references:in-reply-to:message-id:to:from:date:sender :dkim-signature; bh=G0S7S51+DnaOWCO6xmcDtUSld4iMf3jOtNQUvN+aEB0=; b=SGysqKLgdbb47t+wYqjC4iamXJbAefBSMCqoiUOcpDSIiddjSjZ7QO8K02RrRX2JuD /dSxeVnEa3yRSa4+29m1gYA6SeY9q0hz0QIfs60g6atm5+0XAcpa6wsjeNrwGXXOG7P8 NOXA7XR6aKPoWMY5wgic+0oXpZLNVqDAKjq4noLLUSHcAac9ZbkzlP36j08w9dXP988a CCWc+a7aGoNOC64kYNnQi+jolilPrkKTRSM5Y3awo7rODKtDwZEp6buSKOqARPQekeM0 bNWtUbXM8bKt7XuHwK1g5cT0tGpy6XXLlOuMj5E9xxALJDMYQRLyaJCI6RQ+8ydxl3Vo NcWQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@iamas.ac.jp header.s=google20151224 header.b=mplFWpYx; spf=pass (google.com: domain of mayfair-+k8b35VvZrR3+QwDJ9on6Q@public.gmane.org designates 202.241.206.41 as permitted sender) smtp.mailfrom=mayfair-+k8b35VvZrR3+QwDJ9on6Q@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1681192353; 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:mime-version :subject:references:in-reply-to:message-id:to:from:date:sender:from :to:cc:subject:date:message-id:reply-to; bh=G0S7S51+DnaOWCO6xmcDtUSld4iMf3jOtNQUvN+aEB0=; b=ZT8oDKd6i+ww1LBt6137eZQ5+hO6FjaaDjCrNAGM70JASylu80l3fY3pHv09Ubgugv qzsAfSQG3hhnivUZ281nBTlSKFB/XChxcru9MGRi/XPOeT4f58ejrIHaCT6PVjzyV/jT aZVe82lgswma0UjXmYrXd/mT972JBnSdEjxb3VWcYYhiOjp8SYaMluSpVhOwx8PfPl9P tHkn+7yAkcxaITQni3xg2wBNMb6GEOHncJAPs4avQBlrFjOTUJ+789DZcQCfA3wv0pRb aQwlO3QijcnLugGTxXe2JPrV2sX6CcOMS3J9byd/V6PEu4LmJopdcMT5867Xwpw2Ry42 Mchw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681192353; 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: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=G0S7S51+DnaOWCO6xmcDtUSld4iMf3jOtNQUvN+aEB0=; b=VIgBDmXQXXdhFf5wQHuqbXC3fYLISYujeG51XusI0PO99W89eMUJ3hR3qBTd6f1dUU 6FJz1RD5A0rOPoi5ST2fsh2Tyiatz6HgXeIshhG8NS87MHJmsGJtTyvCPzpq0VoFE9mB y11K+n5n+3NxsX7vzxkif0Ksw31r8PxcmXGG+0TaZvFVZosRZlQIkD3Sez9Sg2XeEGNh MYkYuDxt6WfmWDSdLubU4upqh2gioKr+qBfW61I8nQt9PPc2+ILoBRrPKFIWzGii4M06 WNSKnFex+9L8DBs2gn71 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9drZG7EURM4njaFPExCTQVRhlbs7i0uqIs2xXjjF4lb+0nhl0rA weB6+tZInyYstZP10yGRlcQ= X-Google-Smtp-Source: AKy350b0FUnslpeJ/k+em93dzoy/P6YaF76Zpz1NjI9wMUfXcJVJFYEv+xe+7yzIX5TII3eujsHSow== X-Received: by 2002:a17:902:a614:b0:1a5:255d:efcc with SMTP id u20-20020a170902a61400b001a5255defccmr3299817plq.13.1681192353644; Mon, 10 Apr 2023 22:52:33 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:4701:b0:23c:1f9b:df20 with SMTP id h1-20020a17090a470100b0023c1f9bdf20ls32401743pjg.1.-pod-control-gmail; Mon, 10 Apr 2023 22:52:30 -0700 (PDT) X-Received: by 2002:a17:90b:4ac5:b0:246:9374:febb with SMTP id mh5-20020a17090b4ac500b002469374febbmr9539195pjb.19.1681192349950; Mon, 10 Apr 2023 22:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681192349; cv=none; d=google.com; s=arc-20160816; b=fzh3TLG7umOkKDQOJt40byIgAMaQJ/j6bMl06ULUQydvh1vxvPcWZdO3TH9xHVx9lZ zxcw0fzlTDEQ0MhrJ9OWg6PNNRBI48kEZX4RoKCyKWzwKORLs9AbQyEuVjrk1bf27g0R VV9yo3sucetCH8EL0yp+Ts3G6ZyusoS1ImCXHUW+zUpkDFDr9/QjcOMYpKaj9DqCAMD9 4MQpKJdHjpx6J65RFR2ekY/RHlg6mM2i9blNV0qO2LpPWgV5coqnvepPbNNDqzlX8rUc XpEZwik9QM7hZYTEYpEASySGOo2TzJ83SGx21KI8ljDScUAzDHdmmshXpEtyAC4Kv+/x 8knA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :dkim-signature; bh=zXYupJ4+CfOGNEzpBmOrRDvGsR4Dk30T8T5vREMgVX4=; b=R1o5KHrw4Du6+aWUS3RQY2RWNv3LPeROQtbrQKXBADtnWrRcUUszhR7td/h5ViFfAc MkSiZseZwCYXztfOOtrEmbvIhHtP3f4T9l0nB8s6meWZFhfxaoueVLOQrYvMrPzC6HcY sxNTEDXsXzAmrnDRD6+7agESTFLBvgq6AhRRztXfvZdEy5+ObqErUvIlWLj82+IVaOKe vIEbQ5Sj2Wcsna0/VelrZOBLOQ6gXU7dCYOrA8RPmFW17kdeXz/dvfeJ+G4YoIf3kCMT DLeA/weueDE3kkVIVxFWCCi5Y47wfxCWtZRWFO7ew+fC7Ochm8khZ14Ya2pZ/tbezMni lxIQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@iamas.ac.jp header.s=google20151224 header.b=mplFWpYx; spf=pass (google.com: domain of mayfair-+k8b35VvZrR3+QwDJ9on6Q@public.gmane.org designates 202.241.206.41 as permitted sender) smtp.mailfrom=mayfair-+k8b35VvZrR3+QwDJ9on6Q@public.gmane.org Original-Received: from ss11.activegate-ss.jp (ss11.activegate-ss.jp. [202.241.206.41]) by gmr-mx.google.com with ESMTPS id ot5-20020a17090b3b4500b00239e36686e4si60073pjb.3.2023.04.10.22.52.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Apr 2023 22:52:29 -0700 (PDT) Received-SPF: pass (google.com: domain of mayfair-+k8b35VvZrR3+QwDJ9on6Q@public.gmane.org designates 202.241.206.41 as permitted sender) client-ip=202.241.206.41; Original-Received: from mail.d.activegate-ss.jp (unknown [10.16.39.40]) (envelope sender: ) (not using TLS) by ss11.activegate-ss.jp (Active!gate) with ESMTP id LOyZ20676A; Tue, 11 Apr 2023 14:50:26 +0900 Original-Received: by mail-oi1-f198.google.com with SMTP id r130-20020acaf388000000b003893eb09687so74736oih.20; Mon, 10 Apr 2023 22:50:26 -0700 (PDT) X-Received: by 2002:a05:6808:6:b0:384:23ce:10e7 with SMTP id u6-20020a056808000600b0038423ce10e7mr1846754oic.1.1681192224658; Mon, 10 Apr 2023 22:50:24 -0700 (PDT) X-Received: by 2002:a05:6808:6:b0:384:23ce:10e7 with SMTP id u6-20020a056808000600b0038423ce10e7mr1846750oic.1.1681192224267; Mon, 10 Apr 2023 22:50:24 -0700 (PDT) In-Reply-To: X-Original-Sender: mayfair-+k8b35VvZrR3+QwDJ9on6Q@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@iamas.ac.jp header.s=google20151224 header.b=mplFWpYx; spf=pass (google.com: domain of mayfair-+k8b35VvZrR3+QwDJ9on6Q@public.gmane.org designates 202.241.206.41 as permitted sender) smtp.mailfrom=mayfair-+k8b35VvZrR3+QwDJ9on6Q@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:32468 Archived-At: ------=_Part_11268_1516786192.1681192223699 Content-Type: multipart/alternative; boundary="----=_Part_11269_611765670.1681192223699" ------=_Part_11269_611765670.1681192223699 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Bastien DUMONT, Thank you very much for your reply. I tried as follows and got no changes.= =20 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} *shell:* $ pandoc -V lang=3Dja input.md -o input.pdf --pdf-engine=3Dxelatex -V pando= c -H=20 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 said and add in=20 > header-includes \babelfont[english]{rm}{Georgia}? > > Le Monday 10 April 2023 =C3=A0 04:30:37PM, Shigeru Kobayashi a =C3=A9crit= : > > Dear Bastien DUMONT and John MacFarlane, > >=20 > > Thank you very much for your reply. > >=20 > > Regarding issue 1, I will use Unicode curly quotes instead of strait=20 > quotes to > > avoid misinterpretation. > >=20 > > Regarding issue 2, I tried marking the English text as [That person sai= d, > > "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 tri= ed > > Unicode curly quotes. > >=20 > > I have confirmed that "pandoc input.md -t input.tex" generates a code a= s > > expected as follows: > > \foreignlanguage{english}{That person said, ``Hello, world!''} > >=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 MacFarlane = wrote: > >=20 > > I would recommend using unicode curly quotes in the markdown when you'r= e > > working in a language without interword spacing. We rely on interword > > spacing for heuristics about smart quotes. > >=20 > > > On Apr 9, 2023, at 4:53 PM, Shigeru Kobayashi =20 > wrote: > > > > > > Dear Pandoc community, > > > > > > I have encountered two issues regarding Pandoc's handling of quotatio= n > > 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 as > > issues on GitHub. However, I would appreciate any guidance if these=20 > 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, an= d > > "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= =20 > 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=20 > Japanese > > text, resulting in an unnaturally wide gap. I have confirmed this using= =20 > 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!" =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= =20 > using > > $ xelatex test.tex, the quotation marks are treated as English text, an= d > > 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=20 > Groups > > "pandoc-discuss" group. > > > To unsubscribe from this group and stop receiving emails from it, sen= d=20 > 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> > >=20 > >=20 > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > 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.com= . > >=20 > > References: > >=20 > > [1]=20 > https://groups.google.com/d/msgid/pandoc-discuss/4a0eafdc-b4a2-4a6a-9488-= d2a1c9ef8351n%40googlegroups.com > > [2] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [3]=20 > https://groups.google.com/d/msgid/pandoc-discuss/602edc59-8983-4459-bbbb-= 85cee5f013b3n%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/bad8035a-d12b-4ec2-be89-788476948a56n%40googlegroups.com. ------=_Part_11269_611765670.1681192223699 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear=C2=A0Bastien DUMONT,

Thank you very much for your repl= y. 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}
\babe= lfont[english]{rm}{Georgia}

input.md:
---
docum= entclass: bxjsarticle
classoption: pandoc
papersize: a4
---<= br />
[That person said, "Hello, world!"]{lang=3Den}

she= ll:
$ pandoc -V lang=3Dja input.md -o input.pdf --pdf-engine=3Dxel= atex -V pandoc -H preamble.tex


=
On Tuesday, April 11, 2023 at 2:32:57=E2=80=AFPM UTC+9 Bastien DUMONT wr= ote:
An if yo= u put the English parts in language spans as I said and add in header-inclu= des \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-dis= cus...-/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%40googlegroups.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...@= googlegroups.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.c= om/d/msgid/pandoc-discuss/4a0eafdc-b4a2-4a6a-9488-d2a1c9ef8351n%40googlegro= ups.com
> [2] mailto:pandoc-discu= s...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [3] https://groups= .google.com/d/msgid/pandoc-discuss/602edc59-8983-4459-bbbb-85cee5f013b3n%40= googlegroups.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/bad8035a-d12b-4ec2-be89-788476948a56n%40googlegroups.= com.
------=_Part_11269_611765670.1681192223699-- ------=_Part_11268_1516786192.1681192223699--