Re: [NTG-context] issue with font and lua code

2015-07-24 Thread Hans Hagen
On 7/20/2015 6:49 PM, Pablo Rodriguez wrote: Hans, I have the following sample (it includes Lua code for underscore hyphenation): \startluacode function document.addfunnyhyphen(tfmdata) local underscore = utf.byte(_) local char =

Re: [NTG-context] issue with font and lua code

2015-07-24 Thread Pablo Rodriguez
On 07/24/2015 10:26 AM, Hans Hagen wrote: On 7/20/2015 6:49 PM, Pablo Rodriguez wrote: [...] For some reason, the font gives the following error with the Lua code (font can be downloaded from http://dl.dafont.com/dl/?f=sv_basic_manual): lua errorlua error on line 33 in file svb.tex:

[NTG-context] issue with font and lua code

2015-07-20 Thread Pablo Rodriguez
Hans, I have the following sample (it includes Lua code for underscore hyphenation): \startluacode function document.addfunnyhyphen(tfmdata) local underscore = utf.byte(_) local char = tfmdata.characters[underscore] if not char then return