Skip to content

Commit

Permalink
24.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier committed Apr 20, 2024
1 parent 86ddada commit 6ac012d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/_includes/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<!-- -->
<li><a href="#">News</a>
<ul>
<li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-24.4.html">24.4</a></li>
<li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-24.3.html">24.3</a></li>
<li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-24.2.html">24.2</a></li>
<li><a href="https://latex3.github.io/babel/news/whats-new-in-babel-24.1.html">24.1</a></li>
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/locale-french.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# French

To typeset French documents it’s strongly advisable using the default
style by Daniel Flipo. It’s a very complete and customizable style, and
style by Daniel Flipo. It’s very complete and customizable, and
works very well with `pdflatex`, `lualatex` and `xelatex`, although
the last two, ie, the Unicode engines, handle much better the spacing.

Please, refer to its detailed manual for further info, available
[here](https://ctan.org/pkg/babel-french).

# Locale files
## Locale files

Alternatively, and mainly as a secondary language, you can resort to the
`ini` locale files, loaded with `\babelprovide` (or with some of the
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ case, it's advisable to install TeXLive.)

| Version | Most relevant changes
| --- | --- |
| [24.4](news/whats-new-in-babel-24.4.html) | `interchar=linebreak.basic` for CJK (`xetex`) |
| [24.3](news/whats-new-in-babel-24.3.html) | Also minor changes and fixes (including spaces in French). |
| [24.2](news/whats-new-in-babel-24.2.html) | Minor changes and fixes. |
| [24.1](news/whats-new-in-babel-24.1.html) | **New version numbering**. `interchar` in `\babelprovide`. Spaces in French. |
Expand Down
2 changes: 1 addition & 1 deletion docs/news/whats-new-in-babel-24.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spaces.

A new macro filters in the `tex` file which ones are set up, namely
`\IfBabelIntercharT{<list-of-interchar>}{<code>}` — if any of the
values in the `\babelprovide` are listed, the the `<code>` is executed.
values in the `\babelprovide` are listed, then the `<code>` is executed.

See the following section for an example.

Expand Down
29 changes: 29 additions & 0 deletions docs/news/whats-new-in-babel-24.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# What's new in babel 24.4

2024-04-20

## New ‘interchar’ for CJK

There is a new `interchar` available in Cantonese, Chinese, Japanese
and Korean named `linebreak.basic`. By default (plain) `xetex` loads a
set of settings for the CJK scripts, but not `xelatex`. What this
option does is to load them. There are a couple of macros to set the
glue and the space inserted between characters when appropriate:
* `\BabelCJKGlue` (by default `\hskip0pt plus 0.1em\relax`)
* `\BabelCJKSpace` (by default `\hskip0.2em plus 0.2em minus 0.1em\relax`)

While this ‘interchar’ is locale dependent (and it can be enabled and
disabled with `\enablelocaleinterchar` and `\disablelocaleinterchar`),
these two macros are shared by the CJK languages. However, you can set
different values on a locale basis by means of the standard `babel`
mechanisms (`\extras...` or `\AddBabelHook`).

## Fixes

The algorithm for Tibetan line breaking has been improved to take into
account closing punctuation.

## Other changes

`\IfBabelIntercharT` is not executed directly, but delayed to a better
place.

0 comments on commit 6ac012d

Please sign in to comment.