🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #391

CTAN update: LuaCJK

#391
From: 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 .
Technical Details
Message-ID: <ef4049600d0ba35b@hogwart>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: CTAN Announcements <manfred@ctan.org>
Newsgroups: comp.text.tex
Subject: CTAN update: LuaCJK
Date: Mon, 23 Nov 2026 19:45:26 +0100 (CET)
Organization: CTAN
Lines: 60
Message-ID: <ef4049600d0ba35b@hogwart>
Content-Type: text/plain; charset=utf-8
Injection-Info: solani.org;
	logging-data="412466"; mail-complaints-to="abuse@news.solani.org"
To: ctan-ann@ctan.org
Cancel-Lock: sha1:qePgPhouhqRZ2j+eskNuYGoJGPc=
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address
Message-ID-Hash: BHZD6SME22NCD5QACDUBJUBW7DRDOLZH
X-Mailman-Rule-Hits: member-moderation
X-User-ID: eJwFwYEBwDAEBMCVCP9hnFD2H6F3MCr7OkHHYm3lm9svjXU6NA4ZrpNyxF/PQqQk4QwGun4S+RBz
X-Mailman-Version: 3.3.8
X-MailFrom: manfred@ctan.org
X-Spamd-Result: default: False [-0.60 / 16.00];
	BAYES_HAM(-3.00)[99.99%];
	MISSING_MIME_VERSION(2.00)[];
	MID_RHS_NOT_FQDN(0.50)[];
	MIME_GOOD(-0.10)[text/plain];
	HAS_ORG_HEADER(0.00)[];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	RCVD_COUNT_ONE(0.00)[1];
	ARC_NA(0.00)[];
	TO_DOM_EQ_FROM_DOM(0.00)[];
	ASN(0.00)[asn:3320,ipnet:2003::/19,country:DE];
	MISSING_XM_UA(0.00)[];
	FREEMAIL_ENVRCPT(0.00)[outlook.com];
	RECEIVED_HELO_LOCALHOST(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	FROM_HAS_DN(0.00)[];
	RCPT_COUNT_ONE(0.00)[1];
	LOCAL_OUTBOUND(0.00)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	TO_DN_NONE(0.00)[];
	RCVD_TLS_LAST(0.00)[];
	MIME_TRACE(0.00)[0:+]
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ctan.org; s=201703;
	t=1795459526; bh=iv25GzehIhp5HA1G2Je6kyRrwIAKGdNM8uue7dib7zw=;
	h=Date:From:To:Subject:From;
	b=TMFM4gx7yw9NUMkib1FPDMymkSeuMcCFo1SOgn8kRxg4u8av9FO5Xy3v5TPTnztO2
	 gC2lvWBBnPt/DtkzWPm8a7tCf2J3rRwyrwxsJyB0yMKGQRXrTkn0qkd2G22muoFIvV
	 T2YfV/HOBzfVppu0uZWhr9mTuvAE93l2hEWllXSk=
Precedence: list
X-Rspamd-Action: no action
X-Rspamd-Queue-Id: D476E803F9
X-Rspamd-Server: irony
X-Message-ID-Hash: BHZD6SME22NCD5QACDUBJUBW7DRDOLZH