From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30160 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Possible bugs in the markdown to PDF via lualatex conversion process for bilingual documents Date: Tue, 08 Feb 2022 13:34:13 -0800 Message-ID: References: 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="32112"; mail-complaints-to="usenet@ciao.gmane.io" To: "R (Chandra) Chandrasekhar" , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBAWEROIAMGQEQYMY5VA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 08 22:35:01 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f56.google.com ([209.85.166.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nHY8b-00082l-Ni for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 08 Feb 2022 22:35:01 +0100 Original-Received: by mail-io1-f56.google.com with SMTP id y22-20020a5ec816000000b006115762d153sf401863iol.7 for ; Tue, 08 Feb 2022 13:35:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644356100; cv=pass; d=google.com; s=arc-20160816; b=toqStJu1kIzzEnewMVsxiE8uTx0m5oHeKGHOIOq5+bRc1On+jutlGxsyjWA4GD65Hi 7Ud76QHGgdDAbbcf8jmndBtbM1gDnIeQNiD4rv3UAlQYB1/3h6GPaTg8O1tOOS8tDJV6 zzQ5D6aZHo+WkPEyQHafEe8vZwWcCV/PcwTa8r9/BBMks0IrfHrDjmopyHz3Isc5R8zp oRYwKDJJKEIq1Ll16VZniEnq6zpnokpmAWOUGmWl+VIigUf5RIA/OWAOaH957FLC2jA7 KCPC+8wTx1smw+CDF/erPbcVW4tt6mR4PEzGluiTaVJ2epdNUKGK07syCbGFqQsLD+j/ JwBw== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=y4CvelyyvZQIW1pgjFp6wd8RjwkRvN7s8QGcnPzlVLQ=; b=a5nvN+U8Kc1SApkgxI/+se9WPjb2FFGfxiUVAhYuPWgOurhl8Qt7FBS0yC5GCUbEGF 1pIbSbXEXGQp9RrPTDUyNQgT+psDOBY+2y1utG6Xk8V+ySMAZhF13km2byCPt+fyXo81 1Vj4uzHzVXNHddRUNSHk8yvNXXaZkxVBcLkKw6k23aDo+bMzZfURuUjRr9TfFi6vFfAF btM/Z+HsWtMn8IptGbaZwG8EGEaImifB3o7OGHk0/cnvlJobBPY7rSLL6SCyw8gKXPBT EG5I6iRvKwbaAmlarPVn8mAFrSDRSC7DqipCkGisFMWahKRmoPI4woQrmxIDgLtNQ4+9 CvXg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=Ba+Ci+Rh; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=y4CvelyyvZQIW1pgjFp6wd8RjwkRvN7s8QGcnPzlVLQ=; b=EgTuo48CQ1QQLLcK30t4o82PJMNJbqAJEfJNGcKzYcO7IXu/wtkUjq0apyoAgbTsyS +Yv33ENQwXo9KQluZX0zy5vD0zoEqPbYJ97zeZ7nfv+tuh/fF+C6QCGwqPmpkltAW0+d Zj1xodDM7VDzz8XBEU/vWpE9VT76+qvZbigAEYumH5mnDCIxc8TNVyUWzAsU/rnXo6hH UPoX9zwGiy59efR+vDuXL/5BTpNQq23sB+uCxBy0pmC9DnlhMrEoG41miS2zDGgqnvrE MMQw0pAJyrZIYf5VbVhsWJ3V+2ZwD/OyWDFIa2Xy0VR7eTZxP7o2/osVPmbUPPP+wISi 8qQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=y4CvelyyvZQIW1pgjFp6wd8RjwkRvN7s8QGcnPzlVLQ=; b=3Zyqte4GnpkHysgL4LLUZ81SlGs4PeSg+Ie3FR53HaDhTL0HTiOlXi1FHu4D9jbcn5 MpS8TCQ2x7BB7nsYjVC1gJ0t0JW/LTP+5VIKWuTqUrXnWVuhNnSCW1dBs+imHerEBxIl IyZdZNEwMSYgSt1AIQeR7IVrV5U6gV/N+73BighsQt+MwcpxYTzrSJM1KIOfXRp//KXQ EFQsDqDDjSdZPwUQ40zlKqDtM8lyS1etILOHEuT225s55LkuuRFPUDBb+tnog/9BQOKq 1Q9wxpHeIgXDJSJJ9QePi+CdPuQWn2Ys4vaTgTuKnMkI+YExYsj1XE4XD8oNY9FdSB2m Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533QKuDXlZbf0saNtpQdtG8tadoSqwLARDem4WYgynTkzQzEO6U5 jEivKIUVU/9dIWy6uQ4GjWE= X-Google-Smtp-Source: ABdhPJzdb+HYv9m5GaQnHstgpoK1Uo4t2Mho1F9xBBu+jJvT0cnQpFAzZXuNYhyQBsVC/56znQLhgw== X-Received: by 2002:a05:6602:154:: with SMTP id v20mr3016786iot.151.1644356100739; Tue, 08 Feb 2022 13:35:00 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6602:2d84:: with SMTP id k4ls7874iow.6.gmail; Tue, 08 Feb 2022 13:34:57 -0800 (PST) X-Received: by 2002:a05:6602:15c8:: with SMTP id f8mr2987411iow.35.1644356097912; Tue, 08 Feb 2022 13:34:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644356097; cv=none; d=google.com; s=arc-20160816; b=qCtc2Vqwm1F0kcGj6vLZ4AoFxn3xexYX/h1NJycr8qS70QIX0UoX5M1uAEZvTZlsvS 7AaZiqb5YEDGqGukAhIVdNkIfwOVBC0U966ZbeMFl7deaMWEVWLa1Mp+UxGwXzJxxqft 5xUpCj+zu9qp3//h6uCQl7vYNKiZ1RVyRoU8qd9pOZfinubtJy2OJ3TtVm1NqR7ZkUg2 LrbZa+uUsLzhJffHlNAk5B/9RygvCc1LQtfoTZ8hT4NuArDQsbhQerEy+UB1Rzl+ufUK 1FnXDHeDH9LC8gtpzveCLcCr4EHO0K1cDUo6KDXNuLBW9zpORIFJHgSZLD71HoKV7yBK jI2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=goTPFqcKfSvStMCEeL5f9SbkJ+cTGHx/MpTY9vpopgI=; b=mJCcs328Bky8/CXijObQ5TLW+soZd9NLaXJtyK11CdzwfTwYkx6IutplO1GCMDqVwy olY8/FNLzWjAw/B/GQjeg2Ar6EytlRDeGEzuknsNPkGmyAuM0vFYggt/o/0qGA2BbqcH Ti2UeTSHXZ9v+XdVcisKl0iX5nSDFQbnPZDn30+uMnD6V/JQCeHfZ5Kgh48s1xsEVMsr KRKU0saorbxm6hDoIAy52KPoqo9QlUqSTtXXvnKvqRk0epaivcN0SxVDey21H6kp2gWl Zmf9ucicvMON7b1PD/TchCCpeeWuHcV4lOD+qMewutWxW/IuFJ9Z2sgG4uJh5uBV8LVA o7FQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=Ba+Ci+Rh; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com. [2607:f8b0:4864:20::42e]) by gmr-mx.google.com with ESMTPS id v3si1588166jat.0.2022.02.08.13.34.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Feb 2022 13:34:57 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) client-ip=2607:f8b0:4864:20::42e; Original-Received: by mail-pf1-x42e.google.com with SMTP id z13so760257pfa.3 for ; Tue, 08 Feb 2022 13:34:57 -0800 (PST) X-Received: by 2002:a05:6a00:170d:: with SMTP id h13mr6428437pfc.11.1644356097142; Tue, 08 Feb 2022 13:34:57 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id 16sm6344777pfm.200.2022.02.08.13.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 13:34:56 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id AD9C2A298; Tue, 8 Feb 2022 16:34:15 -0500 (EST) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=Ba+Ci+Rh; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:30160 Archived-At: Let us know what version of pandoc you're using. There have been extensive changes recently that might be relevant (we no longer use polyglossia, but of course it's possible that something relating to our old polyglossia support was left in the template...). "R (Chandra) Chandrasekhar" writes: > I am writing a bilingual test file for English and Tamil in the same=20 > markdown document to yield a PDF via lualatex and babel. The file, which= =20 > correctly gives HTML and epub outputs, is: > > ``` > --- > title: "Bilingual Test for LuaLaTeX and Babel: English and Tamil" > lang: en-GB > --- > > This is English. > > {\sffamily This is also English.} > > =E0=AE=87=E0=AE=A4=E0=AF=81 =E0=AE=A4=E0=AE=AE=E0=AE=BF=E0=AE=B4=E0=AF=8D= . > > {\sffamily =E0=AE=87=E0=AE=A4=E0=AF=81=E0=AE=B5=E0=AF=81=E0=AE=AE=E0=AF= =8D =E0=AE=A4=E0=AE=AE=E0=AE=BF=E0=AE=B4=E0=AF=8D.} > > :::{lang=3Dta} > =E0=AE=87=E0=AE=A4=E0=AF=81 =E0=AE=95=E0=AF=82=E0=AE=9F =E0=AE=A4=E0=AE= =AE=E0=AE=BF=E0=AE=B4=E0=AF=8D =E0=AE=A4=E0=AE=BE=E0=AE=A9=E0=AF=8D. > ::: > > Back to English and EOF. > ``` > > The included `babel-in-header.tex` file is: > > ``` > % babel-in-header.textsf > \babelfont{rm}[Scale=3D1.0,Language=3DDefault,BoldFont=3D{* SemiBold}]{No= to Serif} > \babelfont{sf}[Language=3DDefault,BoldFont=3D{* SemiBold}]{Noto Sans} > \babelfont[tamil]{rm}[Language=3DDefault]{Noto Serif Tamil} > \babelfont[tamil]{sf}[Language=3DDefault]{Noto Sans Tamil} > \babelprovide[import,onchar=3Dids fonts]{tamil} > \defaultfontfeatures{Scale=3DMatchLowercase,Ligatures=3DTeX,Renderer=3DHa= rfBuzz} > \thispagestyle{empty} > ``` > > The compilation command is: > > pandoc --from markdown --to latex --include-in-header=20 > babel-in-header.tex --standalone --output en-ta-test.tex en-ta-test.md > > I find that the generated .tex file cannot be compiled to PDF because=20 > there appear to be two errors, which might be bugs: > > 1. The \babelfont commands appear _before_ the \usepackage{babel}=20 > invocation in the .tex file because of a commented requirement for=20 > polyglossia, which I am not using. As a result, I get an > > ``` > ! Undefined control sequence. > l.59 \babelfont > {rm}[Scale=3D1.0,Language=3DDefault,BoldFont=3D{*=20 > SemiBold}]{Noto Serif} > ``` > > error with lualatex. > > 2. If I manually transpose the \babelfont commands inserted by the=20 > `babel-in-header.tex` file to appear _after_ the babel invocation but=20 > before \title in the .tex file, I get this error: > > ``` > ! Package babel Error: Unknown option 'tamil'. Either you misspelled it > (babel) or the language definition file tamil.ldf was not= =20 > found. > > > See the babel package documentation for explanation. > ``` > > 3. If I remove `tamil,` from the babel invocation, > > ``` > \usepackage[tamil,main=3Dbritish]{babel} > ``` > > I am able to compile with lualatex, using the same command as before,=20 > and get the expected PDF, as shown in the attached screenshot. > > I realize that both pandoc and the babel package are under development,= =20 > and are therefore moving targets. > > Nevertheless, I believe these are bugs in the markdown to latex=20 > conversion process and point them out so that they may be corrected or=20 > circumvented, automatically rather than manually, from the pandoc end. > > Thanks. > > Chandra > > --=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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/b865ce6f-aa23-a1f0-b5f7-35601791d215%40gmail.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/yh480kbkzhm4a2.fsf%40johnmacfarlane.net.