🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #368

CTAN update: LuaCJK

#368
From: CTAN Announcements
Date: Fri, 20 Nov 2026 20:08
70 lines
10426 bytes
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 .
Technical Details
Message-ID: <c6cef9672defda7c@hogwart>
Path: mbox-mo1.pugleaf.net!srl.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!srl.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: Fri, 20 Nov 2026 21:08:01 +0100 (CET)
Organization: CTAN
Lines: 70
Message-ID: <c6cef9672defda7c@hogwart>
Content-Type: text/plain; charset=utf-8
Injection-Info: solani.org;
	logging-data="224183"; mail-complaints-to="abuse@news.solani.org"
To: ctan-ann@ctan.org
Cancel-Lock: sha1:paOGtoxOFPSOhfgX4A2Opit+Z34=
X-Mailman-Version: 3.3.8
X-Message-ID-Hash: XLFSFFUZ3G76GHQVJAQYFQNF6ICDAUGQ
X-Spamd-Result: default: False [-0.58 / 16.00];
	BAYES_HAM(-2.98)[99.93%];
	MISSING_MIME_VERSION(2.00)[];
	MID_RHS_NOT_FQDN(0.50)[];
	MIME_GOOD(-0.10)[text/plain];
	TO_DOM_EQ_FROM_DOM(0.00)[];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	ARC_NA(0.00)[];
	MISSING_XM_UA(0.00)[];
	RCVD_COUNT_ONE(0.00)[1];
	ASN(0.00)[asn:3320,ipnet:2003::/19,country:DE];
	HAS_ORG_HEADER(0.00)[];
	FREEMAIL_ENVRCPT(0.00)[outlook.com];
	TEXT_WORDS_TRUNCATED(0.00)[sampled=1];
	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:+]
Message-ID-Hash: XLFSFFUZ3G76GHQVJAQYFQNF6ICDAUGQ
Precedence: list
X-Rspamd-Server: irony
X-Rspamd-Action: no action
X-Mailman-Rule-Hits: member-moderation
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ctan.org; s=201703;
	t=1795205282; bh=HSOyrJXIY8QAyugMGn/FfwTaKo3b8mqNx+vrVKAMr/0=;
	h=Date:From:To:Subject:From;
	b=E4Watwhyq3Yf+C8YxGg9SKc047FE+jHxUkPmo66wfQua+B/yYZUjt+4cuEN+eotwm
	 auwJEOEFDQopH24ohriAfoXRyztbgJj1crdahxX7m6jKhVsA+JWXFQHb9yQ0oxg8am
	 J30FDd0MW6C8ltjJkZVUun0DnTCfi4i2xmmWsf68=
X-Rspamd-Queue-Id: 0EC1A80E79
X-MailFrom: manfred@ctan.org
X-User-ID: eJwFwYcBwDAIA7CXYoIZ5zSM/0+oxGuwcjWacrnporAPqPM6HMm3zZw2PTUhDq7uxIVSwv0HDI4QVA==