ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Hamid,Idris" <Idris.Hamid@ColoState.EDU>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Hans Hagen <j.hagen@xs4all.nl>
Subject: [NTG-context] Re: \defineactivecharacter in LMTX + composing characters
Date: Wed, 2 Aug 2023 13:49:00 +0000	[thread overview]
Message-ID: <eba7eedf-1043-421d-963a-f78f8eaa1393@Spark> (raw)
In-Reply-To: <8c727ea8-01e4-c2ce-3052-fae522640ed0@xs4all.nl>


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

On Aug 1, 2023, 10:09 AM -0600, Hans Hagen <j.hagen@xs4all.nl>, wrote:
** Caution: EXTERNAL Sender **

On 8/1/2023 4:18 PM, Hamid,Idris wrote:
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):

Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ
I'd use a different font but as you want to go cheap ... attached gets
you going and will give you a few hours playing around with fonts.

Many thanks. It would be great to see this developed into a module; see below:
Using a scaled c for some c like shape is kind of bad anyway, kind of
using a comma for an ogonek.

The issue is this: The use of 02BE and 02BF (ʿ ʾ) to transliterate the two glottal stops in Arabic is now standard in scholarship, but the default shape of these two characters is unattractive. So some typesetters began replacing the default half-ring looks with superscript 'c' and superscript mirrored c. Here is a article about this:

http://andreasmhallberg.github.io/typographyofaynandhamza/

Now, as the author notices, the TeX Gyre fonts render 02BE and 02BF as superscript 'c'. (That was added to TeX Gyre at our request many years ago.)

Linked below is a pdf that shows some font rendering of Latin Modern, Pagella, Brill - a nice gratis font for download but with a strange license, so dangerous to use for real work -, and Minion. It also includes a table of composition analysis for each of the transliteration characters.

https://www.dropbox.com/scl/fi/m1e3quht30auzi3rxyhzb/test-transliteration.pdf?rlkey=o18dlm85q2ie80iv0004lynlv&dl=0

Here is the test string:

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

ʿAyn QURʾĀN

The TeX Gyre fonts use superscript c; Brill tries to make the half-rings elegant, and Minion is missing many characters.

Another approach might be to use a breve shape (rotated 90 degrees in either direction) instead of superscript c to represent the half rings. In any case, a good module would facilitate exploration of such possibilities.

Thanks again, Hans.

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







[-- Attachment #1.2: Type: text/html, Size: 3469 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
___________________________________________________________________________________

      reply	other threads:[~2023-08-02 13:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-01 14:18 [NTG-context] " Hamid,Idris
2023-08-01 16:09 ` [NTG-context] " Hans Hagen
2023-08-02 13:49   ` Hamid,Idris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eba7eedf-1043-421d-963a-f78f8eaa1393@Spark \
    --to=idris.hamid@colostate.edu \
    --cc=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).