![](https://secure.gravatar.com/avatar/6af06dcf5f958fe4ec149408292d6acd.jpg?s=120&d=mm&r=g)
Hi, It has taken quite some time. ... now I would like to get started with Luatex. I have installed justtex, upgraded context to the latest version, upgraded the binaries to the latest version (Version snapshot-0.20.2-2007121720 (Web2C 7.5.6)). luatools --generate texexec --lua --make --all texexec --make --all My testfile is: \enableregime[utf] \starttext There is text. \stoptext ConTeXt ver: 2007.12.26 20:00 MKIV fmt: 2007.12.26 int: english/ english ... This went wrong: ...luatex/tex/texmf-local/tex/context/base/font- otf.lua:1759: table index is nil . <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...ame #1\csname #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \ifskipfontchar... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.1 Humble, my stupid question is: what is wrong here? Willi
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Willi Egger wrote:
Hi,
It has taken quite some time. ... now I would like to get started with Luatex.
I have installed justtex, upgraded context to the latest version, upgraded the binaries to the latest version (Version snapshot-0.20.2-2007121720 (Web2C 7.5.6)).
luatools --generate texexec --lua --make --all texexec --make --all
My testfile is:
\enableregime[utf]
\starttext There is text. \stoptext
ConTeXt ver: 2007.12.26 20:00 MKIV fmt: 2007.12.26 int: english/ english .... This went wrong: ...luatex/tex/texmf-local/tex/context/base/font- otf.lua:1759: table index is nil
looks like a mismatch between binaries and mkiv ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Hans Hagen wrote:
This went wrong: ...luatex/tex/texmf-local/tex/context/base/font- otf.lua:1759: table index is nil
looks like a mismatch between binaries and mkiv
same problem here. Perhaps I forgot to check in something? The bad line was a d.unicode, I changed it into this. if d.name then if d.unicode then characters[d.unicode] = { description = d } else characters[d.unicodeenc] = { description = d } end end and now all is fine. The odd thing is I thought I had changed that already.
![](https://secure.gravatar.com/avatar/6af06dcf5f958fe4ec149408292d6acd.jpg?s=120&d=mm&r=g)
Hi, Thanks for this patch! After replacing the line with you patch I tried to run the file again. - Error remained. - May be I should remake the formats. Now I get the following eror during regeneration of the formats: ! LuaTeX error ...luatex/tex/texmf-local/tex/context/base/font- def.lua:436: attempt to index field 'otf' (a nil value). \mkdefinefontfeature ...preset_context("#1","#2")} l.3539 [liga=yes,kern=yes,tlig=yes,trep=yes] % texligatures=yes,texquotes=yes Again, I am at a loss. Willi On Dec 29, 2007, at 10:59 AM, Taco Hoekwater wrote:
if d.name then if d.unicode then characters[d.unicode] = { description = d } else characters[d.unicodeenc] = { description = d } end end
BOEDE Book and Electronic Document Engineering Willi Egger w.egger@boede.nl KvK 17138708
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Willi Egger wrote:
Hi,
Thanks for this patch!
After replacing the line with you patch I tried to run the file again. - Error remained. - May be I should remake the formats.
Now I get the following eror during regeneration of the formats:
! LuaTeX error ...luatex/tex/texmf-local/tex/context/base/font- def.lua:436: attempt to index field 'otf' (a nil value). \mkdefinefontfeature ...preset_context("#1","#2")}
Perhaps just junk in the cache, caused by the earlier problems. Try deleting the fonts/* subpath of the luatex-cache? (the cache path can be deduced from the LuaTools messages) Best wishes, Taco
![](https://secure.gravatar.com/avatar/6af06dcf5f958fe4ec149408292d6acd.jpg?s=120&d=mm&r=g)
Hi Taco, strange, even after deleting the complete cache and regenerating it with luatools --generate again, the error remains. Willi On Dec 29, 2007, at 3:30 PM, Taco Hoekwater wrote:
Willi Egger wrote:
Hi,
Thanks for this patch!
After replacing the line with you patch I tried to run the file again. - Error remained. - May be I should remake the formats.
Now I get the following eror during regeneration of the formats:
! LuaTeX error ...luatex/tex/texmf-local/tex/context/base/font- def.lua:436: attempt to index field 'otf' (a nil value). \mkdefinefontfeature ...preset_context("#1","#2")}
Perhaps just junk in the cache, caused by the earlier problems. Try deleting the fonts/* subpath of the luatex-cache?
(the cache path can be deduced from the LuaTools messages)
Best wishes, Taco
______________________________________________________________________ _____________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________________________________________________ _____________
BOEDE Book and Electronic Document Engineering Willi Egger w.egger@boede.nl KvK 17138708
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Willi Egger wrote:
Hi Taco,
strange, even after deleting the complete cache and regenerating it with luatools --generate again, the error remains.
what version of luatex do you run .. luatex --version ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/6af06dcf5f958fe4ec149408292d6acd.jpg?s=120&d=mm&r=g)
Hi Hans and Taco, Luatex --version reveals: This is build 915, created on 20071128T092554Z Compiled with libpng 1.2.15; using libpng 1.2.15 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with xpdf version 3.01 Binaries where fetched from http://foundry.supelec.fr/projects/luatex/ This is LuaTeX, Version snapshot-0.20.2-2007121720 (Web2C 7.5.6) (beta) I tried also to switch to the snapshot version from http:// foundry.supelec.fr/projects/luatex/ This is luaTeX, Version 3.141592-snapshot-0.15.0-2007103113 This is build 762, created on 20070926T144212Z Compiled with libpng 1.2.15; using libpng 1.2.15 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with xpdf version 3.01 I deleted the cache. After luatools --generate texexec --lua --make --all I get the same error: ! LuaTeX error ...luatex/tex/texmf-local/tex/context/base/font- def.lua:436: attempt to index field 'otf' (a nil value). \mkdefinefontfeature ...preset_context("#1","#2")} l.3539 [liga=yes,kern=yes,tlig=yes,trep=yes] % texligatures=yes,texquotes=yes Willi On Dec 29, 2007, at 9:20 PM, Hans Hagen wrote:
Willi Egger wrote:
Hi Taco,
strange, even after deleting the complete cache and regenerating it with luatools --generate again, the error remains.
what version of luatex do you run ..
luatex --version
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________________________________________________ _____________
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Willi Egger wrote:
Hi Hans and Taco,
Luatex --version reveals:
This is build 915, created on 20071128T092554Z Compiled with libpng 1.2.15; using libpng 1.2.15 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with xpdf version 3.01
Binaries where fetched from http://foundry.supelec.fr/projects/luatex/
This is LuaTeX, Version snapshot-0.20.2-2007121720 (Web2C 7.5.6) (beta)
I tried also to switch to the snapshot version from http:// foundry.supelec.fr/projects/luatex/
This is luaTeX, Version 3.141592-snapshot-0.15.0-2007103113
This is build 762, created on 20070926T144212Z Compiled with libpng 1.2.15; using libpng 1.2.15 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with xpdf version 3.01
I deleted the cache. After luatools --generate texexec --lua --make --all
taco and i need to look into it, somehow luatex behaves like an older version
I get the same error:
! LuaTeX error ...luatex/tex/texmf-local/tex/context/base/font- def.lua:436: attempt to index field 'otf' (a nil value).
that's because you introduced an arror in font-otf.lua Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/6af06dcf5f958fe4ec149408292d6acd.jpg?s=120&d=mm&r=g)
Hi Hans, indeed, I mistakenly commented the original lines of the first error with % instead of --. Hereafter I left the patch Taco gave in the file font-otf.lua. Running texexec --lua --make --all worked then with This is luaTeX, Version 3.141592-snapshot-0.15.0-2007103113 ConTeXt ver: 2007.12.26 20:00 MKIV fmt: 2007.12.29 int: english/ englis Compiling my simple file ended with an error: error: ...luatex/tex/texmf-local/tex/context/base/node-ini.lua:438: bad argument #2 to 'kerning' (luatex.node expected, got boolean) Then I reverted to the beta This is LuaTeX, Version snapshot-0.20.2-2007121720 texexec --lua --make --all run without problem. Compiling my simple file worked then! So, sorry for the noise! Thanks for all your responses! Willi On Dec 29, 2007, at 10:22 PM, Hans Hagen wrote:
Willi Egger wrote:
Hi Hans and Taco,
Luatex --version reveals:
This is build 915, created on 20071128T092554Z Compiled with libpng 1.2.15; using libpng 1.2.15 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with xpdf version 3.01
Binaries where fetched from http://foundry.supelec.fr/projects/ luatex/
This is LuaTeX, Version snapshot-0.20.2-2007121720 (Web2C 7.5.6) (beta)
I tried also to switch to the snapshot version from http:// foundry.supelec.fr/projects/luatex/
This is luaTeX, Version 3.141592-snapshot-0.15.0-2007103113
This is build 762, created on 20070926T144212Z Compiled with libpng 1.2.15; using libpng 1.2.15 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with xpdf version 3.01
I deleted the cache. After luatools --generate texexec --lua --make --all
taco and i need to look into it, somehow luatex behaves like an older version
I get the same error:
! LuaTeX error ...luatex/tex/texmf-local/tex/context/base/font- def.lua:436: attempt to index field 'otf' (a nil value).
that's because you introduced an arror in font-otf.lua
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________________________________________________ _____________
BOEDE Book and Electronic Document Engineering Willi Egger w.egger@boede.nl KvK 17138708
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Willi Egger wrote:
I get the same error:
i uploaded a new current zip which should be able to handle the older luatex unicode table keys Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Dec 29, 2007 10:37 PM, Hans Hagen
Willi Egger wrote:
I get the same error:
i uploaded a new current zip which should be able to handle the older luatex unicode table keys
Compilation ok here . This is LuaTeX, Version snapshot-0.20.2-2007121721 ConTeXt ver: 2007.12.29 22:30 MKIV fmt: 2007.12.30 int: english/english -- luigi http://wiki.contextgarden.net/User:Luigi.scarso/Merry_Christmas_2007 .... it's new . it's powerful . it's luatex . http://www.luatex.org
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Dec 28, 2007 10:20 PM, Willi Egger
Hi, My testfile is:
\enableregime[utf]
\starttext There is text. \stoptext
ConTeXt ver: 2007.12.26 20:00 MKIV fmt: 2007.12.26 int: english/ english
Compile ok here. This is LuaTeX, Version snapshot-0.20.2-2007121721 (Web2C 7.5.6) (format=cont-en 2007.12.19) 29 DEC 2007 13:12 **test-001.tex (./test-001.tex ConTeXt ver: 2007.12.18 19:11 MKIV fmt: 2007.12.19 int: english/english I suspect that you are using a beta version. -- luigi http://wiki.contextgarden.net/User:Luigi.scarso/Merry_Christmas_2007 .... it's new . it's powerful . it's luatex . http://www.luatex.org
participants (4)
-
Hans Hagen
-
luigi scarso
-
Taco Hoekwater
-
Willi Egger