Article View: comp.text.tex
Article #437CTAN update: LuaCJK
From: CTAN Announcements
Date: Sat, 28 Nov 2026 07:49
Date: Sat, 28 Nov 2026 07:49
114 lines
7144 bytes
7144 bytes
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
Technical Details
Message-ID:
<awqHfhz0rufkgf3T@prptp>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-mailShow 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 <petra@ctan.org> Newsgroups: comp.text.tex Subject: CTAN update: LuaCJK Date: Sat, 28 Nov 2026 08:49:18 +0100 Organization: CTAN Lines: 114 Message-ID: <awqHfhz0rufkgf3T@prptp> Reply-To: ctan@ctan.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: solani.org; logging-data="693680"; mail-complaints-to="abuse@news.solani.org" To: ctan-ann@ctan.org Cancel-Lock: sha1:mt+2ucSA+enNxEeELSqAv1k38pk= X-Rspamd-Queue-Id: E952F80441 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ctan.org; s=201703; t=1795852168; bh=ZDmhUDKrL5d4QbbANJLeb1n35YW84BgYbCoukAQHXfc=; h=Date:From:To:Subject:Reply-To:From; b=n9Fjg/j6nc8NDpfJT3wDW+75+RsskK5pUe9uvJCnTH01yeVxD23a1Gsqz2RMQE/mm EkUiZ3UDvVNv+20iCm2p080m1jtNhoLXo7WPbw7C6r8lB1Q2qYnZyvjun+ud9rsvrA gyfZF11bRowxBMBqsSLbiJ8JdsMwIsqSHIalRqo0= X-Message-ID-Hash: IVRH2AMDODBRGHPDAYZEDSPDQPXJXV6S X-Rspamd-Action: no action Content-Disposition: inline X-Mailman-Version: 3.3.8 X-MailFrom: petra@ctan.org Precedence: list X-Mailman-Rule-Hits: member-moderation Message-ID-Hash: IVRH2AMDODBRGHPDAYZEDSPDQPXJXV6S X-Spamd-Result: default: False [-2.60 / 16.00]; BAYES_HAM(-3.00)[100.00%]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FREEMAIL_ENVRCPT(0.00)[outlook.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:3320,ipnet:2003::/19,country:DE]; MISSING_XM_UA(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; TO_DOM_EQ_FROM_DOM(0.00)[]; RCVD_TLS_LAST(0.00)[]; REPLYTO_DOM_EQ_TO_DOM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[ctan@ctan.org]; LOCAL_OUTBOUND(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; REPLYTO_DOM_EQ_FROM_DOM(0.00)[]; TO_DN_NONE(0.00)[]; MIME_TRACE(0.00)[0:+] X-Rspamd-Server: irony X-User-ID: eJwNwokRwDAIA7CVyueUcYCa/UdITwqDYI4j4LG/jzR9WGRpqvfIqUF31kLBWPGkybaaveoXNxERhw== X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address