ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Coding for new Unicode characters
@ 2019-12-28 23:52 Richard Mahoney | Indica et Buddhica
  2019-12-29  2:50 ` Richard Mahoney | Indica et Buddhica
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Mahoney | Indica et Buddhica @ 2019-12-28 23:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I am using Latin Modern Roman to typeset some proceedings and need the
following characters in regular, italic, and small caps:

Character: ṉ U+1E49
Name: LATIN SMALL LETTER N WITH LINE BELOW

Character: Ṉ U+1E48
Name: LATIN CAPITAL LETTER N WITH LINE BELOW


Character: ḻ U+1E3B
Name: LATIN SMALL LETTER L WITH LINE BELOW

Character: Ḻ U+1E3A
Name: LATIN CAPITAL LETTER L WITH LINE BELOW


Character: ṟ U+1E5F
Name: LATIN SMALL LETTER R WITH LINE BELOW

Character: Ṟ U+1E5E
Name: LATIN CAPITAL LETTER R WITH LINE BELOW


These characters are available in Computer Modern Unicode (although
not, it seems, in small caps). Still, I would prefer to still with LM.

I'm wondering if there is a way in Context to set up these characters
on the fly, say with something along the lines of "newunicodechar"?

\newunicodechar{<char>}{<code>}

\newunicodechar{ā}{\accent"0304 a}

newunicodechar -- Definitions of the meaning of Unicode characters
https://ctan.org/pkg/newunicodechar?lang=en



Best, Richard



-- 
Richard Mahoney | Indica et Buddhica
 
Littledene  Bay Road  Oxford  NZ 
T: +6433121699  M: +64210640216 
r.mahoney@indica-et-buddhica.org 

https://indica-et-buddhica.org/ 
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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

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

* Re: Coding for new Unicode characters
  2019-12-28 23:52 Coding for new Unicode characters Richard Mahoney | Indica et Buddhica
@ 2019-12-29  2:50 ` Richard Mahoney | Indica et Buddhica
  2019-12-29 10:56   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Mahoney | Indica et Buddhica @ 2019-12-29  2:50 UTC (permalink / raw)
  To: ntg-context

Just to say that I seem to have resolved this (& properly I hope).

I read these two pages:

https://www.contextgarden.net/Faking_characters

https://source.contextgarden.net/tex/context/base/mkiv/enco-ini.mkiv?search=textcedilla

and have included the following with my setups:

% Additional Characters
\definecharacter llowmacron {\buildtextmacron l}
\definecharacter Llowmacron {\buildtextmacron L}
\definecharacter nlowmacron {\buildtextmacron n}
\definecharacter Nlowmacron {\buildtextmacron N}
\definecharacter rlowmacron {\buildtextmacron r}
\definecharacter Rlowmacron {\buildtextmacron R}

\define\lLM{\llowmacron}
\define\LLM{\Llowmacron}
\define\nLM{\nlowmacron}
\define\NLM{\Nlowmacron}
\define\rLM{\rlowmacron}
\define\RLM{\Rlowmacron}


This seems to do it, although if there is a better way please feel
free to say.


Best, Richard



-- 
Richard Mahoney | Indica et Buddhica
 
Littledene  Bay Road  Oxford  NZ 
T: +6433121699  M: +64210640216 
r.mahoney@indica-et-buddhica.org 

https://indica-et-buddhica.org/ 

-----Original Message-----
From: Richard Mahoney | Indica et Buddhica <
r.mahoney@indica-et-buddhica.org>
Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Coding for new Unicode characters
Date: Sun, 29 Dec 2019 12:52:18 +1300
Mailer: Evolution 3.32.4 
Organization: Indica et Buddhica

I am using Latin Modern Roman to typeset some proceedings and need the
following characters in regular, italic, and small caps:

Character: ṉ U+1E49
Name: LATIN SMALL LETTER N WITH LINE BELOW

Character: Ṉ U+1E48
Name: LATIN CAPITAL LETTER N WITH LINE BELOW


Character: ḻ U+1E3B
Name: LATIN SMALL LETTER L WITH LINE BELOW

Character: Ḻ U+1E3A
Name: LATIN CAPITAL LETTER L WITH LINE BELOW


Character: ṟ U+1E5F
Name: LATIN SMALL LETTER R WITH LINE BELOW

Character: Ṟ U+1E5E
Name: LATIN CAPITAL LETTER R WITH LINE BELOW


These characters are available in Computer Modern Unicode (although
not, it seems, in small caps). Still, I would prefer to still with LM.

I'm wondering if there is a way in Context to set up these characters
on the fly, say with something along the lines of "newunicodechar"?

\newunicodechar{<char>}{<code>}

\newunicodechar{ā}{\accent"0304 a}

newunicodechar -- Definitions of the meaning of Unicode characters
https://ctan.org/pkg/newunicodechar?lang=en



Best, Richard



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

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

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

* Re: Coding for new Unicode characters
  2019-12-29  2:50 ` Richard Mahoney | Indica et Buddhica
@ 2019-12-29 10:56   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2019-12-29 10:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Richard Mahoney | Indica et Buddhica
  Cc: Pavneet Arora

On 12/29/2019 3:50 AM, Richard Mahoney | Indica et Buddhica wrote:
> Just to say that I seem to have resolved this (& properly I hope).
> 
> I read these two pages:
> 
> https://www.contextgarden.net/Faking_characters
> 
> https://source.contextgarden.net/tex/context/base/mkiv/enco-ini.mkiv?search=textcedilla
> 
> and have included the following with my setups:
> 
> % Additional Characters
> \definecharacter llowmacron {\buildtextmacron l}
> \definecharacter Llowmacron {\buildtextmacron L}
> \definecharacter nlowmacron {\buildtextmacron n}
> \definecharacter Nlowmacron {\buildtextmacron N}
> \definecharacter rlowmacron {\buildtextmacron r}
> \definecharacter Rlowmacron {\buildtextmacron R}
> 
> \define\lLM{\llowmacron}
> \define\LLM{\Llowmacron}
> \define\nLM{\nlowmacron}
> \define\NLM{\Nlowmacron}
> \define\rLM{\rlowmacron}
> \define\RLM{\Rlowmacron}

> This seems to do it, although if there is a better way please feel
> free to say.
\definefontfeature[default][default][compose=yes]

\starttext
     ṉṈḻḺṟṞ
\stoptext

So now you have to wikify both methods ... (this is one of those wiki 
pages that still describes mkii i guess, but you can ask Pavneet about 
the best place).

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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

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

end of thread, other threads:[~2019-12-29 10:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-28 23:52 Coding for new Unicode characters Richard Mahoney | Indica et Buddhica
2019-12-29  2:50 ` Richard Mahoney | Indica et Buddhica
2019-12-29 10:56   ` Hans Hagen

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