Skip to content

Commit

Permalink
Bump to 25.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier committed Jan 1, 2025
1 parent 47dc6ab commit 02a0a86
Show file tree
Hide file tree
Showing 14 changed files with 233 additions and 39 deletions.
17 changes: 5 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Babel 24.15.72974
## Babel 25.1

(dev)
2025-01-01

`Babel` is the multilingual framework to localize documents. It fully
supports pdfLaTeX and the Unicode engines LuaLaTeX and XeLaTeX. A few
Expand All @@ -21,9 +21,9 @@ features.

The latest stable version is available on <https://ctan.org/pkg/babel>.

Changes in version 24.15 are described in:
Changes in version 25.1 are described in:

https://latex3.github.io/babel/news/whats-new-in-babel-24.14.html
https://latex3.github.io/babel/news/whats-new-in-babel-25.1.html

Apart from the manual, you can find information and examples in:

Expand Down Expand Up @@ -59,16 +59,9 @@ respective authors.

### Summary of latest changes
```
25.1 (dev)
25.1 2025-01-01
* Fix: Wrong \localeid with lazy loading in some cases.
* Fix: Direction nodes misplaced (between a penalty and a glue).
24.15 2024-12-21
* New: Locale for Interslavic, thanks to Adiee5.
* Fix: Import was not honored with lazy loading in some cases.
* Fix: Transforms were applied twice with unboxing, which could
even raise a cryptic lua error.
* Improvements in the manual thanks to Barbara Beeton.
```

### Previous changes
Expand Down
Binary file modified babel-code.pdf
Binary file not shown.
25 changes: 15 additions & 10 deletions babel.dtx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% \iffalse
% This document requires lualatex
%%
%% Copyright (C) 2012-2024 Javier Bezos and Johannes L. Braams.
%% Copyright (C) 2012-2025 Javier Bezos and Johannes L. Braams.
%% Copyright (C) 1989-2012 Johannes L. Braams and
%% any individual authors listed elsewhere in this file.
%% All rights reserved.
Expand Down Expand Up @@ -37,7 +37,7 @@
lang = en-001,
}
\ProvidesFile{babel.dtx}%
[2024/12/29 v24.15.72974
[2025/01/01 v25.1
The multilingual framework for pdfLaTeX, LuaLaTeX and XeLaTeX]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
Expand Down Expand Up @@ -6030,8 +6030,8 @@ wouldn’t exist.
% \section{Tools}
%
% \begin{macrocode}
%<<version=24.15.72974>>
%<<date=2024/12/29>>
%<<version=25.1>>
%<<date=2025/01/01>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
Expand Down Expand Up @@ -24022,9 +24022,16 @@ function Babel.bidi(head, ispar, hdir)
end

head = node.prev(head) or head

-------------- FIX HYPERLINKS ----------------

% \end{macrocode}
%
% Now direction nodes has been distributed with relation to characters
% and spaces, we need to take into account \TeX\-specific elements in
% the node list, to move them at an appropriate place. Firstly, with
% hyperlinks. Secondly, we avoid them between penalties and spaces, so
% that the latter are still discardable.
%
% \begin{macrocode}
--- FIXES ---
if has_hyperlink then
local flag, linking = 0, 0
for item in node.traverse(head) do
Expand All @@ -24050,9 +24057,7 @@ function Babel.bidi(head, ispar, hdir)
end
end
end

-------------- FIX PENALTIES --------------


for item in node.traverse_id(10, head) do
local p = item
local flag = false
Expand Down
4 changes: 2 additions & 2 deletions babel.ins
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%% driver files from the doc files in this package when run through
%% LaTeX or TeX.
%%
%% Copyright 2012-2024 Javier Bezos and Johannes L. Braams.
%% Copyright 2012-2025 Javier Bezos and Johannes L. Braams.
%% Copyright 1989-2008 Johannes L. Braams and any individual authors
%% listed elsewhere in this file. All rights reserved.
%%
Expand All @@ -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{2024/12/29}
\def\filedate{2025/01/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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
\ProvidesFile{bbcompat.dtx}[2024/12/29 v24.]
\ProvidesFile{bbcompat.dtx}[2025/01/01 v24.]
%</dtx>
%
%% File 'bbcompat.dtx'
Expand Down
32 changes: 30 additions & 2 deletions locale/zh/babel-zh-Hans-HK.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

[identification]
charset = utf8
version = 1.12
date = 2023-10-24
version = 1.13
date = 2024-12-28
name.local = 简体中文
name.english = Simplified Chinese
name.opentype = Chinese Simplified
Expand Down Expand Up @@ -237,3 +237,31 @@ fullwidth.lower.alpha = a b c d e f g h i j k l m n
fullwidth.upper.alpha = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
date.day = 初一 初二 初三 初四 初五 初六 初七 初八 初九 初十 十一 十二 十三 十四 十五 十六 十七 十八 十九 二十 廿一 廿二 廿三 廿四 廿五 廿六 廿七 廿八 廿九 三十

[transforms.prehyphenation]
spacing.basic.1.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.1.1 = { insert, kern = -.5 }
spacing.basic.1.2 = { insert, penalty = 0 }
spacing.basic.1.3 = { insert, kern = .5 }
spacing.basic.1.4 = { insert, norule = -.5 0 0 }
spacing.basic.1.5 = {}
spacing.basic.2.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[、。,.・:!?)]}〉》」』】〕〗〙〛”〞]() }
spacing.basic.2.1 = { insert, kern= -.5, step = -1 }
spacing.basic.2.2 = {}
spacing.basic.3.0 = { [([{〈《「『【〔〖〘〚“〝] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.3.1 = { insert, kern = -.5, step =- 1 }
spacing.basic.3.2 = {}
;
spacing.basic.4.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[{a}]() }
spacing.basic.4.1 = { insert, kern = -.5, step = -1 }
spacing.basic.4.2 = { insert, penalty = 0 }
spacing.basic.4.3 = { insert, kern = .5 }
spacing.basic.4.4 = {}
spacing.basic.5.0 = { [{a}] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.5.1 = { insert, penalty = 0 }
spacing.basic.5.2 = { insert, kern = .5 }
spacing.basic.5.3 = { insert, norule = -.5 0 0 }
spacing.basic.5.4 = {}
spacing.basic.6.0 = { ^()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.6.1 = { insert, kern = -.5 }
spacing.basic.6.2 = {}

32 changes: 30 additions & 2 deletions locale/zh/babel-zh-Hans-MO.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

[identification]
charset = utf8
version = 1.12
date = 2023-10-24
version = 1.13
date = 2024-12-28
name.local = 简体中文
name.english = Simplified Chinese
name.opentype = Chinese Simplified
Expand Down Expand Up @@ -237,3 +237,31 @@ fullwidth.lower.alpha = a b c d e f g h i j k l m n
fullwidth.upper.alpha = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
date.day = 初一 初二 初三 初四 初五 初六 初七 初八 初九 初十 十一 十二 十三 十四 十五 十六 十七 十八 十九 二十 廿一 廿二 廿三 廿四 廿五 廿六 廿七 廿八 廿九 三十

[transforms.prehyphenation]
spacing.basic.1.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.1.1 = { insert, kern = -.5 }
spacing.basic.1.2 = { insert, penalty = 0 }
spacing.basic.1.3 = { insert, kern = .5 }
spacing.basic.1.4 = { insert, norule = -.5 0 0 }
spacing.basic.1.5 = {}
spacing.basic.2.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[、。,.・:!?)]}〉》」』】〕〗〙〛”〞]() }
spacing.basic.2.1 = { insert, kern= -.5, step = -1 }
spacing.basic.2.2 = {}
spacing.basic.3.0 = { [([{〈《「『【〔〖〘〚“〝] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.3.1 = { insert, kern = -.5, step =- 1 }
spacing.basic.3.2 = {}
;
spacing.basic.4.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[{a}]() }
spacing.basic.4.1 = { insert, kern = -.5, step = -1 }
spacing.basic.4.2 = { insert, penalty = 0 }
spacing.basic.4.3 = { insert, kern = .5 }
spacing.basic.4.4 = {}
spacing.basic.5.0 = { [{a}] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.5.1 = { insert, penalty = 0 }
spacing.basic.5.2 = { insert, kern = .5 }
spacing.basic.5.3 = { insert, norule = -.5 0 0 }
spacing.basic.5.4 = {}
spacing.basic.6.0 = { ^()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.6.1 = { insert, kern = -.5 }
spacing.basic.6.2 = {}

32 changes: 30 additions & 2 deletions locale/zh/babel-zh-Hans-SG.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

[identification]
charset = utf8
version = 1.12
date = 2023-10-24
version = 1.13
date = 2024-12-28
name.local = 简体中文
name.english = Simplified Chinese
name.opentype = Chinese Simplified
Expand Down Expand Up @@ -237,4 +237,32 @@ fullwidth.lower.alpha = a b c d e f g h i j k l m n
fullwidth.upper.alpha = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
date.day = 初一 初二 初三 初四 初五 初六 初七 初八 初九 初十 十一 十二 十三 十四 十五 十六 十七 十八 十九 二十 廿一 廿二 廿三 廿四 廿五 廿六 廿七 廿八 廿九 三十

[transforms.prehyphenation]
spacing.basic.1.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.1.1 = { insert, kern = -.5 }
spacing.basic.1.2 = { insert, penalty = 0 }
spacing.basic.1.3 = { insert, kern = .5 }
spacing.basic.1.4 = { insert, norule = -.5 0 0 }
spacing.basic.1.5 = {}
spacing.basic.2.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[、。,.・:!?)]}〉》」』】〕〗〙〛”〞]() }
spacing.basic.2.1 = { insert, kern= -.5, step = -1 }
spacing.basic.2.2 = {}
spacing.basic.3.0 = { [([{〈《「『【〔〖〘〚“〝] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.3.1 = { insert, kern = -.5, step =- 1 }
spacing.basic.3.2 = {}
;
spacing.basic.4.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[{a}]() }
spacing.basic.4.1 = { insert, kern = -.5, step = -1 }
spacing.basic.4.2 = { insert, penalty = 0 }
spacing.basic.4.3 = { insert, kern = .5 }
spacing.basic.4.4 = {}
spacing.basic.5.0 = { [{a}] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.5.1 = { insert, penalty = 0 }
spacing.basic.5.2 = { insert, kern = .5 }
spacing.basic.5.3 = { insert, norule = -.5 0 0 }
spacing.basic.5.4 = {}
spacing.basic.6.0 = { ^()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.6.1 = { insert, kern = -.5 }
spacing.basic.6.2 = {}


32 changes: 30 additions & 2 deletions locale/zh/babel-zh-Hans.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

[identification]
charset = utf8
version = 1.14
date = 2023-10-24
version = 1.15
date = 2024-12-28
name.local = 简体中文
name.english = Simplified Chinese
name.opentype = Chinese Simplified
Expand Down Expand Up @@ -240,3 +240,31 @@ fullwidth.lower.alpha = a b c d e f g h i j k l m n
fullwidth.upper.alpha = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
date.day = 初一 初二 初三 初四 初五 初六 初七 初八 初九 初十 十一 十二 十三 十四 十五 十六 十七 十八 十九 二十 廿一 廿二 廿三 廿四 廿五 廿六 廿七 廿八 廿九 三十

[transforms.prehyphenation]
spacing.basic.1.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.1.1 = { insert, kern = -.5 }
spacing.basic.1.2 = { insert, penalty = 0 }
spacing.basic.1.3 = { insert, kern = .5 }
spacing.basic.1.4 = { insert, norule = -.5 0 0 }
spacing.basic.1.5 = {}
spacing.basic.2.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[、。,.・:!?)]}〉》」』】〕〗〙〛”〞]() }
spacing.basic.2.1 = { insert, kern= -.5, step = -1 }
spacing.basic.2.2 = {}
spacing.basic.3.0 = { [([{〈《「『【〔〖〘〚“〝] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.3.1 = { insert, kern = -.5, step =- 1 }
spacing.basic.3.2 = {}
;
spacing.basic.4.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[{a}]() }
spacing.basic.4.1 = { insert, kern = -.5, step = -1 }
spacing.basic.4.2 = { insert, penalty = 0 }
spacing.basic.4.3 = { insert, kern = .5 }
spacing.basic.4.4 = {}
spacing.basic.5.0 = { [{a}] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.5.1 = { insert, penalty = 0 }
spacing.basic.5.2 = { insert, kern = .5 }
spacing.basic.5.3 = { insert, norule = -.5 0 0 }
spacing.basic.5.4 = {}
spacing.basic.6.0 = { ^()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.6.1 = { insert, kern = -.5 }
spacing.basic.6.2 = {}

32 changes: 30 additions & 2 deletions locale/zh/babel-zh-Hant-HK.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

[identification]
charset = utf8
version = 1.12
date = 2023-10-24
version = 1.13
date = 2024-12-28
name.local = 繁體中文
name.english = Traditional Chinese
name.opentype = Chinese Traditional
Expand Down Expand Up @@ -237,4 +237,32 @@ fullwidth.lower.alpha = a b c d e f g h i j k l m n
fullwidth.upper.alpha = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
date.day = 初一 初二 初三 初四 初五 初六 初七 初八 初九 初十 十一 十二 十三 十四 十五 十六 十七 十八 十九 二十 廿一 廿二 廿三 廿四 廿五 廿六 廿七 廿八 廿九 三十

[transforms.prehyphenation]
spacing.basic.1.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.1.1 = { insert, kern = -.5 }
spacing.basic.1.2 = { insert, penalty = 0 }
spacing.basic.1.3 = { insert, kern = .5 }
spacing.basic.1.4 = { insert, norule = -.5 0 0 }
spacing.basic.1.5 = {}
spacing.basic.2.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[、。,.・:!?)]}〉》」』】〕〗〙〛”〞]() }
spacing.basic.2.1 = { insert, kern= -.5, step = -1 }
spacing.basic.2.2 = {}
spacing.basic.3.0 = { [([{〈《「『【〔〖〘〚“〝] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.3.1 = { insert, kern = -.5, step =- 1 }
spacing.basic.3.2 = {}
;
spacing.basic.4.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[{a}]() }
spacing.basic.4.1 = { insert, kern = -.5, step = -1 }
spacing.basic.4.2 = { insert, penalty = 0 }
spacing.basic.4.3 = { insert, kern = .5 }
spacing.basic.4.4 = {}
spacing.basic.5.0 = { [{a}] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.5.1 = { insert, penalty = 0 }
spacing.basic.5.2 = { insert, kern = .5 }
spacing.basic.5.3 = { insert, norule = -.5 0 0 }
spacing.basic.5.4 = {}
spacing.basic.6.0 = { ^()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.6.1 = { insert, kern = -.5 }
spacing.basic.6.2 = {}


32 changes: 30 additions & 2 deletions locale/zh/babel-zh-Hant-MO.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

[identification]
charset = utf8
version = 1.12
date = 2023-10-24
version = 1.13
date = 2024-12-28
name.local = 繁體中文
name.english = Traditional Chinese
name.opentype = Chinese Traditional
Expand Down Expand Up @@ -237,4 +237,32 @@ fullwidth.lower.alpha = a b c d e f g h i j k l m n
fullwidth.upper.alpha = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
date.day = 初一 初二 初三 初四 初五 初六 初七 初八 初九 初十 十一 十二 十三 十四 十五 十六 十七 十八 十九 二十 廿一 廿二 廿三 廿四 廿五 廿六 廿七 廿八 廿九 三十

[transforms.prehyphenation]
spacing.basic.1.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.1.1 = { insert, kern = -.5 }
spacing.basic.1.2 = { insert, penalty = 0 }
spacing.basic.1.3 = { insert, kern = .5 }
spacing.basic.1.4 = { insert, norule = -.5 0 0 }
spacing.basic.1.5 = {}
spacing.basic.2.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[、。,.・:!?)]}〉》」』】〕〗〙〛”〞]() }
spacing.basic.2.1 = { insert, kern= -.5, step = -1 }
spacing.basic.2.2 = {}
spacing.basic.3.0 = { [([{〈《「『【〔〖〘〚“〝] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.3.1 = { insert, kern = -.5, step =- 1 }
spacing.basic.3.2 = {}
;
spacing.basic.4.0 = { [、。,.・:;!?)]}〉》」』】〕〗〙〛”〞] ()[{a}]() }
spacing.basic.4.1 = { insert, kern = -.5, step = -1 }
spacing.basic.4.2 = { insert, penalty = 0 }
spacing.basic.4.3 = { insert, kern = .5 }
spacing.basic.4.4 = {}
spacing.basic.5.0 = { [{a}] ()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.5.1 = { insert, penalty = 0 }
spacing.basic.5.2 = { insert, kern = .5 }
spacing.basic.5.3 = { insert, norule = -.5 0 0 }
spacing.basic.5.4 = {}
spacing.basic.6.0 = { ^()[([{〈《「『【〔〖〘〚“〝]() }
spacing.basic.6.1 = { insert, kern = -.5 }
spacing.basic.6.2 = {}


Loading

0 comments on commit 02a0a86

Please sign in to comment.