ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* cm unicode font: missing tounicode of oldstyle nums
@ 2019-10-27 17:04 Ulrike Fischer
  2019-10-27 17:46 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrike Fischer @ 2019-10-27 17:04 UTC (permalink / raw)
  To: ntg-context

cmunrm.otf uses "unstandard" names for the glyphs of the old style
numbers, e.g. oneoldstyle. 

This means that the glyphs don't get a tounicode mapping:

\starttext 
\pdfvariable compresslevel=0
\font\test={file:cmunrm.otf:mode=node;script=latn;language=DFLT;+onum;}\test
abc123
\stoptext


gives 

6 beginbfchar
<0042> <0061>
<0043> <0062>
<0044> <0063>
<0874> <FFFD>
<0875> <FFFD>
<0876> <FFFD>
endbfchar

The names are in glyphtounicode.tex, which contains e.g.
\pdfglyphtounicode{oneoldstyle}{0031}

So it doesn't looks as if they were completly unusual. Would it be
possible to add tounicode mappings for these name?

And how can one declare mappings for really unusual names? 


-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

___________________________________________________________________________________
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] 2+ messages in thread

* Re: cm unicode font: missing tounicode of oldstyle nums
  2019-10-27 17:04 cm unicode font: missing tounicode of oldstyle nums Ulrike Fischer
@ 2019-10-27 17:46 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2019-10-27 17:46 UTC (permalink / raw)
  To: news3, mailing list for ConTeXt users

On 10/27/2019 6:04 PM, Ulrike Fischer wrote:
> cmunrm.otf uses "unstandard" names for the glyphs of the old style
> numbers, e.g. oneoldstyle.
> 
> This means that the glyphs don't get a tounicode mapping:
> 
> \starttext
> \pdfvariable compresslevel=0
> \font\test={file:cmunrm.otf:mode=node;script=latn;language=DFLT;+onum;}\test
> abc123
> \stoptext
> 
> 
> gives
> 
> 6 beginbfchar
> <0042> <0061>
> <0043> <0062>
> <0044> <0063>
> <0874> <FFFD>
> <0875> <FFFD>
> <0876> <FFFD>
> endbfchar
> 
> The names are in glyphtounicode.tex, which contains e.g.
> \pdfglyphtounicode{oneoldstyle}{0031}
> 
> So it doesn't looks as if they were completly unusual. Would it be
> possible to add tounicode mappings for these name?
I saw the message on the list. It has to do with the fact that the font 
has these glyphs in the private unicode area. There were two ways to 
deal with this case so I added both catches. No beta posted yet.

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] 2+ messages in thread

end of thread, other threads:[~2019-10-27 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-27 17:04 cm unicode font: missing tounicode of oldstyle nums Ulrike Fischer
2019-10-27 17:46 ` 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).