[latex3-commits] [git/LaTeX3-latex3-babel] docs: Start 3.85. (2830ca9)

Javier email at dante.de
Mon Jan 2 18:25:46 CET 2023


Repository : https://github.com/latex3/babel
On branch  : docs
Link       : https://github.com/latex3/babel/commit/2830ca9e74a47d49e7fb6fe6862db59c927cb1e2

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

commit 2830ca9e74a47d49e7fb6fe6862db59c927cb1e2
Author: Javier <email at localhost>
Date:   Mon Jan 2 18:25:46 2023 +0100

    Start 3.85.


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

2830ca9e74a47d49e7fb6fe6862db59c927cb1e2
 docs/index.md                        |  3 +-
 docs/news/whats-new-in-babel-3.85.md | 72 ++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+), 1 deletion(-)

diff --git a/docs/index.md b/docs/index.md
index 2185f7c..0667f2d 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -48,7 +48,8 @@ case, it's advisable to install TeXLive.)
 
 | Version | Most relevant changes
 | --- | --- |
-| [3.84](news/whats-new-in-babel-3.84.html) | Auto-selection of encodings in `pdftex` |
+| [3.85](news/whats-new-in-babel-3.85.html) | (dev) Font-dependent transforms. |
+| [3.84](news/whats-new-in-babel-3.84.html) | Auto-selection of encodings in `pdftex`. |
 | [3.83](news/whats-new-in-babel-3.83.html) | Improved Punjabi. `lscape`. |
 | [3.82](news/whats-new-in-babel-3.82.html) | Tibetan with XeTeX. Improved `\babelprovide` (with transforms).|
 | [3.81](news/whats-new-in-babel-3.81.html) | Tentative Tibetan justification. Option `letters` for `onchar`|
diff --git a/docs/news/whats-new-in-babel-3.85.md b/docs/news/whats-new-in-babel-3.85.md
new file mode 100644
index 0000000..f41aee7
--- /dev/null
+++ b/docs/news/whats-new-in-babel-3.85.md
@@ -0,0 +1,72 @@
+# What's new in babel 3.85
+
+**Draft. Work in progress**
+
+## Separators in `layout`
+
+For technical reasons, spaces couldn’t be used as separators in the
+list of values passed to `layout`, and therefore `babel` replaced them
+with dots. This restriction has been lifted recently in the
+LaTeX kernel, and therefore spaces are fine and the recommended syntax. So, now
+```tex
+\usepackage[arabic, provide=*, bidi=basic, layout=captions lists]{babel}
+```
+is preferred to
+```tex
+\usepackage[arabic, provide=*,bidi=basic, layout=captions.lists]{babel}
+```
+
+## Enabling and disabling transforms 
+
+A higher level interface to enable y disable transforms has been
+devised (see the lower level here), based on the transform label.
+There are now two macros for this purpose, as shown in the following
+example:
+```tex
+\documentclass{article}
+
+\usepackage[latin, provide=*]{babel}
+\babelprovide[transforms = letters.uv]{latin}
+\begin{document}
+
+VOLUP volup 
+\disablelocaletransform{letters.uv} VOLUP volup 
+\enablelocaletransform{letters.uv}  VOLUP volup
+
+\end{document}
+```
+This prints “VOLVP uolup VOLUP volup VOLVP uolup”.
+
+They are applied to the current locale.
+
+## Font-dependent transforms
+
+**Work in progress**
+
+Sometimes, a transform doesn’t work well in all fonts. For example, the
+rules for Arabic kashida can differ depending on the font design.
+Besides a label, a list of fonts can be provided with a new key
+`fonts=` as shown:
+```tex
+\babelprehyphenation[label=transform.name, fonts=rm sf]{..}{..}
+```
+Transforms are enabled or disabled with font selectors. Tags can
+adopt two forms: a family, such as `rm` or `tt`, or the set
+family/series/shape. If a font matches one of these conditions, the
+transform is enabled. The second tag in `rm rm/n/it` is redundant.
+There are no wildcards; so, for italics you may want to write something
+like `sf/m/it sf/b/it`.
+
+Transforms set for specific fonts (at least once in any language) are
+always reset with a font selector. Font settings take precedence over
+`\enablelocaletransform` and `\disablelocaletransform`, so that a
+`\selectfont` can re-enable or re-disable the transform.
+
+In `\babelprovide`, transform labels can be tagged before its name,
+with a list separated with colonsm like:
+```tex
+transforms = rm:sf:transform.name
+```
+
+## Fixes
+





More information about the latex3-commits mailing list.