Best way to input UTF-8
Hi all, What is the best way to input UTF-8 in LuaMetaTex? If I use the UTF-8 characters then do not come out in text with Modern font. -- Respect, Shiv Shankar Dayal
On Sun, 18 Feb 2024 22:12:25 +0530
Shiv Shankar Dayal
What is the best way to input UTF-8 in LuaMetaTex?
“Best” is subjective. What might be a good way for me might not be your preferred way. LuaMetaTex doesn't care at all *how* you input the characters into your text editor. The characters end up in the tex file and that's what's processed by context. \starttext Ωµ±åö←§… \stoptext Methods: - custom keyboard layout (my preferred way) - compose key - symbol input tables (provided by your OS) - copy-pasting symbols from somewhere else - …
If I use the UTF-8 characters then do not come out in text with Modern font.
You need to select a font containing the characters you need. Or set up a fallback for a certain range: https://wiki.contextgarden.net/Command/definefallbackfamily Marco
I recommend you to always show missing font markers in PDF documents with
\replacemissingcharacters
On Mon, Feb 19, 2024 at 12:46 AM Shiv Shankar Dayal
Hi all,
What is the best way to input UTF-8 in LuaMetaTex? If I use the UTF-8 characters then do not come out in text with Modern font.
-- Respect, Shiv Shankar Dayal ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
On Mon, 19 Feb 2024 09:45:03 +0800
黄复雄
I recommend you to always show missing font markers in PDF documents with \replacemissingcharacters
Or let context throw an error in case a font/char is missing: %% alternative: %% context --errors='*' <file> \enabledirectives [logs.errors=*] %% missing font \definefontfamily [foo] [serif] [no font here really] \setupbodyfont [foo] \starttext %% missing characters 𝒜 \stoptext Marco
participants (3)
-
Marco Patzer
-
Shiv Shankar Dayal
-
黄复雄