From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33058 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Hodgson Newsgroups: gmane.text.pandoc Subject: Re: mainfontoptions: Numbers=OldStyle ignored when lang: sv Date: Thu, 17 Aug 2023 09:25:46 -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_2632_96115177.1692289546395" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4383"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARBDEU7GTAMGQE7QDICPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 17 18:25:53 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f191.google.com ([209.85.210.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qWfon-0000uF-9r for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Aug 2023 18:25:53 +0200 Original-Received: by mail-pf1-f191.google.com with SMTP id d2e1a72fcca58-68892eab70esf2984085b3a.3 for ; Thu, 17 Aug 2023 09:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1692289552; x=1692894352; 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=+uAG7S6mj2FxdKaoPpneEkKPBlj6JaJeFTo30zgkETQ=; b=dXBzZCwuhEaHv5oahhGGBO4sjr4twnxnjaZtRVUJu5b28UztBcbuV0V99Qq3SnG4QN apV1Kc3r9iiI4bwbfhVKkDsMTPg6/s47sxGWSkBlpy7DPpj18lfclBEdCEQaEJQij9ct JG6YKfcrmTfobCH+rMS2uxKPhOg0maSMEZp2f2xZbBok2fL3n4hLK/CkUX6ao76lnptR bmxx84vTIUhU2E7+esDqb0ELiT0kNyxWjlmpl2dFgAVze0mWCFMX0XhhYZWcIqM33mp+ AqZYWX+O2JD0nrEDyqAQoB9tHOx1QxxsPaU9V23wB+BobzUYOHjB1wYUW7rxtoEOC8VK 7hFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692289552; x=1692894352; 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=+uAG7S6mj2FxdKaoPpneEkKPBlj6JaJeFTo30zgkETQ=; b=VAOtgo+yH8Vi0QoCKO/NjCb/tSMJXvvHWeCkK6XjKmHuQPd92hcrfLcwM7ZGrd2Ybu UB5M4En86+pC7VTiJD13US6WXQUZyonmGLilIu2UXkF30wWrOFYD3sx7Ja3g4cByS2oH g57sMzK5VrOFhlm+1xfs9ZP3NT1vzSs8+l06aAnVIGQ/kBn4RbvoNirv571tO3p89JcR fPIRXvRPZV0/45kowVDjbFzNOddN52M9FpSS+zCa5rmpeiU3pid+s5xmntTnxJQvVz/h JQS1aZsWvHANwoNBJxRkt8YABj7s4lwHc1sJ5/3uTsV2xIHSbLTPNID9SIvuXepdtB/x fWZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692289552; x=1692894352; 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=+uAG7S6mj2FxdKaoPpneEkKPBlj6JaJeFTo30zgkETQ=; b=JYg3DZUKWLz96QGrrJBova1Y0wGWk/CZSQBgk2DMADzrIq3mq8FUOVQpbWEQeEjULk NXh16Vvx5S4FzeVkdFWmE0nfnjKM+fqEt0mnoZ7i+KfQZHXXB5exvyMEFrvRhRCcXwzv 7NUCeOHxVl0TCbtIWyVM4CUr7o61ajUcIkgZPRc48llzZdwSBK9eYy6IKPNjvZbrtgTQ ZGJiRq53FAY7r/EoLhiCL391zAs9pLg8n6jZLcuNAdTGTVZAlGtYP9dwI6eviCCztVqA ETRXQHhLy479e1mjtNtjJgRPyPGn4OXBHHdDuRvMXNatMVV0Ua Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yx3Ie0chTeO18P0DtB4KNIZ6DiGFKwMdghX0Ojkl7bl9h9/N8Cs jyU4hr+Al2MJjLubJQuRLDA= X-Google-Smtp-Source: AGHT+IHUhZb+hW9+KevTpg50dq0gEZP2LrvEE7QWV+8piWnoRFdjzY7Ok1AWyn+CE/bxs+u7wuxH8A== X-Received: by 2002:a05:6a00:22cb:b0:687:7ef9:a796 with SMTP id f11-20020a056a0022cb00b006877ef9a796mr6320730pfj.25.1692289552000; Thu, 17 Aug 2023 09:25:52 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:844b:0:b0:686:c222:8807 with SMTP id k72-20020a62844b000000b00686c2228807ls56459pfd.1.-pod-prod-08-us; Thu, 17 Aug 2023 09:25:47 -0700 (PDT) X-Received: by 2002:a05:6a00:198a:b0:688:47b1:a89f with SMTP id d10-20020a056a00198a00b0068847b1a89fmr2443146pfl.3.1692289547507; Thu, 17 Aug 2023 09:25:47 -0700 (PDT) In-Reply-To: <8bd22ba4-5a10-4e98-ad79-5d6b728381f8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: thomas.hodgson-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:33058 Archived-At: ------=_Part_2632_96115177.1692289546395 Content-Type: multipart/alternative; boundary="----=_Part_2633_283150192.1692289546395" ------=_Part_2633_283150192.1692289546395 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It seems to work with 3.1.6.1: https://pandoc.org/try/?params=3D%7B%22text%22%3A%22---%5Cnlang%3A+sv%5Cnma= infont%3A+Minion+Pro%5Cnmainfontoptions%3A+Numbers%3DOldStyle%5Cn---%5Cn%5C= nHello+world.%22%2C%22to%22%3A%22latex%22%2C%22from%22%3A%22markdown%22%2C%= 22standalone%22%3Atrue%2C%22embed-resources%22%3Afalse%2C%22table-of-conten= ts%22%3Afalse%2C%22number-sections%22%3Afalse%2C%22citeproc%22%3Afalse%2C%2= 2html-math-method%22%3A%22plain%22%2C%22wrap%22%3A%22auto%22%2C%22highlight= -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/a5159c2c505cd9a87856877b3287aa0b88e4e0= ba 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$]{$ma= infont$} > \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$]{$main= font$} > $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/c891d83c-b2b5-4117-96eb-91ccc61871c2n%40googlegroups.com. ------=_Part_2633_283150192.1692289546395 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It seems to work with 3.1.6.1:
https://pandoc.org/try/?param= s=3D%7B%22text%22%3A%22---%5Cnlang%3A+sv%5Cnmainfont%3A+Minion+Pro%5Cnmainf= ontoptions%3A+Numbers%3DOldStyle%5Cn---%5Cn%5CnHello+world.%22%2C%22to%22%3= A%22latex%22%2C%22from%22%3A%22markdown%22%2C%22standalone%22%3Atrue%2C%22e= mbed-resources%22%3Afalse%2C%22table-of-contents%22%3Afalse%2C%22number-sec= tions%22%3Afalse%2C%22citeproc%22%3Afalse%2C%22html-math-method%22%3A%22pla= in%22%2C%22wrap%22%3A%22auto%22%2C%22highlight-style%22%3Anull%2C%22files%2= 2%3A%7B%7D%2C%22template%22%3Anull%7D

I think it= was fixed in this commit:
https://github.com/jgm/pandoc/commit/a= 5159c2c505cd9a87856877b3287aa0b88e4e0ba

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-lan= g$}
$if(mainfont)$
\ifPDFTeX
\else
\babelfont{rm}[$for(mainfont= options)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
\fi
$endif$
= $endif$

Is expanded to:

\babelpr= ovide[main,import]{swedish}
\ifPDFTeX
\else
\babelfont[swedish]{rm= }{Minion Pro}
\fi

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

=C2=A0 % xetex/luatex font selection
$if(mainfont)$
=C2=A0 \s= etmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont= $}
$endif$

Expanded to:

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


I don't get i= t. 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 e= xpected when I don't specify a language with `lang`. When I specify a l= anguage, XeLaTeX seem to ignore the OldStyle settings. I suspect there are = something broken with the default LaTeX template?

I'= m using pandoc 3.1.1.

<= /div>

--
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/c891d83c-b2b5-4117-96eb-91ccc61871c2n%40googlegroups.= com.
------=_Part_2633_283150192.1692289546395-- ------=_Part_2632_96115177.1692289546395--