[latex3-commits] [latex3/babel] docs: Start 3.97. (31a1a23)

github at latex-project.org github at latex-project.org
Thu Nov 9 12:27:59 CET 2023


Repository : https://github.com/latex3/babel
On branch  : docs
Link       : https://github.com/latex3/babel/commit/31a1a236b369730fb453eec941cf544e06e60a15

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

commit 31a1a236b369730fb453eec941cf544e06e60a15
Author: Javier <email at localhost>
Date:   Thu Nov 9 12:27:59 2023 +0100

    Start 3.97.


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

31a1a236b369730fb453eec941cf544e06e60a15
 docs/_includes/menu.html             |  1 +
 docs/index.md                        |  1 +
 docs/news/whats-new-in-babel-3.97.md | 49 ++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/docs/_includes/menu.html b/docs/_includes/menu.html
index 63be5cd..c0595c0 100644
--- a/docs/_includes/menu.html
+++ b/docs/_includes/menu.html
@@ -6,6 +6,7 @@
       <!-- -->
       <li><a href="#">News</a>
       <ul>
+        <li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-3.97.html">3.97 (dev)</a></li>
         <li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-3.96.html">3.96</a></li>
         <li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-3.95.html">3.95</a></li>
         <li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-3.94.html">3.94</a></li>
diff --git a/docs/index.md b/docs/index.md
index ec8024e..d8eecea 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -48,6 +48,7 @@ case, it's advisable to install TeXLive.)
 
 | Version | Most relevant changes
 | --- | --- |
+| [3.97 (dev)](news/whats-new-in-babel-3.97.html) | New: `\babelcharclass`, `\babelinterchar` (`xetex`) |
 | [3.96](news/whats-new-in-babel-3.96.html) | Improved Odia. Improved `onchar` |
 | [3.95](news/whats-new-in-babel-3.95.html) | 16 new locale files (and a few fixes). |
 | [3.94](news/whats-new-in-babel-3.94.html) | Chinese dates. New transform for kashida. New locale files. |
diff --git a/docs/news/whats-new-in-babel-3.97.md b/docs/news/whats-new-in-babel-3.97.md
new file mode 100644
index 0000000..7b7e7f7
--- /dev/null
+++ b/docs/news/whats-new-in-babel-3.97.md
@@ -0,0 +1,49 @@
+# What's new in babel 3.97
+
+**Draft**
+
+# Support for `interchar` (XeTeX)
+
+`babel` now provides built-in tools to set localized rules based on the
+XeTeX `interchar` mechanism. Some ideas ideas has been borrowed from the
+`interchar` package by ... and the `babel` style for French (by Daniel
+Flipo). 
+
+This is the a further step towards a more complete support for XeTeX,
+beyond line breaking rules for languages like Thai, which are already
+handled by `babel`.
+
+```
+\babelcharclass{locale}{name}{char-list}
+
+\babelinterchar[options]{locale}{class-first}{class-second}{code}
+  
+\enablelocaleinterchar{label}
+\disablelocaleinterchar{label}
+```
+<class-first> and <class-second> can be comma separated lists, and all
+combinations are defined (so that 2 first classes with 2 second
+classes, defines 4 combinations).
+
+Not very useful, but illustrative (taken from `interchar`), here is how
+to colorize the letters ‘e’ and ‘s’:
+```tex
+\usepackage{color}
+\babelcharclass{english}{colored}{es}
+\babelinterchar{english}{default, boundary}{colored}{\bgroup\color{red}}
+\babelinterchar{english}{colored}{default, boundary}{\egroup}
+```
+
+A more realistic example follows, which inserts a thin space
+between a digit and a percent sign. Note the former is entered as a
+range and the latter in command form:
+```tex
+\babelcharclass{english}{digit}{0-9}
+\babelcharclass{english}{percent}{\%}
+\babelinterchar{english}{digit}{percent}{\,}
+```
+
+# Locales
+
+* New locale for Buriat, contributed by [J. Khaganov](https://github.com/ponte-vecchio/).
+* Fixed the `alphabetic` counter in Odia.
\ No newline at end of file





More information about the latex3-commits mailing list.