[latex3-commits] [git/LaTeX3-latex3-babel] docs: Links. Code for \babelFS... (567ef65)

Javier email at dante.de
Tue Jul 19 16:55:29 CEST 2022


Repository : https://github.com/latex3/babel
On branch  : docs
Link       : https://github.com/latex3/babel/commit/567ef65fa7219d8c3fd2858ae864b1157a222178

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

commit 567ef65fa7219d8c3fd2858ae864b1157a222178
Author: Javier <email at localhost>
Date:   Tue Jul 19 16:55:29 2022 +0200

    Links. Code for \babelFS...


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

567ef65fa7219d8c3fd2858ae864b1157a222178
 docs/_includes/menu.html                    |  1 +
 docs/guides/old-and-deprecated-functions.md | 50 +++++++++++++++++++++++++++--
 docs/index.md                               |  1 +
 docs/news/whats-new-in-babel-3.78.md        |  7 ++--
 4 files changed, 55 insertions(+), 4 deletions(-)

diff --git a/docs/_includes/menu.html b/docs/_includes/menu.html
index 32d867c..4aed98f 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.78.html">3.78 (dev)</a></li>
         <li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-3.77.html">3.77</a></li>
         <li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-3.76.html">3.76</a></li>
         <li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-3.75.html">3.75</a></li>
diff --git a/docs/guides/old-and-deprecated-functions.md b/docs/guides/old-and-deprecated-functions.md
index 745f081..7e493d5 100644
--- a/docs/guides/old-and-deprecated-functions.md
+++ b/docs/guides/old-and-deprecated-functions.md
@@ -1,8 +1,11 @@
-# Old and deprecated functions
+# Old, deprecated, and removed functions
 
 ## Fonts
 
-A couple of tentative macros were provided by `babel` <3.9g with a partial solution for “Unicode” fonts. These macros are now deprecated — use `\babelfont`. A short description follows, for reference:
+A couple of tentative macros were provided by `babel` <3.9g with a
+partial solution for “Unicode” fonts. Shortly after, with the
+introduction of `\babelfont`, they were deprecated, and now, finally,
+have been removed. A short description follows, for reference:
 * `\babelFSstore{babel-language}` sets the current three   basic families (rm, sf, tt) as the default for the language given.
 * `\babelFSdefault{babel-language}{fontspec-features}` patches `\fontspec` so that the given features are always passed as   the optional argument or added to it (not an ideal solution).
 ```tex
@@ -11,5 +14,48 @@ A couple of tentative macros were provided by `babel` <3.9g with a partial solut
 \setmainfont{Minion Pro}
 \babelFSfeatures{turkish}{Language=Turkish}
 ```
+And the code, just in case you need it for some reason:
+```tex
+\newcommand\babelFSstore[2][]{%
+  \bbl at ifblank{#1}%
+    {\bbl at csarg\def{sname@#2}{Latin}}%
+    {\bbl at csarg\def{sname@#2}{#1}}%
+  \bbl at provide@dirs{#2}%
+  \bbl at csarg\ifnum{wdir@#2}>\z@
+    \let\bbl at beforeforeign\leavevmode
+    \EnableBabelHook{babel-bidi}%
+  \fi
+  \bbl at foreach{#2}{%
+    \bbl at FSstore{##1}{rm}\rmdefault\bbl at save@rmdefault
+    \bbl at FSstore{##1}{sf}\sfdefault\bbl at save@sfdefault
+    \bbl at FSstore{##1}{tt}\ttdefault\bbl at save@ttdefault}}
+\def\bbl at FSstore#1#2#3#4{%
+  \bbl at csarg\edef{#2default#1}{#3}%
+  \expandafter\addto\csname extras#1\endcsname{%
+    \let#4#3%
+    \ifx#3\f at family
+      \edef#3{\csname bbl@#2default#1\endcsname}%
+      \fontfamily{#3}\selectfont
+    \else
+      \edef#3{\csname bbl@#2default#1\endcsname}%
+    \fi}%
+  \expandafter\addto\csname noextras#1\endcsname{%
+    \ifx#3\f at family
+      \fontfamily{#4}\selectfont
+    \fi
+    \let#3#4}}
+\let\bbl at langfeatures\@empty
+\def\babelFSfeatures{% make sure \fontspec is redefined once
+  \let\bbl at ori@fontspec\fontspec
+  \renewcommand\fontspec[1][]{%
+    \bbl at ori@fontspec[\bbl at langfeatures##1]}
+  \let\babelFSfeatures\bbl at FSfeatures
+  \babelFSfeatures}
+\def\bbl at FSfeatures#1#2{%
+  \expandafter\addto\csname extras#1\endcsname{%
+    \babel at save\bbl at langfeatures
+    \edef\bbl at langfeatures{#2,}}}
+```
+
 
 
diff --git a/docs/index.md b/docs/index.md
index 07cb26a..3bfa14e 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.78](news/whats-new-in-babel-3.78.html) | (dev) Some locales updated to the CLDR 41. |
 | [3.77](news/whats-new-in-babel-3.77.html) | More on calendars: `\today`, `coptic`. New locale `ar-SA`. |
 | [3.76](news/whats-new-in-babel-3.76.html) | Calendar converters. |
 | [3.75](news/whats-new-in-babel-3.75.html) | `\BabelEnsureInfo` enabled by default. `\localeinfo*`. |
diff --git a/docs/news/whats-new-in-babel-3.78.md b/docs/news/whats-new-in-babel-3.78.md
index 480b2a4..c448b50 100644
--- a/docs/news/whats-new-in-babel-3.78.md
+++ b/docs/news/whats-new-in-babel-3.78.md
@@ -1,4 +1,4 @@
-# What's new in babel 3.79
+# What's new in babel 3.78
 
 **Draft**
 
@@ -12,8 +12,11 @@ Western Frisian, Irish, Scottish Gaelic.
 Persian defines the Islamic calendar, too.
 
 Now Scottish Gaelic provides two date formats. Following the CLDR, the
-default is the ablative form. The nominative form can be selected with
+default is the dative form. The nominative form can be selected with
 `variant=nominative`.
 
 ## Fixes
 
+Undefined `\bbl at xenohyph` with XeTeX when Thai was loaded as a
+secondary language (#182).
+





More information about the latex3-commits mailing list.