Hi,
Suvayu Ali <[email protected]> writes:
>> +(defun org-latex-guess-polyglossia-language (header info)
>> + "Set the Polyglossia language according to the LANGUAGE keyword.
>
> I'm in two-minds about this. On the one had it is a nice thing, but on
> the other hand, it prevents the more fine grained control offered by
> polyglossia. For example, I used this in my setup before:
>
> \setdefaultlanguage[variant=british]{english}
It's a shame that Polyglossia is so much different from babel.... For
babel we translate en-gb to "british" which is a valid babel language.
But your example shows that org-latex-babel-language-alist does not work
for polyglossia. Which means that somebody has to come up with a mapping
from language codes (en-gb) to (language . variant) pairs (your example).
Also, some mechanism needs to be in place to convey random options like
spelling={new, old} for German... Unless polyglossia options can be set
afterwards via latex_headers.
> I don't see an easy way of passing the optional argument. But on the
> other hand
>
> \setmainlanguage{english}
>
> is plain, simple, and works in most (almost all) cases.
The only limitation here is whether somebody wants to contribute
org-latex-polyglossia-language-alist (≡ go through the manual and map all
pairs). Conveying language-specific options in Org is what I worry about.
Rasmus
--
ツ