-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lang pt-BR must set polyglossia-lang.name to brazil instead of brazilian #2953
Comments
From the documentation, both |
Thanks! It was on |
See https://groups.google.com/d/msgid/pandoc-discuss/69070e2d-a24c-4dce-bd05-e315ec109602n%40googlegroups.com. Is it possible that support for |
Copying the background reference over here for easier access: when using MacTeX 2020, these are the cases:
|
I am confident about recent versions. The question is whether versions that only accept |
@edusantana Since you submitted the original issue, maybe you could let us know if |
I've pushed a change; now it gives you \ifxetex
% Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
\usepackage{polyglossia}
\setmainlanguage[variant=brazilian]{portuguese}
\else
\usepackage[shorthands=off,main=brazilian]{babel}
\fi Is that what it should be? You can test with the nightly that will be built tonight. |
My BasicTeX 2020 implementation of xelatex isn't happy with the [variant=brazilian] clause. I get this error:
Not sure if there's something wrong with my installation. I compiled from source using today's master branch. |
Just pushed a release with the change before seeing this. I'm not sure what is going on with this, but it would be nice to get feedback from others. |
Does polyglossia have a mailing list? someone wants to ask there? |
Then I guess it must be some problem with my TeX installation. I’ll assume your code is correct and will look into what’s wrong on my side. I generated a *.tex file using yesterday’s master branch and, upon inspecting it, I thought it should work indeed. |
I can confirm that the current solution works with TeXLive 2021, but not with TL 2019 (Ubuntu 20.04). |
I think this can be closed now that we use babel instead of polyglossia. |
As I understand from #2174 we should set the
lang
attribute, and it would map to values appropriated forbabel
andpolyglossia
.When I use
pt-BR
it setspolyglossia-lang.name
tobrazilian
(this is acceptable according to polyglossia documentation), but I get this error:This file doesn't exist, but gloss-brazil.ldf does! So I manually change the
polyglossia-lang.name
tobrazil
, and it works:So, when use set
lang: pt-BR
it must setpolyglossia-lang.name
tobrazil
instead ofbrazilian
.The text was updated successfully, but these errors were encountered: