Hi Luigi,

The "tounicode" key in the font character tables also supports passing
an array of Unicode codepoints, which is _much_ nicer than trying to
reencode characters into UTF-16BE (especially for non-BMP characters).
The attached patch adds this to the manual.

Thanks,
-- Max
From 2bf66344d2be91d9636d73b756dbdf08110950b8 Mon Sep 17 00:00:00 2001
From: Max Chernoff <[email protected]>
Date: Wed, 16 Apr 2025 02:03:00 -0600
Subject: [PATCH] Document the table variant of `character.tounicode`.

---
 manual/luatex-fonts.tex | 1 +
 1 file changed, 1 insertion(+)

diff --git a/manual/luatex-fonts.tex b/manual/luatex-fonts.tex
index 41570ac05..c111767e3 100644
--- a/manual/luatex-fonts.tex
+++ b/manual/luatex-fonts.tex
@@ -216,6 +216,7 @@ The following top|-|level keys can be present inside a character hash:
 \NC \type{right_protruding} \NC no  \NC no  \NC maybe \NC number  \NC character's \lpr {rpcode} \NC\NR
 \NC \type{expansion_factor} \NC no  \NC no  \NC maybe \NC number  \NC character's \lpr {efcode} \NC\NR
 \NC \type{tounicode}        \NC no  \NC no  \NC maybe \NC string  \NC character's \UNICODE\ equivalent(s), in \UTF|-|16BE hexadecimal format \NC\NR
+\NC                         \NC     \NC     \NC       \NC table   \NC character's \UNICODE\ equivalent, as an array of (integer) \UNICODE\ codepoints \NC\NR
 \NC \type{next}             \NC no  \NC yes \NC yes   \NC number  \NC the \quote {next larger} character index \NC\NR
 \NC \type{extensible}       \NC no  \NC yes \NC yes   \NC table   \NC the constituent parts of an extensible recipe \NC\NR
 \NC \type{vert_variants}    \NC no  \NC no  \NC yes   \NC table   \NC constituent parts of a vertical variant set \NC \NR
-- 
2.49.0

_______________________________________________
dev-luatex mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to