View on GitHub

Babel

The multilingual framework to localize LaTeX, LuaLaTeX, XeLaTeX

What’s new in babel 3.42

2020-03-22

Getting properties from ini files

Let’s say you need the string for the chapter name in Hebrew. You can write:

\getlocaleproperty{\hechap}{hebrew}{captions/chapter}

And \hechap is set to the corresponding value.

\LocaleForEach loops the loaded ini files with #1 as the locale name. Here is a somewhat low level example:

\LocaleForEach{%
  \getlocaleproperty\savetag{#1}{identification/tag.bcp47}%
  \expandafter\xdef\csname tagtolocale\savetag\endcsname{#1}%
}

[Update. This command raises an error if the property doesn’t exist. \getlocaleproperty* doesn’t.]

Coptic, Church Slavic, Syriac, Armenian, Sanskrit

ini files for 3 locales have been added:

Armenian now has captions and numerals. [Warning. There are also numerals, but their names are not correct: they are lower and upper, but must be lower.letters and upper.letters. It will be fixed in the next release. Sorry for the slip.][Fixed]

A few mistakes has been fixed in Sanskrit and Belarusian.

Also, a new property named tag.bcp47.likely has been added to many locales, based on the Unicode data.

Improved line breaking with xetex

It should work with most South East Asian, Indic and CJK languages supported by XeTeX.

Fixes