CTAN Comprehensive TeX Archive Network

CTAN update: LuaCJK

Date: November 20, 2026 8:08:01 PM CET
Mingyu Xia submitted an update to the LuaCJK package. Version: 0.0.3 2026-11-20 License: lppl1.3c Summary description: A LuaTeX CJK typesetting package Announcement text:
LuaCJK v0.0.3: A LuaTeX CJK typesetting package - A mark that the CJK class shares with Latin, such as a curly quotation mark or the em dash, keeps its place inside an `lstlisting` block and counts as two columns: the character table covers the CJK ranges of the Basic Multilingual Plane, both ends of each included. - The punctuation the two scripts share is a CJK character: the middle dot (U+00B7), the horizontal bar (U+2015), the two dot leader (U+2025), the hyphenation point (U+2027), and the midline ellipsis (U+22EF) are set in the CJK font, and `LatinPunct` keeps the ones it lists in the Latin font; the two dot leader joins a run of dashes and ellipses that may not be broken. - An explicit `\ ` or `\nobreakspace` between two CJK characters keeps its advance: a space from the source is retimed to the inter-character glue, and one the document wrote itself is not. - Process the package options after the helpers their key codes call, so that `AutoFallBack`, `CJKmath`, `PunctFamily`, and `CJLineBreak` act as package options as well. - `PunctWidth` and `PunctBoundWidth` take `0pt` as a length: the former gives every mark no advance and the latter hangs the whole of it, where a zero length used to act as `false` and return the mark to its style. - The addon turns the adjustments back on in its group, so the columns of a verbatim-like environment stay aligned under `Verb` = `true` and `env` as well; `\LuaCJKOffVerbAddon` restores the suspension that was in force. - The `Verb` option also reaches the inline `\Verb` and `\UseVerb` of `fancyvrb`, which never select `\verbatim@font` and are set as `\verb` sets them; the block commands `\VerbatimInput` and `\UseVerbatim` follow the environments instead. - A document whose default CJK family is not declared is reported, and its text takes a family it did declare instead of none at all. - `PunctFamily` shifts its marks by the `Baseline` of the family it names. - The three sizes of a CJK math family come from the text size of the formula, so a `\text` inside it no longer sets the other characters of the formula in a script size. - A CJK character in math mode takes a fallback font when the CJK font of the formula does not have it. - `\setCJKfamilyfont` expands the name of the family it declares, so a family can be given as `\CJKrmdefault` and friends. - `\CJKfamily` expands its argument, so a family can be given as `\CJKrmdefault` and friends. - The joiners (U+200C, U+200D) and the variation selectors are no longer removed at the input: they reach the font, so an emoji sequence is not split and a CJK variation sequence selects its glyph, and what the font leaves of them is dropped before the spacing pass, so two CJK characters still take no glue around them. - `LoadFandol` is on by default, so a document that declares no CJK font is set in the four Fandol faces without asking for them. - `LoadFandol` gives the roman family `FandolKai-Regular.otf` as its italic face, so `\emph` and `\itshape` set the text in Kai instead of leaving it upright. - The CJK font is applied to the characters before the text is shaped instead of to the glyph nodes after it: a combining mark attaches to its base, a variation sequence selects its glyph, and the font's own ligatures and `locl` forms appear. An older `luaotfload` keeps the previous behavior. - A joiner or a variation selector that the font cannot use leaves nothing behind, and neither does a CJK character the CJK font does not have. - A box that occupies no advance is passed over: `\rlap`, `\llap` and `\clap` overlay ink on the text around them, so they no longer take a `CJKecglue` on either side. - A superscript or subscript set with `\textsuperscript` or `\textsubscript` stays with the character in front of it: the shifted box takes no glue on either side, so no break is offered before it. - A penalty that prohibits the break no longer removes the glue: the CJK--CJK and CJK--Latin spacing survives `\nobreak`, because the glue goes after the penalty, where the prohibition still covers it. A source space in front of the penalty is converted and the penalty moves in front of it. - `\hfill` after `\textbf` keeps its fill: only a glue of normal order counts as a source space, so the fill of the line is no longer turned into the inter-character glue. - A dash or an ellipsis cannot start a line either: a break in front of a run of them is forbidden, so the run travels to the next line whole, while the break between the marks of a run stays the business of the `NoBreakLongPunct` set. - The blank of a mark is measured from the charstring the glyph uses, so a glyph whose charstring calls a subroutine is measured in the subroutine rather than in the charstring the measurement began with. - A curve of four operands is read as one curve in both axes, so the blank of a mark whose charstring draws it with the alternating or the vertical curve operator is the blank the glyph has: a double opening quotation mark no longer stands in the margin by more than a tenth of a point. - An opening mark that begins a paragraph, or a line the document forces a break at, hangs as well: its blank stands in the indentation or in the margin, and `PunctBoundWidth` decides how much of the advance stays inside the line there too. - A whatsit between two CJK characters no longer hides the break point from `CheckSingle`: a color change, a mark, and the other nodes that carry no text are passed over, so they no longer leave a single character on the last line. - `top` and `bottom` are keys of the decoration, so they reach a rule that `format` colors as well, and an underline type is built per font size, so a rule built from `em` units keeps its thickness when the size changes. - A decoration keeps the width, the stretch, and the shrink of the text it covers, so a rule no longer changes the spacing of the line it sits in, `skip` no longer tightens a justified line, and a `\kern` inside the text no longer moves the gap `skip` leaves at a punctuation mark. - `hidden` takes the ink out of the text instead of putting it in a `\phantom`: the text keeps its line breaks, so a hidden paragraph breaks like the visible one instead of overflowing in one line. - The wave takes `format` like the other decorations: the pattern is stroked in that color, in the color of its text when the key is absent, and neither color reaches the text outside it. - The wave is a smooth arch of one period per em, a quarter em above and below the underline; a decoration is divided into whole patterns once its final width is known and the pattern is drawn at that width, so the periods meet without a gap, the wave reaches the last character, and its period follows the stretch of the line. - The slash takes `format` like the wave, and follows the color of its text when the key is absent. - The slash is divided into whole cells once its width is final, so the slashes cover the span evenly and the last one reaches its end. - The emphasis dots sit under each CJK character, centred in the one-em cell of the character; Latin letters, digits, and spaces carry none, and the dots follow the characters when the inter-character glue stretches. - The `t` and `c` positions of `CJKfilltwosides` place the box as `\parbox` does: `t` puts the baseline of its first line on the surrounding baseline, and `c` centres the box on the text axis instead of on the baseline.
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 .

LuaCJK – A Lua CJK typesetting package

LuaCJK package provides Chinese typesetting for the Lua engine.

PackageLuaCJK
Version0.0.3 2026-11-20
Copyright2026 Mingyu Xia
MaintainerMingyu Xia

Announcements

more

Guest Book Sitemap Contact Contact Author