Re: [NTG-context] cm unicode font: missing tounicode of oldstyle nums

2019-10-27 Thread Hans Hagen

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> 
<0875> 
<0876> 
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
___


[NTG-context] cm unicode font: missing tounicode of oldstyle nums

2019-10-27 Thread Ulrike Fischer
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> 
<0875> 
<0876> 
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
___