• CTAN update: LuaCJK

    From CTAN Announcements@manfred@ctan.org to ctan-ann on Mon Nov 23 19:45:26 2026
    From Newsgroup: comp.text.tex

    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 .
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From CTAN Announcements@erik@ctan.org to ctan-ann on Wed Nov 25 15:20:17 2026
    From Newsgroup: comp.text.tex

    Mingyu Xia submitted an update to the

    LuaCJK

    package.

    Version: 0.1.0 2026-11-25
    License: lppl1.3c

    Summary description: A LuaTeX CJK typesetting package

    Announcement text: --------------------------------------------------------------------------------

    LuaCJK v0.1.0: A LuaTeX CJK typesetting package

    - `Baseline` moves the characters of the family in force where they are written, and the marks of the family `PunctFamily` names, so a family selected inside a group moves only thatgroup and two declarations of one font keep their values in the same paragraph.
    - The punctuation group `latin-close` can be declared and removed like the others, so the spacing of the ASCII closing marks is a setting of the document and not only a default.
    - The two- and three-em dashes `U+2E3A` and `U+2E3B` are CJK characters of the dash group, so a font that joins a pair of em dashes into one glyph keeps the prohibition of `NoBreakLongPunct`.
    - `\LuaCJKnobreak` forbids the breaks inside its argument alone: a break at either edge of the argument is the business of the text around it, and the glue the package inserts behind the last character no longer carries the prohibition.
    - `\CJKfontspec` switches the text to its font even when `PunctFamily` names a family, which used to replace the family name the command was about to select.
    - The initial list holds the two characters it documents, the slash and the hyphen: the list is read as a sequence of characters, so the commas that separated them used to be normal-spaced as well, and so did the space between two of them. A backslash is not in it, because beside a CJK character it usually begins a printed command name, which takes the glue on both of its sides like any other Latin character.
    - `LoadLXGW` replaces `LoadFandol` and supplies the LXGW family when the document declares no CJK font.
    - A CJK--Latin boundary takes the settings of the CJK character it touches, so `CJKecglue` follows the size of the CJK text: a Latin run set with `\scriptsize` or `\large` keeps thespace of the surrounding text on both of its sides.
    - The ASCII closing marks are a punctuation group of their own: a `!`, `,`, `.`, `:`, `;`, `?`, `%`, `"`, or `'` takes the zero-width boundary glue beside a CJK character and may not start a line, and it keeps the advance the Latin font gave it, which no compression style, no hang, and no `PunctWidth` touches.
    - A box takes the class of the text nearest its edge, so a kern, a spacing glue, or a rule inside it no longer hides that text: `\mbox` around an italic `\textit` keeps the `CJKecglue` beside its last letter, a box that holds no text takes the glue on both sides, and a filling glue still leaves the edge empty, which keeps the titles of a table of contents aligned.
    - A vertical box reads its edges by the same rule, so the rule that underlines a `\underline` no longer hides the text above it: the underlined Latin run takes the `CJKecglue` on both of its sides, like the run a `\mbox` or `\CJKunderline` holds.
    - A box the edge holds does not hide the text behind it when that box has no class of its own, and a paragraph line is read past its `local_par` marker: `\parbox` takes the `CJKecglue` at the edge its first character reaches, while its last edge stays empty, because `\parfillskip` does not let the text reach it.
    - A box that holds nothing on its own baseline, only raised or lowered boxes, is attached like a shifted box: the mark of `\footnote` and `\raisebox` therefore take no glue on either side, as the box `\textsuperscript` builds already did.
    - A framed box is an object of the line and not a mark: `\fbox`, `\framebox` and `\fcolorbox` lower a vertical box around their content, so they take the `CJKecglue` on both sides like any other box, while the mark of `\raisebox` or a `\footnote` still takes none.
    - A node inserted at a CJK--Latin boundary keeps only the attributes both characters carry, so a decoration ends at the last character it covers: the `CJKecglue` behind `\CJKunderline`'s argument no longer takes the rule past it.
    - A suspended run takes the glue its two classes give at its edge: `\verb` beside a CJK character is spaced as the same characters in a text font are, while the material itself is left alone.
    - A source space beside a box that occupies no advance belongs to the boundary of the two characters the box stands between: the space in front of the box becomes the inter-character glue, so an `\mbox` between two CJK characters takes no `CJKglue` of its own, and two spaces on either side of it are one space.
    - The gap between two adjacent marks is the blank between their ink: the length `\LuaCJKsetkern` gives is that blank, so `0pt` makes the two marks meet instead of widening the gap, and a compression takes at most the blank the compressed mark carries on its right.
    - A formula that sets one opening or closing delimiter alone is that bracket: the CJK--Latin glue stands outside the pair and not between the delimiter and the text it encloses, so the angle brackets of a `\meta` argument hug their Chinese characters.
    - A half-width closing bracket keeps the `CJKecglue` between itself and the CJK character that follows it, so the outside of a pair of brackets is spaced on both sides while the pair still hugs the text it encloses.
    - The glue stands in front of the background a colour box draws: the highlight of `\colorbox` covers the box it was asked to colour and not the space between the two characters, so it stops the same distance from the text on both sides.
    - A ratio style never cuts into the ink: a mark keeps its ink and the smaller of its two blanks, so the fullwidth percent sign and the fullwidth currency signs keep their advance under `banjiao` and no longer overlap the character after them.
    - The advance a ratio style gives a mark and the place of its ink come from the outline, so a mark whose ink is not against the edge of its box keeps a blank on both sides instead of losing part of the ink.
    - The ink of a glyph is measured at the extremum of its curves rather than at their control points, and the alternating curve operators read the abscissa of their third point from the operand that carries it, so the blank a mark hangs is the blank its outline paints.
    - The blank of a glyph on each side is read from its outline, so the gap `\LuaCJKsetkern` gives and the amount a compression takes are the blanks the font carries.
    - The last line of a centered or flush-right paragraph hangs the mark it ends with as well, so every line of it stops at the same edge instead of the last one standing the width of that blank further in.
    - The cell of a repeated symbol starts at the left edge of the decorated span, so `\CJKunderanysymbol` keeps the symbol of a single character whose span begins in the middle of a cell; `\CJKunderanyline` and the `symbol` of `\CJKunderdot` and `\CJKunderwave` follow the same rule.
    - The body of `CJKfilltwosides` is set as a `minipage`, so a paragraph after a paragraph break starts at the left edge of the box and is filled like the first one, and the leading between the lines is the leading of the document instead of whatever an enclosing alignment left behind.
    - A `\footnote` inside `CJKfilltwosides` is set at the bottom of the box and numbered with the box's own counter, instead of being lost with the insert that a plain vertical box cannot hold.

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

    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
    Erik Braun


    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 .
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From CTAN Announcements@petra@ctan.org to ctan-ann on Sat Nov 28 08:49:18 2026
    From Newsgroup: comp.text.tex

    Mingyu Xia submitted an update to the

    LuaCJK

    package.

    Version: 0.1.1 2026-11-26
    License: lppl1.3c

    Summary description: A LuaTeX CJK typesetting package

    Announcement text: ------------------------------------------------------------------------

    - With `breaklines`, a run of CJK characters inside an `lstlisting`
    block is set one character at a time, so a line breaks between
    two of them; the run is still one token, so `emph` and `keywords`
    still highlight the whole word.

    - A declared sub-block adds its ranges to the CJK character class,
    so a block declared outside the built-in CJK ranges (the circled
    numbers `U+2460` to `U+2473`, say) reaches the font the family
    gives it instead of staying in the Latin font.

    - `PunctFamily` expands the family name it is given, so a family
    can be named by `\CJKsfdefault` or another macro that holds the name.

    - `\LuaCJKdisable` and `\LuaCJKenable` end the value of the attribute
    they set, so a digit that follows either command stays in the text
    instead of joining the value.

    - Every `\LuaCJKnobreak` marks its argument as a span of its own,
    so two arguments beside each other keep the line break between them,
    while an argument written inside another one still belongs to
    the span around it.

    - The span identifier of `\LuaCJKnobreak` ends its value, so an
    argument that begins with a digit keeps it.

    - A family that `PunctFamily` names but no declaration provides
    warns once, so the fallback of the punctuation to the text font
    is no longer silent.

    - The `Baseline` of a family lifts a CJK character that is already
    set in the family's own font, which is what a document that selects
    that font itself with `\fontspec` gets.

    - A source space between two long punctuation marks adds no advance
    and no stretch, so justification cannot pull a run of dashes
    or ellipses apart.

    - `CJLineBreak` reads the settings of the character that would
    start the line, so a group that selects `strict` no longer forbids
    a break in front of a small kana written outside it.

    - A word space between two punctuation marks is a break point again:
    the two are not adjacent, so the rule that keeps two adjacent
    marks together does not read them as a pair.

    - A paragraph that begins with a box hangs the opening mark inside
    it as well, so `\mbox` around the mark leaves its blank in the
    indentation, as a line of plain text does.

    - A mark inside a box hangs only when nothing inked stands between
    it and the edge of that box, so `\fbox` and `\framebox` stop at
    the alignment edge instead of moving their whole frame past it,
    while `\mbox` around a mark keeps its blank in the margin.

    - A space in front of a mark that begins a line the document
    broke keeps the discard of the line head: the rule that carries
    the hang stands where the line begins and not at the break,
    so the line is no longer set the width of that space further in.

    - A box at the end of a paragraph no longer hides its characters
    from `CheckSingle`: the character a `\underline` or an `\mbox`
    ends with is the last character of the paragraph, and the
    characters a box holds count as the one unit they travel as.

    - Provide `\LuaCJKfntefsetup` with the key `commute`, which packs
    the inks of a group of nested decorations into the band their
    own positions make, so the nesting order decides which ink is
    below which instead of every ink keeping the height its keys give.

    - A decoration draws with the settings of its own call, so a `skip`,
    a `subtract`, or a `hidden` reaches a span that another decoration
    of the same kind built the type for, a decoration nested inside
    another one keeps its own inset, and a key that the command
    does not use is accepted and ignored instead of being handed
    to `lua-ul`.

    - A decoration nested inside `\CJKunderdot` keeps the dots:
    the span of the dots is measured with the pair of an inner
    decoration stepped over, and the dots of a call no longer
    depend on which decoration the characters inside it belong to.

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

    The package’s Catalogue entry can be viewed at
    https://ctan.org/pkg/luacjk

    The package’s files themselves can be inspected at
    https://mirrors.ctan.org/macros/luatex/latex/luacjk/

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

    Thanks for the upload.

    For the CTAN Team
    Petra Rübe-Pugliese

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

    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
    --- Synchronet 3.21e-Linux NewsLink 1.2