[latex3-commits] [git/LaTeX3-latex3-babel] master: Some tentative code for pgfpicture + bidi (lua). (6ca2cca)
Javier
email at dante.de
Mon Mar 1 18:31:43 CET 2021
Repository : https://github.com/latex3/babel
On branch : master
Link : https://github.com/latex3/babel/commit/6ca2ccacc2a5e57bcee90380d27eef170712342d
>---------------------------------------------------------------
commit 6ca2ccacc2a5e57bcee90380d27eef170712342d
Author: Javier <email at localhost>
Date: Mon Mar 1 18:31:43 2021 +0100
Some tentative code for pgfpicture + bidi (lua).
>---------------------------------------------------------------
6ca2ccacc2a5e57bcee90380d27eef170712342d
README.md | 156 +++------------------
babel.dtx | 10 +-
babel.ins | 2 +-
babel.pdf | Bin 818885 -> 818962 bytes
bbcompat.dtx | 2 +-
locale/ug/babel-ug.ini | 70 ++++-----
news-guides/README.md | 2 +
.../guides/non-standard-hyphenation-with-luatex.md | 14 +-
news-guides/news/whats-new-in-babel-3.46.md | 2 +
9 files changed, 67 insertions(+), 191 deletions(-)
diff --git a/README.md b/README.md
index 027d7e6..abc9251 100644
--- a/README.md
+++ b/README.md
@@ -1,17 +1,20 @@
-## Babel 3.54.2295
+## Babel 3.54.2298
This package manages culturally-determined typographical (and other)
-rules, and hyphenation patterns for a wide range of languages. Many
+rules, and hyphenation patterns for a wide range of languages. Many
language styles work with pdflatex, as well as with xelatex and
-lualatex out of the box. A few even work with plain formats.
+lualatex out of the box. A few even work with plain formats. Included
+is a set of ini files for about 250 languages.
The latest stable version is available on <https://ctan.org/pkg/babel>.
Changes in version 3.55 are described in:
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.55
+https://github.com/latex3/babel/blob/master/news-guides/news/whats-new-in-babel-3.55
-Included is a set of ini files for about 250 languages.
+Apart from the manual, you can find information on some aspects of babel at:
+
+https://github.com/latex3/babel/tree/master/news-guides
The best way to install and/or update it is with the help of package
managers.
@@ -41,141 +44,18 @@ You may also report them to the current maintainer more informally on:
Bugs related to specific languages are best reported to their
respective authors.
-### Latest changes
+### Summary of Latest changes
```
-3.55 2021-03-??
- * Fixes:
- - Romanian ...
-
-3.54 2021-02-22
- * RTL text inside \put (with pict2e) correctly rendered in
- typical cases (lua, #98).
- * Same for \tikz (lua).
- * The main change in internal (loader of ini files refactored).
- * Fixes:
- - The tentative \foreignlanguage* stopped working.
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.54
-
-3.53 2021-01-26
- * Extended \setlocalecaption to allow .template (related to
- #111).
- * Allow access to some features in `ini` files even with `ldf`
- ones.
- * Tool to create ldf files with a (more or less) GUI.
- * Captions for Sinhala (thanks to Nisal D Bandara).
- * Fixes:
- - Not really a fix, but I started working on `picture` with
- bidi in lua.
- - Parenthesis sometimes mirrored at the end of math with
- bidi=basic.
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.53
-
-3.52 2020-12-16
- * WARNING. If you need the style for Afrikaans you must update
- babel-dutch.
- * Improved \babelposthyphenation and \babelprehyphenation:
- - Ordinary spaces can be matched in the latter.
- - Keys 'insert' and 'penalty'.
- - Some bugs fixed.
- * Fixes:
- - A couple of issues with \localeinfo and \getlocaleproperty
- (#102, #105).
- - Save size overflow with many \selectlanguage's (#109).
- - Albanian: fix a typo in contents name (#104)
- - Missing ‘Unused global option(s)’ warning (#110)
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.52
-
-3.51 2020-10-27
- * Common interface to (re)define captions (with
- \setlocalecaption).
- * frenchspacing filled in many ini files.
- * A new internal macro (for ldf files) named \babel at texpdf, to
- ease interoperativity with hyperref in shorthands.
- * Fixes:
- - Error when loading a language on the fly in tabular (#97).
- - 'hyphenrules' raised an error with 'base' option (#59).
- - Better handling of autoloaded languages (eg, catcodes).
- - An error was raised with CJK and a null font (#99).
- - language.tag.bcp47 and tag.ini in \localeinfo didn't work
- (#102).
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.52
-
-3.50 2020-10-06
- * Fixes:
- - main=<language> stopped working in some cases (#96).
- - Footnotes were not \long with layout=footnotes.
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.50
-
-3.49 2020-10-03
- * BUG. This version has a severe bug with main= (fixed in 3.50).
- * Allow standard LaTeX syntax to recognize locales based on ini
- files in the most common cases.
- * frenchspacing is set with ini files.
- * Fixes:
- - layout.lists=off didn't work (#94)
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.49
-
-3.48 2020-09-01
- * New (tentative) tools to customize some labels (like chapters
- in CJK and Hungarian).
- * Warning instead of error if neither 0 nor ZERO WIDTH SPACE is
- found in some Southeast Asian languages.
- * Fixes:
- - \babelshorthand didn't work with some dialects (#91).
- - \selectlanguage and otherlanguage raised an error inside
- tabular.
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.48
-
-3.47 2020-07-13
- * Fixes:
- - Spurious spaces when autoloading locales (bug introduced
- in 3.46 when fixing #80).
- - In dtx files, autoloading printed some spurious text
- (because % is set to ignore, #87).
- * New - \getlocaleproperty*, which doesn't raise an error.
- * Basic ini+tex templates for about 500 languages in the GitHub
- repository.
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.47
-
-3.46 2020-07-06
- * Languages can now be optionally selected with their BCP 47
- tags.
- * \BabelEnsureInfo now loads the basic data for the requested
- languages immediately (formerly it was done at the end of the
- preamble).
+3.55 2021-03-03??
+ * Captions for Uyghur.
* Fixes:
- - Getting rid of the hyphen in XeTeX was not working as
- expected. A new procedure has been devised.
- - tag.bcp47 now contains what its name promises, instead of
- just the language subtag (#70).
- - Locale info was not loaded if the name had uppercase letters
- in some OSs (#80).
- - The [..|..] syntax in ini dates didn't recognize 'digits'.
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.46
-
-3.45 2020-06-10
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.45
-
-3.44 2020-05-13
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.44
-
-3.43 2020-04-28
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.43
-
-3.42 2020-03-22
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.42
-
-3.41 2020-02-27
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.41
-
-3.40 2020-02-14
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.40
+ - Wrong caption in Romanian for Index (#117).
+ - Missing lines in ngermanb.sty (#118).
+ * There is also some tentative code to improve pgfpicture with
+ RTL texts.
+```
-3.39 2020-02-03
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.39
+### Previous changes
-3.38 2020-01-15
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.38
-```
+See https://github.com/latex3/babel/blob/master/news-guides/news/
-Javier Bezos
diff --git a/babel.dtx b/babel.dtx
index 3fcf2f7..f98c481 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2021/02/26 v3.54.2295 The Babel package]
+\ProvidesFile{babel.dtx}[2021/03/01 v3.54.2298 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -4849,8 +4849,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.54.2295>>
-%<<date=2021/02/26>>
+%<<version=3.54.2298>>
+%<<date=2021/03/01>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -14360,6 +14360,10 @@ end
\fi
\AtBeginDocument
{\ifx\tikz at atbegin@node\@undefined\else
+ \ifx\AddToHook\@undefined\else % TODO. Still tentative.
+ \AddToHook{env/pgfpicture/begin}{\bbl at pictsetdir\@ne}%
+ \bbl at add\pgfinterruptpicture{\bbl at pictresetdir}%
+ \fi
\let\bbl at OL@pgfpicture\pgfpicture
\bbl at sreplace\pgfpicture{\pgfpicturetrue}%
{\bbl at pictsetdir\z@\pgfpicturetrue}%
diff --git a/babel.ins b/babel.ins
index d5c53e1..35e5d99 100644
--- a/babel.ins
+++ b/babel.ins
@@ -26,7 +26,7 @@
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
%%
-\def\filedate{2021/02/26}
+\def\filedate{2021/03/01}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 7b88247..e6d48fe 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 0c3d9f9..58c648b 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/02/26 v3.54.2295]
+\ProvidesFile{bbcompat.dtx}[2021/03/01 v3.54.2298]
%</dtx>
%
%% File 'bbcompat.dtx'
diff --git a/locale/ug/babel-ug.ini b/locale/ug/babel-ug.ini
index 57d164f..5234725 100644
--- a/locale/ug/babel-ug.ini
+++ b/locale/ug/babel-ug.ini
@@ -8,11 +8,12 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; * Captions by Osman Tursun (https://github.com/neouyghur)
[identification]
charset = utf8
-version = 1.4
-date = 2020-10-11
+version = 1.5
+date = 2020-02-26
name.local = ئۇيغۇرچە
name.english = Uyghur
name.babel = uyghur
@@ -28,50 +29,27 @@ encodings =
derivate = no
[captions]
-preface =
-ref =
-abstract =
-bib =
-chapter =
-appendix =
-contents =
-listfigure =
-listtable =
-index =
-figure =
-table =
-part =
-encl =
-cc =
-headto =
-page =
-see =
-also =
-proof =
-glossary =
-
-[captions.licr]
-preface =
-ref =
-abstract =
-bib =
-chapter =
-appendix =
-contents =
-listfigure =
-listtable =
-index =
-figure =
-table =
-part =
-encl =
-cc =
-headto =
-page =
-see =
-also =
-proof =
-glossary =
+preface = كىرىش سۆز
+ref = پايدىلانما
+abstract = ئابستراكت
+bib = پايدىلانما
+chapter = باب
+appendix = قوشۇمچە
+contents = مۇندەرىجە
+listfigure = رەسىملەر
+listtable = جەدۋەللەر
+index = ئىندېكىس
+figure = رەسىم
+table = جەدۋەل
+part = قىسىم
+encl = قوشۇمچە ھۆججەت
+cc = باشقا تاپشۇرۇۋالغۇچى
+headto = تاپشۇرۇۋالغۇچى
+page = بەت
+see = قاراڭ
+also = ئايرىم قاراڭ
+proof = ئىسپات
+glossary = لۇغەت
[date.gregorian]
date.long = [d]-[MMMM]، [y]
diff --git a/news-guides/README.md b/news-guides/README.md
index 245b374..f0bcca3 100644
--- a/news-guides/README.md
+++ b/news-guides/README.md
@@ -1,6 +1,8 @@
![Babel](media/babel-top.png)
+<p align='center'>
<b>Localization and internationalization ◾ pdfTeX, LuaTeX and XeTeX</b>
+</p>
This is the home page for Babel, a multilingual environment for latex (and sometimes plain) for the three basic engines (pdfTeX, LuaTeX and XeTeX). Its aim is to provide a localization framework for different languages, scripts, and cultures based on the latest advances in Unicode and other technologies.
diff --git a/news-guides/guides/non-standard-hyphenation-with-luatex.md b/news-guides/guides/non-standard-hyphenation-with-luatex.md
index 9a61c3a..eaca6cd 100644
--- a/news-guides/guides/non-standard-hyphenation-with-luatex.md
+++ b/news-guides/guides/non-standard-hyphenation-with-luatex.md
@@ -117,11 +117,21 @@ In cases like this, you may want to use maps as described above.
```
* To duplicate explicit hyphens:
```tex
-\babelposthyphenation{polish}{.=.}{
+\babelposthyphenation{polish}{{a}={a}}{
{},
{ no = -, pre = -, post = -, data = 1 },
{}
}
```
-* See another example here: https://tex.stackexchange.com/questions/554760/apply-lefthyphenmin-to-parts-of-a-word-spelled-with-hyphens/554788#554788
+* To prevent a line break if there is a single letter followed by a
+ hyphen and a word (eg, “e-mail”):
+```tex
+\babelposthyphenation{ngerman}{ ^{A}*(){a}=() }{
+ {},
+ { pre=-, no=-, penalty=10000 }
+}
+```
+With `{A}*` we consider the possibility of leading characters like `(`
+or `“`, because `{A}` it's the same as `%A` in lua. This part is placed
+before that to be processed, which is enclosed between `() ()`.
diff --git a/news-guides/news/whats-new-in-babel-3.46.md b/news-guides/news/whats-new-in-babel-3.46.md
index cc2b4d2..f7a122c 100644
--- a/news-guides/news/whats-new-in-babel-3.46.md
+++ b/news-guides/news/whats-new-in-babel-3.46.md
@@ -1,5 +1,7 @@
# What's new in babel 3.46
+2020-07-06
+
## More BCP 47
Now, BCP 47 codes may be used to select languages loaded as package or class options, if desired. Because this feature is mainly meant for special uses, it must be explicitly turned on with:
More information about the latex3-commits
mailing list.