ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] \defineactivecharacter in LMTX + composing characters
@ 2023-08-01 14:18 Hamid,Idris
  2023-08-01 16:09 ` [NTG-context] " Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Hamid,Idris @ 2023-08-01 14:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1916 bytes --]

Dear gang,

It appears that \defineactivecharacter does not work in lmtx:

\starttext
\defineactivecharacter Ḥ  {\d{H}}
\defineactivecharacter ḥ  {\d{h}}
\defineactivecharacter Ṣ  {\d{S}}
\defineactivecharacter ṣ  {\d{s}}
\stoptext

This should not produce any typeset output but in lmtx it does.

Background: The following characters are essential for Arabic transliteration (assuming your email client has the chars):

Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ

But most really good fonts don't have them, so we have to compose them. Now there are other methods, e.g,

1) \definecharacter Hbottomdot          {\buildtextbottomdot H}

but cannot use it without something like \defineactivecharacter (there's no way we're going back to the bad old days of control sequences for accented chars). That is, we need to be able to say something like

\definecharacter Ḥ          {\buildtextbottomdot H}

But this doesn't work.

The other method

2) \definefontfeature[default][default][compose=yes]

doesn't appear to work either (at least not with, e.g., Minion Pro Opticals).

And even when it used to (somewhat) work (often ugly default results) it did not support utf 02BE and 02BF (ʿ ʾ). So we still need something like

\defineactivecharacter ʿ {\high{c}}
\defineactivecharacter ʾ {\kern.07 em \high{\rotate[rotation=180,location=high]{c}}}

or better

\definecharacter ʿ {\high{c}}
\definecharacter ʾ {\kern.07 em \high{\rotate[rotation=180,location=high]{c}}}

The upshot is that we need a general, configurable solution for this kind of situation.

And please don't say, "Use a different font!" -)

Thank you in advance for any guidance and assistance in this matter.

Best wishes
Idris

--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

[-- Attachment #1.2: Type: text/html, Size: 3023 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-02 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01 14:18 [NTG-context] \defineactivecharacter in LMTX + composing characters Hamid,Idris
2023-08-01 16:09 ` [NTG-context] " Hans Hagen
2023-08-02 13:49   ` Hamid,Idris

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).