🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by CTAN Announcements Mon, 23 Nov 2026 18:45
CTAN update: LuaCJK
#391
Author: CTAN Announcements
Date: Mon, 23 Nov 2026 18:45
60 lines
7707 bytes
Mingyu Xia submitted an update to the

                LuaCJK

package.

Version: 0.0.4 2026-11-22
License: lppl1.3c

Summary description: A LuaTeX CJK typesetting package

Announcement text:
--------------------------------------------------------------------------------
LuaCJK v0.0.4: A LuaTeX CJK typesetting package

- A run of CJK characters inside an `lstlisting` block is one token of `listings`, so a `emph` or `keywords` entry that names a CJK word highlights it; a Latin character and a CJK mark both end the run.
- `Baseline` belongs to the declaration that writes it, so a fallback font and a family that name the same font keep their own offsets.
- `HalfLeft` and `HalfRight` declare a half-width ASCII bracket: it keeps its advance, does not hang, and hugs the text inside the pair, where they used to declare a full-width opening or closing mark.
- `\LuaCJKnobreak` forbids the break at a glue the document writes inside its argument, so a `\quad` or an `\hspace` there no longer starts a line.
- The font of a CJK family is resolved in the Unicode encoding: a document that sets its Latin text in an 8-bit encoding with `fontenc` keeps its CJK text.
- The family `\CJKfamilydefault` names is selected when the document starts, so a preamble that redefines it sets the main text in that family from the first line.
- An untouched `\CJKfamilydefault` follows `\familydefault` at the start of the document, so a preamble that redefines `\familydefault` sets the main text in the matching CJK family.
- `\defaultCJKfontfeatures` reaches the font of a sub-block and of a fallback font as well.
- `\CJKfontspec` no longer reads an option list after the font name, so a bracket that the text starts with is no longer swallowed.
- A code point below U+0100 in a font that is not Unicode-encoded is a position in that font's encoding, not a character, so a symbol font's slot is no longer read as a CJK character: `pifont`'s slot 0xB7, the circled 2, keeps its own font and prints.
- With `LatinPunct` on, the midline ellipsis U+22EF stays in the Latin font like the other shared marks that key lists.
- The punctuation table covers the marks `xeCJK` classes as opening or closing, so the percent sign U+FF05 no longer starts a line and the currency symbols no longer end one; the halfwidth and compatibility forms and the three hyphen-like marks follow the same class.
- The ASCII brackets are punctuation marks of their own: a half-width opening bracket no longer ends a line and a half-width closing bracket no longer starts one, the pair hugs the text between it, and a compression style leaves the bracket's own advance alone.
- A space in front of a color change keeps its advance: the whatsit a `\textcolor` inserts no longer hides the space from the boundary rules, so no `CJKecglue` or second `CJKglue` joins it.
- A suspended run keeps the break opportunity beside it: the zero-width glue at its edge lets `\verb` end a line next to a CJK character while the spacing stays removed.
- A punctuation mark is given its fixed advance once: a box that holds the list is packed again, and the mark no longer takes a second compensating kern, so a fixed-width style no longer squeezes a table cell or a parbox.
- The first line of a list item hangs as well: the label box that the list writes in front of the item's text is passed over, so a mark that begins the item leaves its blank in the label's advance.
- A centered or flush-right paragraph does not hang the mark it begins with: the line does not start at the edge of the measure, so the shift would move the whole line instead of leaving the blank in a margin that is not there.
- A CJK character ends a word for hyphenation, so the line breaker no longer puts a hyphen beside a CJK character, and the boundary keeps the `CJKecglue` that the two sides give it.
- `hidden` hides a formula as it hides text: a character or a rule inside a box of the span carries no ink, so a fraction is hidden like a plain number and keeps its width, height, and depth.
- `format` is resolved at every call, so a color that `\colorlet` redefines between two decorations is followed by the second one instead of keeping the color of the first.
- The wave is written one period at a time, so it covers the start and the end of a span that is not a whole number of periods, on a stretched line as well as on the last line of a paragraph.
- The slashes are written one cell at a time, so they cover the whole span.
- A CJK character inside a box gets its dot wherever the box sits in the span, so `\mbox` no longer drops the dot of a character in the middle of the text.
- `CJKfilltwosides` works inside a table cell: it gives `\\` the meaning it has in a `\parbox` within its group, so the enclosing alignment no longer takes the line break.
- `CJKfilltwosides` leaves vertical mode as `\parbox` does, so the text after it joins the box on the same line instead of beginning a paragraph, and a space after the environment is ignored as `xeCJK` ignores it.
--------------------------------------------------------------------------------

This package is located at
   https://mirrors.ctan.org/macros/luatex/latex/luacjk

More information is at
   https://ctan.org/pkg/luacjk


--------------------------------------------------------------------------------

   Thanks for the upload.

     For the CTAN Team
    Manfred Lotz


CTAN is run entirely by volunteers and supported by TeX user groups.
Please join a user group or donate to one, see https://ctan.org/lugs .
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads