From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33086 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Stefan_Bj=C3=B6rk?= Newsgroups: gmane.text.pandoc Subject: Re: mainfontoptions: Numbers=OldStyle ignored when lang: sv Date: Tue, 5 Sep 2023 01:19:13 -0700 (PDT) Message-ID: References: <30a732d6-b961-4d17-9fde-9e6ad2a5edf2n@googlegroups.com> <8bd22ba4-5a10-4e98-ad79-5d6b728381f8n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_25916_1185637910.1693901953055" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13910"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJY7ZPXUYARBA6J3OTQMGQELDL6QXQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 05 10:19:21 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f187.google.com ([209.85.214.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qdRHM-0003PD-KQ for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 05 Sep 2023 10:19:20 +0200 Original-Received: by mail-pl1-f187.google.com with SMTP id d9443c01a7336-1c0888c175fsf20646795ad.3 for ; Tue, 05 Sep 2023 01:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1693901959; x=1694506759; darn=m.gmane-mx.org; 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=ozwkyylJWO/wRKiu5ENorWKl6tsMhy+ClDrXy27WPU8=; b=J2+jphDq1Bx1xu7I7g7NhJcoljNE1uIuCgf5ZD5hE2ScWpc2pIl6ywWdu2uMPtc9Bz Q2e84ZytOmEr4kdKmAYvkw2DVm+vj4YnA1N/uKPzcGnPneYsfhZwM+F6DkV2Tu9odSZp G5fajWY05iwK/wnf6YFTP0zS7YdE665rKicM6mGdsP3ff2QXY2FU8ySrTwWb5jlRy9rq OUNHnzhUM5PGZjNZhEgENjzE3oSewU8Rx2iFp0vACnWrtMtKrhY3/zMFNW8q7G0LGZoq l+aaKJVeRwpwpD2h5ssPSBxa6VfxOamL9p/Xfg/H1luxsXVobpoIeNhKnjSO44H1FJZb ZxeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693901959; x=1694506759; darn=m.gmane-mx.org; 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=ozwkyylJWO/wRKiu5ENorWKl6tsMhy+ClDrXy27WPU8=; b=hbw/YyKjf21HPbEajpukueID04NH2MQ+hBDfWVEwdlEEZux3WXR8D7x/i2i8regcSI YcvFpsfSwM44/6qvKIdBij+nhvBTAS6kwq0f82gFS/fd+yZhkUgb7L1QatHBLhG6EK3E e1CAIzVRb5eiJudxk8NkenoFIn0v4AI6u3rvN968ROEDDtcGMW6nGjXyRQYCoYCmO8Qv 9ORgbeL61zszDQt6LE9v+/y/upOpUCXlQFKhyfZP2k/ca7FF8OIrU5S0FUhy7C47hVWk uYwUXDdfgUCbVfn660qEKloqFiSy/ZY/IPIIpJ0uztbYGKm/NurXopG4RRIXTdhqvRR8 OIrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693901959; x=1694506759; 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=ozwkyylJWO/wRKiu5ENorWKl6tsMhy+ClDrXy27WPU8=; b=UyAUz7TsWeT2MGikBFFqxgbe9HccepNfZju4nJsTe0a7OzXtuKZ6r+F99u6AvcWAEH bICxPoGiCwLBEIgBltLE3sfINaGeIHgYug2+WV7dnKDlKjHSgb7zkJQhPv1tH57HSoPp ugF7rR+Zx/9sWbecnFlIKKMia4tWHiwh7ujXsaFQHq9a4h8FLZPsr0vVWaVySCfRfjUw E5+yNps2p6/OS42HjrdfwVvuSotzoLRMHrI2lOBObd5v+z0Q1T7SLiGOG/QwOOnhs3Yz 0Qec4YyQMbiWz+BcMc3EQZd0rccXWAvVUurDJBGJWhGwWTfOjZ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yxptu4M4y9SKEnhCifWxM7ehg3PtSgp8KUUL5Q7+ct1SIQyPWq8 xWwUSgG1of2A8XMcDztW4NI= X-Google-Smtp-Source: AGHT+IHiz/sWnNW5N5jCNyCi/D8PF5cm9v+Z1TlVv7SASStw5NdB1Sejcf+gfcmpY7xMuOZQUDSNqg== X-Received: by 2002:a17:903:1250:b0:1c2:36a:52a5 with SMTP id u16-20020a170903125000b001c2036a52a5mr10985330plh.57.1693901959097; Tue, 05 Sep 2023 01:19:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:ab19:b0:1b0:2930:6e2f with SMTP id ik25-20020a170902ab1900b001b029306e2fls2750351plb.1.-pod-prod-04-us; Tue, 05 Sep 2023 01:19:14 -0700 (PDT) X-Received: by 2002:a17:902:c70b:b0:1c2:584:51ce with SMTP id p11-20020a170902c70b00b001c2058451cemr3629512plp.7.1693901954183; Tue, 05 Sep 2023 01:19:14 -0700 (PDT) In-Reply-To: X-Original-Sender: stefan.bjork-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:33086 Archived-At: ------=_Part_25916_1185637910.1693901953055 Content-Type: multipart/alternative; boundary="----=_Part_25917_90306280.1693901953055" ------=_Part_25917_90306280.1693901953055 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It does not work here with 3.1.7=E2=80=A6 torsdag 17 augusti 2023 kl. 18:25:46 UTC+2 skrev Thomas Hodgson: > It seems to work with 3.1.6.1: > > https://pandoc.org/try/?params=3D%7B%22text%22%3A%22---%5Cnlang%3A+sv%5Cn= mainfont%3A+Minion+Pro%5Cnmainfontoptions%3A+Numbers%3DOldStyle%5Cn---%5Cn%= 5CnHello+world.%22%2C%22to%22%3A%22latex%22%2C%22from%22%3A%22markdown%22%2= C%22standalone%22%3Atrue%2C%22embed-resources%22%3Afalse%2C%22table-of-cont= ents%22%3Afalse%2C%22number-sections%22%3Afalse%2C%22citeproc%22%3Afalse%2C= %22html-math-method%22%3A%22plain%22%2C%22wrap%22%3A%22auto%22%2C%22highlig= ht-style%22%3Anull%2C%22files%22%3A%7B%7D%2C%22template%22%3Anull%7D > > I think it was fixed in this commit: > > https://github.com/jgm/pandoc/commit/a5159c2c505cd9a87856877b3287aa0b88e4= e0ba > > On Wednesday, 9 August 2023 at 10:58:54 UTC+2 Stefan Bj=C3=B6rk wrote: > >> Looking into it, it seems the following section: >> >> $if(babel-lang)$ >> \babelprovide[main,import]{$babel-lang$} >> $if(mainfont)$ >> \ifPDFTeX >> \else >> >> \babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$m= ainfont$} >> \fi >> $endif$ >> $endif$ >> >> Is expanded to: >> >> \babelprovide[main,import]{swedish} >> \ifPDFTeX >> \else >> \babelfont[swedish]{rm}{Minion Pro} >> \fi >> >> While, at the same time, `mainfontoptions` is correctly expanded with=20 >> setmainfont: >> >> % xetex/luatex font selection >> $if(mainfont)$ >> =20 >> \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mai= nfont$} >> $endif$ >> >> Expanded to: >> >> % xetex/luatex font selection >> \setmainfont[Numbers=3DOldStyle]{Minion Pro} >> >> >> I don't get it. This is the default template of pandoc 3.1.6 (I upgraded= ). >> onsdag 9 augusti 2023 kl. 10:44:06 UTC+2 skrev Stefan Bj=C3=B6rk: >> >>> `mainfontoptions: Numbers=3DOldStyle` works as expected when I don't=20 >>> specify a language with `lang`. When I specify a language, XeLaTeX seem= to=20 >>> ignore the OldStyle settings. I suspect there are something broken with= the=20 >>> default LaTeX template? >>> >>> I'm using pandoc 3.1.1. >>> >>> --=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/dfd27e01-f013-4373-a11a-b356fc283805n%40googlegroups.com. ------=_Part_25917_90306280.1693901953055 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It does not work here with 3.1.7=E2=80=A6


I think i= t was fixed in this commit:

On Wednesday, 9 August 2023 at 10:58:54 UTC+2 St= efan Bj=C3=B6rk wrote:
Looking into it, it seems the following section:

$if(ba= bel-lang)$
\babelprovide[main,import]{$babel-lang$}
$if(mainfont)$\ifPDFTeX
\else
\babelfont{rm}[$for(mainfontoptions)$$mainfontoption= s$$sep$,$endfor$]{$mainfont$}
\fi
$endif$
$endif$

Is expanded to:

\babelprovide[main,import]{swedi= sh}
\ifPDFTeX
\else
\babelfont[swedish]{rm}{Minion Pro}
\fi
=

While, at the same time, `mainfontoptions` is cor= rectly expanded with setmainfont:

=C2=A0 % xetex/l= uatex font selection
$if(mainfont)$
=C2=A0 \setmainfont[$for(mainfont= options)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
$endif$
<= div>
Expanded to:

=C2=A0 % xetex/lua= tex font selection
=C2=A0 \setmainfont[Numbers=3DOldStyle]{Minion Pro}

I don't get it. This is the default tem= plate of pandoc 3.1.6 (I upgraded).
onsdag 9 augusti 2023 kl. 10:44:06 UTC+2 sk= rev Stefan Bj=C3=B6rk:
`mainfontoptions: Numbers=3DOldStyle` works as expected when I don't s= pecify a language with `lang`. When I specify a language, XeLaTeX seem to i= gnore the OldStyle settings. I suspect there are something broken with the = default LaTeX template?

I'm using pandoc 3.1.1.

--
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/dfd27e01-f013-4373-a11a-b356fc283805n%40googlegroups.= com.
------=_Part_25917_90306280.1693901953055-- ------=_Part_25916_1185637910.1693901953055--