pub fn is_ptex_kanji_letter(c: char) -> boolExpand description
K12 — pTeX’s control-word letters. pTeX/upTeX give every non-ASCII code
point a kcatcode (upTeX manual §kcatcode: 16 kanji, 17 kana, 18 other
kchar, 19 hangul, 20 modifier; ASCII is always Latin), and a control word
after \ extends over kanji, kana (and, upTeX, hangul/modifier) characters
— \if西暦 is one control sequence (jsarticle.cls:1927 \newif\if西暦,
ptex-manual \黄マーカー); kcatcode 18 (symbols, fullwidth punctuation)
ends it, and Latin-1/Greek/Cyrillic stay inputenc bytes (kcatcode 15), so
this is the block set of the kanji/kana/hangul kcatcodes, not the Unicode
letter class. Under PTEX_PROFILE (set by \NeedsTeXFormat{pLaTeX2e} /
{upLaTeX2e}) these default to LETTER, as the LuaTeX profile letters the
L/M class; under pdfTeX they stay OTHER, where both LaTeXML engines let
\newif\if西暦’s bare \if to \iffalse and every \if after it fails.