From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33040 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: Wed, 9 Aug 2023 01:58:54 -0700 (PDT) Message-ID: <8bd22ba4-5a10-4e98-ad79-5d6b728381f8n@googlegroups.com> References: <30a732d6-b961-4d17-9fde-9e6ad2a5edf2n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3814_1086866657.1691571534016" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33458"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJY7ZPXUYARBUFKZWTAMGQECS2Q6ZY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 09 10:59:00 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f62.google.com ([209.85.161.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qTf1v-0008Wi-Vy for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 09 Aug 2023 10:59:00 +0200 Original-Received: by mail-oo1-f62.google.com with SMTP id 006d021491bc7-560c7abdbdcsf10455051eaf.0 for ; Wed, 09 Aug 2023 01:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1691571539; x=1692176339; 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=zTZzx0RsJ5IqArg9WC8KEx+6/+NtnDkSLI8KzodVgYM=; b=WtiRQkuC1h7obPoDNjV66PmJIfA4jKTUuvjmU+nVoGP2tuC5nVx8vxDJfAb7ZNsDt7 Hsick+vX+NPZxL+6mk8mjLdMLi0VNqzab0UnbfC5baG7o/Bp6OZjbt1G325Y2IitYMGP +12+8UbSBMPXqs4btvSE3A+jNIvn5m3uZcXT1LVAYdTgcmHQem87D8wI5LxWZpRfbUZH dPodmUX19bex3ULCheXO4R4nqcUnfwIFQhps8kO2Dl3JBq30Fl62ztap6EVDyJvA9eSR YlDEyRTpQetRBDSfjF0Ydql4JZ0wwkLC8Q3kJSo5AbnC7R9nnFe2cdNgNaqP7GUx3uIl //mg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691571539; x=1692176339; 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=zTZzx0RsJ5IqArg9WC8KEx+6/+NtnDkSLI8KzodVgYM=; b=q1aGU5dO17H9998Dj6Js46GWwaqUkcos22zyXwNeLTP6uOBHLEkkEXaYAzJbsprsEk OPww24GbQQEslMAoANHA1elvV+lHyVIYJCiXaOdtxCJBBfE8YL17VYXzq5KSc9QuYm+T iB+OcAfNDvw+AN2JM8VGkvyPpUTUoNrXBaPtlpKTl5TBYcyVucfoWC4QyN2FW8ipveEy 8zPq9HyelSyBjsqCIh2Ez7Man9zthrvxj8xpfOuUBByp4y978dmjVZFQYc5HkYA8J/Dz Bsitu+HwuUTrKV7qPTXvsESI5PFSccZxj3ql6YhZAk4jghgtZxTYlz8AKYoloA0qkQua ZViA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691571539; x=1692176339; 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=zTZzx0RsJ5IqArg9WC8KEx+6/+NtnDkSLI8KzodVgYM=; b=QPwtso0PYxVzSSBh5VIQ8zoYc7cijjgD2TwzGjBAi41gN7L67SDVvjn4yZZr/gwh68 5m42VaV95JhrQN8q1SDeSAyrxkAx1NO45yKFg7vjZu3lEKCwTQaAIKRcNe4TlssbKOTE 075srkfziZOfiBVUg8KCI8qTU/Ga6wAEENRwG5tG4a8ZIpxHNeLVsk/ln0ranjM3yYTO geaFTaqxMA0DysKaSpcXxTb+qNzWWC8G3sjK0rrIZhjusTeItnsua8eXge6ecZN3ZNAs T34kEJL0glCNuFKJq6+mskVSR5NuPCfknbwPTIHZH9OGxOU0bc Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YzNmEFiqaLrIkyRrtdn7pIZdIIzI/UeVCJsSri3MRlJbqIfDY0Z /25WVjHUGs1Lczf+YGoyQA8= X-Google-Smtp-Source: AGHT+IHLw3Wng53Bw5vTSazQO9wn+ojfUfW9TcfkGrZEGBIeNLVswGqOFztyawjf2ukbRuFEPzJVMw== X-Received: by 2002:a4a:274b:0:b0:56c:cefc:55d with SMTP id w11-20020a4a274b000000b0056ccefc055dmr1996781oow.4.1691571538897; Wed, 09 Aug 2023 01:58:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:334d:0:b0:56c:711b:1829 with SMTP id q74-20020a4a334d000000b0056c711b1829ls4413244ooq.0.-pod-prod-01-us; Wed, 09 Aug 2023 01:58:54 -0700 (PDT) X-Received: by 2002:a4a:524f:0:b0:56c:d455:544b with SMTP id d76-20020a4a524f000000b0056cd455544bmr696492oob.1.1691571534645; Wed, 09 Aug 2023 01:58:54 -0700 (PDT) In-Reply-To: <30a732d6-b961-4d17-9fde-9e6ad2a5edf2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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:33040 Archived-At: ------=_Part_3814_1086866657.1691571534016 Content-Type: multipart/alternative; boundary="----=_Part_3815_2071941779.1691571534016" ------=_Part_3815_2071941779.1691571534016 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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$]{$main= font$} \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$]{$mainfo= nt$} $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 spec= ify=20 > a language with `lang`. When I specify a language, XeLaTeX seem to ignore= =20 > 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/8bd22ba4-5a10-4e98-ad79-5d6b728381f8n%40googlegroups.com. ------=_Part_3815_2071941779.1691571534016 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Looking into it, it seems the following section:

$if(b= abel-lang)$
\babelprovide[main,import]{$babel-lang$}
$if(mainfont= )$
\ifPDFTeX
\else
\babelfont{rm}[$for(mainfontoptions)$$mai= nfontoptions$$sep$,$endfor$]{$mainfont$}
\fi
$endif$
$endif$=

Is expanded to:

\babelpro= vide[main,import]{swedish}
\ifPDFTeX
\else
\babelfont[swedis= h]{rm}{Minion Pro}
\fi

While, at the = same time, `mainfontoptions` is correctly expanded with setmainfont:
<= div>
=C2=A0 % xetex/luatex font selection
$if(mainfont= )$
=C2=A0 \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$e= ndfor$]{$mainfont$}
$endif$

Expanded = to:

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

<= br />
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=B6r= k:
`mainfonto= ptions: Numbers=3DOldStyle` works as expected when I don't specify a la= nguage with `lang`. When I specify a language, XeLaTeX seem to ignore the O= ldStyle settings. I suspect there are something broken with the default LaT= eX 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/8bd22ba4-5a10-4e98-ad79-5d6b728381f8n%40googlegroups.= com.
------=_Part_3815_2071941779.1691571534016-- ------=_Part_3814_1086866657.1691571534016--