* [NTG-context] Best way to input UTF-8
@ 2024-02-18 16:42 Shiv Shankar Dayal
2024-02-18 17:04 ` [NTG-context] " Marco Patzer
2024-02-19 1:45 ` 黄复雄
0 siblings, 2 replies; 4+ messages in thread
From: Shiv Shankar Dayal @ 2024-02-18 16:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 170 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 415 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: Best way to input UTF-8
2024-02-18 16:42 [NTG-context] Best way to input UTF-8 Shiv Shankar Dayal
@ 2024-02-18 17:04 ` Marco Patzer
2024-02-19 1:45 ` 黄复雄
1 sibling, 0 replies; 4+ messages in thread
From: Marco Patzer @ 2024-02-18 17:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 18 Feb 2024 22:12:25 +0530
Shiv Shankar Dayal <shivshankar.dayal@gmail.com> wrote:
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: Best way to input UTF-8
2024-02-18 16:42 [NTG-context] Best way to input UTF-8 Shiv Shankar Dayal
2024-02-18 17:04 ` [NTG-context] " Marco Patzer
@ 2024-02-19 1:45 ` 黄复雄
2024-02-19 7:53 ` Marco Patzer
1 sibling, 1 reply; 4+ messages in thread
From: 黄复雄 @ 2024-02-19 1:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
<shivshankar.dayal@gmail.com> wrote:
>
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NTG-context] Re: Best way to input UTF-8
2024-02-19 1:45 ` 黄复雄
@ 2024-02-19 7:53 ` Marco Patzer
0 siblings, 0 replies; 4+ messages in thread
From: Marco Patzer @ 2024-02-19 7:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 19 Feb 2024 09:45:03 +0800
黄复雄 <aahuaang@gmail.com> wrote:
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-19 7:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-18 16:42 [NTG-context] Best way to input UTF-8 Shiv Shankar Dayal
2024-02-18 17:04 ` [NTG-context] " Marco Patzer
2024-02-19 1:45 ` 黄复雄
2024-02-19 7:53 ` Marco Patzer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).