Skip to content

Commit

Permalink
On ensuring languages and character ranges.
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier committed May 14, 2022
1 parent c405512 commit 03d0bc2
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions docs/news/whats-new-in-babel-3.75.md
Expand Up @@ -2,10 +2,15 @@

(Development)

## Fixes
## Ensuring locale info

* Misplaced line in `diagbox` with RTL and `luatex` (#43)
* Caption names of ‘chapter’ and ‘part’ swapped in zh (#180).
As the LaTeX kernel extends its capabilities related to localization
(like upper and lower casing), BCP47 tags are becoming
essential. The required information is stored in the `ini` locale
files, which are loaded by `babel` itself. In other words,
`\BabelEnsureInfo` is executed always. This means there will be a
minimal overhead. This should work for most languages, but see the
following section.

## Language naming with `babel` and the Unicode CLDR

Expand All @@ -22,3 +27,25 @@ The number of languages with conflicting names is actually very
reduced: `(n)german`, `swissgerman` and `serbian` are among them. How
to deal with these cases without breaking old documents is under study.

## Fixes

* Misplaced line in `diagbox` with RTL and `luatex` (#43)
* Caption names of ‘chapter’ and ‘part’ swapped in the `ini` files for
Traditional Chinese (#180).
* Captions are now placed after numbers in the `ini` file for Lithuanian.

## Script ranges

The Unicode character ranges were hard-coded in the `babel` kernel, but
now they can be set or modified in the `ini` with the key `ranges` in
the `characters` section (as well as in `\babelprovide`). A few
Southeast Asian defined this key for the line breaking algorithm, but
this new feature can be useful with `onchar` and with locales declared
from scratch.

Note you cannot define different blocks for different languages sharing
the script. If there are multiple declarations, the last one wins.




0 comments on commit 03d0bc2

Please sign in to comment.