public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Thomas Hodgson <thomas.hodgson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: mainfontoptions: Numbers=OldStyle ignored when lang: sv
Date: Thu, 17 Aug 2023 09:25:46 -0700 (PDT)	[thread overview]
Message-ID: <c891d83c-b2b5-4117-96eb-91ccc61871c2n@googlegroups.com> (raw)
In-Reply-To: <8bd22ba4-5a10-4e98-ad79-5d6b728381f8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 2370 bytes --]

It seems to work with 3.1.6.1:
https://pandoc.org/try/?params=%7B%22text%22%3A%22---%5Cnlang%3A+sv%5Cnmainfont%3A+Minion+Pro%5Cnmainfontoptions%3A+Numbers%3DOldStyle%5Cn---%5Cn%5CnHello+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-contents%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%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/a5159c2c505cd9a87856877b3287aa0b88e4e0ba

On Wednesday, 9 August 2023 at 10:58:54 UTC+2 Stefan Björk 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$]{$mainfont$}
> \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 
> setmainfont:
>
>   % xetex/luatex font selection
> $if(mainfont)$
>   
> \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
> $endif$
>
> Expanded to:
>
>   % xetex/luatex font selection
>   \setmainfont[Numbers=OldStyle]{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örk:
>
>> `mainfontoptions: Numbers=OldStyle` works as expected when I don't 
>> specify a language with `lang`. When I specify a language, 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.
>>
>>

-- 
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/msgid/pandoc-discuss/c891d83c-b2b5-4117-96eb-91ccc61871c2n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3275 bytes --]

  parent reply	other threads:[~2023-08-17 16:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-09  8:44 Stefan Björk
     [not found] ` <30a732d6-b961-4d17-9fde-9e6ad2a5edf2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-08-09  8:58   ` Stefan Björk
     [not found]     ` <8bd22ba4-5a10-4e98-ad79-5d6b728381f8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-08-17 16:25       ` Thomas Hodgson [this message]
     [not found]         ` <c891d83c-b2b5-4117-96eb-91ccc61871c2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-09-05  8:19           ` Stefan Björk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c891d83c-b2b5-4117-96eb-91ccc61871c2n@googlegroups.com \
    --to=thomas.hodgson-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).