Re: [NTG-context] Test Suite Fonts "extensions-001"

2016-04-29 Thread Wolfgang Schuster

Thomas Fehige 
29. April 2016 um 10:38

Below is a minimal not-working example extracted from 
"extensions-001.tex" in the fonts section of the test suite. From what 
I understand of the code, the second line should read "XPrXcXdXPrX" 
instead of "abracadabra". But it doesn't, it is still "abracadabra". 
Compiling the original extensions-001 gives me seven lines of 
"abracadabra". What am I doing wrong? I'm running ConTeXt version 
2015.05.18 12:26 MKIV current fmt: 2016.4.28 from the debian/ubuntu 
texlive packets.



You need a newer context version.

Wolfgang
___
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
___

[NTG-context] Test Suite Fonts "extensions-001"

2016-04-29 Thread Thomas Fehige
Below is a minimal not-working example extracted from 
"extensions-001.tex" in the fonts section of the test suite. From what I 
understand of the code, the second line should read "XPrXcXdXPrX" 
instead of "abracadabra". But it doesn't, it is still "abracadabra". 
Compiling the original extensions-001 gives me seven lines of 
"abracadabra". What am I doing wrong? I'm running ConTeXt version 
2015.05.18 12:26 MKIV current fmt: 2016.4.28 from the debian/ubuntu 
texlive packets.


\startluacode

fonts.handlers.otf.addfeature {

name = "stest",

type = "substitution",

data = {

a = "X",

b = "P",

}

}

\stopluacode

\definefontfeature[stest][stest=yes]

\starttext

\startTEXpage

\definedfont[file:DejaVuSerif.ttf*default]%

abracadabra\par

{\addff{stest}abracadabra\par}

\stopTEXpage

\stoptext

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