On 8/2/2013 2:28 PM, Philipp Gesang wrote:
···<date: 2013-08-02, Friday>···<from: Marco Patzer>···On 2013–08–02 Philipp Gesang wrote:https://phi-gamma.net/pdf/copypasta.pdf https://phi-gamma.net/files/copypasta.txt I definitely get from this one.Indeed. When I copy from your file I get those private Unicode slots. When I run the example code from your OP, I get the correct characters. I don't know what's the difference between those two files.The PDF is what Context produces here with that code.The LuaTeX version and ConTeXt version is the same. Creator: ConTeXt - 2013.08.01 01:31 Producer: LuaTeX-0.76.0There appears to be a difference between node and base mode depending on how the font is defined: \pdfcompresslevel0 \setupbodyfont [iwona] \definefontfeature [proto] [onum=yes,smcp=yes,script=dflt,lang=dflt] \definefontfeature [withbase] [proto] [mode=base] \definefontfeature [withnode] [proto] [mode=node] \definefont [iwonab] [file:Iwona-Regular.otf*withbase] \definefont [iwonan] [file:Iwona-Regular.otf*withnode] \starttext \feature[<] base mode\par {\feature[!][withbase]0123456789abcdefghijklmnopqrstuvwxyz\par} {\iwonab 0123456789abcdefghijklmnopqrstuvwxyz} node mode\par {\feature[!][withnode]0123456789abcdefghijklmnopqrstuvwxyz\par} {\iwonan 0123456789abcdefghijklmnopqrstuvwxyz} \stoptext \endinput This gets me (through pdftotext): base mode 0123456789abcdefghijklmnopqrstuvwxyz node mode So base mode with \definefont works while node mode or the font from the typescript doesn’t.
For such tests you need to compare all cases: nopdfcompression \setupbodyfont [iwona] \definefontfeature [withbaseone] [proto] [mode=base] \definefontfeature [withnodeone] [proto] [mode=node]\definefontfeature [withbasetwo] [proto] [mode=base,onum=yes,smcp=yes,script=dflt,lang=dflt] \definefontfeature [withnodetwo] [proto] [mode=node,onum=yes,smcp=yes,script=dflt,lang=dflt]
\definefont [iwonabone] [file:Iwona-Regular.otf*withbaseone] \definefont [iwonanone] [file:Iwona-Regular.otf*withnodeone] \definefont [iwonabtwo] [file:Iwona-Regular.otf*withbasetwo] \definefont [iwonantwo] [file:Iwona-Regular.otf*withnodetwo] \starttext test 1, both modes: {\iwonanone 0123456789abcdefghijklmnopqrstuvwxyz}\par {\iwonabone 0123456789abcdefghijklmnopqrstuvwxyz}\par {\iwonantwo 0123456789abcdefghijklmnopqrstuvwxyz}\par {\iwonabtwo 0123456789abcdefghijklmnopqrstuvwxyz}\par % test 2, base only: % {\iwonabone 0123456789abcdefghijklmnopqrstuvwxyz}\par % {\iwonabtwo 0123456789abcdefghijklmnopqrstuvwxyz}\par % test 3, node only: % {\iwonanone 0123456789abcdefghijklmnopqrstuvwxyz}\par % {\iwonantwo 0123456789abcdefghijklmnopqrstuvwxyz}\par \stoptext i.e. get rid of potential interferences attached is what i get -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
oeps.pdf
Description: Adobe PDF document
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________