-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Javier
committed
Oct 19, 2024
1 parent
99459c3
commit e93385f
Showing
2 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# What's new in babel 24.12 | ||
|
||
**Draft** | ||
|
||
## Manual revised (continued) | ||
|
||
As in the previous version, outdated comments have been revised, certain | ||
explanations expanded, and examples added. | ||
|
||
## Multilingual document automation | ||
|
||
One on the aims of `babel` is to ease its integration with automated | ||
document generation or conversion workflows (like | ||
[Pandoc](https://pandoc.org/), [Sphynx](https://www.sphinx-doc.org/) or | ||
[Asciidoctor](https://asciidoctor.org/), and there has been steps in | ||
this direction with, for example, lazy loading of locales (not | ||
requiring explicit declaration in the preamble) and fonts (loaded only | ||
if actually used in the document), as well as BCP-47 tags. | ||
|
||
There are now a couple of tools to preset the options for locales even | ||
before loading `babel`, by means of the LaTeX hooking mechanism. | ||
|
||
The hook `babel/presets` is executed just before locale files (either | ||
`ini` or `ldf`) are loaded. It’s in fact, similar to the `config` | ||
files, but it’s executed later and there is no need to a separate file. | ||
|
||
`\PassOptionsToLocale` was devised for this hook and its purpose is | ||
what its name suggests. For example, you can write in a class (with | ||
`luatex`). | ||
```tex | ||
\AddToHook{babel/presets}{% | ||
\PassOptionsToLocale{mapdigits}{sanskrit}% | ||
\PassOptionsToLocale{transforms=punctuation.space}{french}% | ||
} | ||
``` | ||
|
||
Other candidates for `babel/presets` are `\AfterBabelLanguage` and | ||
`\DeclareOption` (although the latter can be somewhat dangerous). | ||
|
||
## Fixes | ||
|
||
* Some numerals in Greek `ini` files printed the wrong sigma. | ||
* Dates were missing with lazy locale loading. | ||
* ‘Complex’ class options involving characters like `=`, `{`, `}`, | ||
mislead `babel`. | ||
|
||
|
||
|
||
|
||
|
||
|