[latex3-commits] [git/LaTeX3-latex3-babel] docs: On \localeinfo*. (1ffcb31)

Javier email at dante.de
Thu May 19 18:32:56 CEST 2022


Repository : https://github.com/latex3/babel
On branch  : docs
Link       : https://github.com/latex3/babel/commit/1ffcb31cbca39d1e9df8c91b163dd5d683508153

>---------------------------------------------------------------

commit 1ffcb31cbca39d1e9df8c91b163dd5d683508153
Author: Javier <email at localhost>
Date:   Thu May 19 18:32:56 2022 +0200

    On \localeinfo*.


>---------------------------------------------------------------

1ffcb31cbca39d1e9df8c91b163dd5d683508153
 docs/news/whats-new-in-babel-3.75.md | 25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

diff --git a/docs/news/whats-new-in-babel-3.75.md b/docs/news/whats-new-in-babel-3.75.md
index 858ec95..0d9ad14 100644
--- a/docs/news/whats-new-in-babel-3.75.md
+++ b/docs/news/whats-new-in-babel-3.75.md
@@ -7,8 +7,8 @@
 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
+files, which were load loaded only in some cases, except with
+`\EnsureBabelInfo`. Now it’s loaded always. This means there will be a
 minimal overhead. This should work for most languages, but see the
 following section.
 
@@ -27,21 +27,36 @@ 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.
 
+## `\localeinfo*`
+
+Sometimes, it comes in handy to be able to use `\localeinfo` in an
+expandable way even if something went wrong (for example, the locale
+currently active is undefined). For these cases, `localeinfo*` just
+returns an empty string instead of raising an error. Bear in mind that
+`babel`, following the CLDR, may leave the region unset, which means
+`\getlanguageproperty*` (see the manual) is the preferred command, so
+that the existence of a field can be checked before. This also means
+building a string with the language and the region with
+`\localeinfo*{language.tab.bcp47}-\localeinfo*{region.tab.bcp47}` is
+not usually a good idea (because of the hyphen).
+
 ## 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.
+* The `hyphenrules` in `en-AU` and `en-NZ` were set to `english`
+  instead of `ukenglish`.
 
 ## 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. 
+Southeast Asian languages 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.





More information about the latex3-commits mailing list.