Skip to content

Commit

Permalink
Some tentative code for pgfpicture + bidi (lua).
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier committed Mar 1, 2021
1 parent 95e7dae commit 6ca2cca
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 191 deletions.
156 changes: 18 additions & 138 deletions 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.
Expand Down Expand Up @@ -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@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
10 changes: 7 additions & 3 deletions babel.dtx
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -14360,6 +14360,10 @@ end
\fi
\AtBeginDocument
{\ifx\tikz@atbegin@node\@undefined\else
\ifx\AddToHook\@undefined\else % TODO. Still tentative.
\AddToHook{env/pgfpicture/begin}{\bbl@pictsetdir\@ne}%
\bbl@add\pgfinterruptpicture{\bbl@pictresetdir}%
\fi
\let\bbl@OL@pgfpicture\pgfpicture
\bbl@sreplace\pgfpicture{\pgfpicturetrue}%
{\bbl@pictsetdir\z@\pgfpicturetrue}%
Expand Down
2 changes: 1 addition & 1 deletion babel.ins
Expand Up @@ -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

Expand Down
Binary file modified babel.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion bbcompat.dtx
Expand Up @@ -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'
Expand Down
70 changes: 24 additions & 46 deletions locale/ug/babel-ug.ini
Expand Up @@ -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
Expand All @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions 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.

Expand Down
14 changes: 12 additions & 2 deletions news-guides/guides/non-standard-hyphenation-with-luatex.md
Expand Up @@ -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 `() ()`.
2 changes: 2 additions & 0 deletions 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:
Expand Down

0 comments on commit 6ca2cca

Please sign in to comment.