Hi Hans, It seems like the char-def.lua code is not merged into luatex-fonts-merged.lua. It causes: ! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690: attempt to index global 'characters' (a nil value) -- Best regards, Li Yanrui (李延瑞)
On Wed, Nov 03, 2010 at 09:29:39AM +0800, Li Yanrui (李延瑞) wrote:
Hi Hans,
It seems like the char-def.lua code is not merged into luatex-fonts-merged.lua. It causes:
! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690: attempt to index global 'characters' (a nil value)
Also (after deleting that line since "chardata" is not actually used anywhere), node mode does not seem to work: \input{luatex-fonts} \font\testa={file:xits-regular:mode=node;+liga} at 45pt \font\testb={file:xits-regular:mode=base;+liga} at 45pt \testa fi fl ffi ffl\par \testb fi fl ffi ffl\par \bye Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
On 3-11-2010 3:46, Khaled Hosny wrote:
On Wed, Nov 03, 2010 at 09:29:39AM +0800, Li Yanrui (李延瑞) wrote:
Hi Hans,
It seems like the char-def.lua code is not merged into luatex-fonts-merged.lua. It causes:
! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690: attempt to index global 'characters' (a nil value)
Also (after deleting that line since "chardata" is not actually used anywhere), node mode does not seem to work:
\input{luatex-fonts}
\font\testa={file:xits-regular:mode=node;+liga} at 45pt \font\testb={file:xits-regular:mode=base;+liga} at 45pt \testa fi fl ffi ffl\par \testb fi fl ffi ffl\par \bye
I uploaded a version without the chardata reference Anyhow, I do see ligatures here so I wonder what goes wrong at your end. ----------------------------------------------------------------- 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 -----------------------------------------------------------------
2010/11/3 Hans Hagen
I uploaded a version without the chardata reference
Now the fontfallback hangs up. For example, \definefontsynonym[song][name:adobesongstd] \definefontfallback[hereos][name:texgyreherosregular][0x0000-0x0400] \definefontsynonym[fbsong][song][fallbacks=hereos] \definefont[newsong][fbsong] \starttext \newsong 夹杂 English 的中文文本 \stoptext The error message is: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/char-ini.lua:311: bad argument #1 to 'gsub' (string expected, got nil) Is "0x000-0x0400" replaced by somthing? -- Best regards, Li Yanrui (李延瑞)
2010/11/3 Li Yanrui (李延瑞)
2010/11/3 Hans Hagen
: I uploaded a version without the chardata reference
Now the fontfallback hangs up. For example,
\definefontsynonym[song][name:adobesongstd] \definefontfallback[hereos][name:texgyreherosregular][0x0000-0x0400] \definefontsynonym[fbsong][song][fallbacks=hereos] \definefont[newsong][fbsong]
\starttext \newsong 夹杂 English 的中文文本 \stoptext
The error message is:
! LuaTeX error ...text/tex/texmf-context/tex/context/base/char-ini.lua:311: bad argument #1 to 'gsub' (string expected, got nil)
Is "0x000-0x0400" replaced by somthing?
It seems like a typo in the line 315 in char-ini.lua. "local range = characters.blocks[tag]" or "local range = characters.blocks[name]"? -- Best regards, Li Yanrui (李延瑞)
On 3-11-2010 10:36, Li Yanrui (李延瑞) wrote:
2010/11/3 Hans Hagen
: I uploaded a version without the chardata reference
Now the fontfallback hangs up. For example,
\definefontsynonym[song][name:adobesongstd] \definefontfallback[hereos][name:texgyreherosregular][0x0000-0x0400] \definefontsynonym[fbsong][song][fallbacks=hereos] \definefont[newsong][fbsong]
\starttext \newsong 夹杂 English 的中文文本 \stoptext
The error message is:
fixed in beta ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On Wed, Nov 03, 2010 at 09:34:40AM +0100, Hans Hagen wrote:
On 3-11-2010 3:46, Khaled Hosny wrote:
On Wed, Nov 03, 2010 at 09:29:39AM +0800, Li Yanrui (李延瑞) wrote:
Hi Hans,
It seems like the char-def.lua code is not merged into luatex-fonts-merged.lua. It causes:
! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690: attempt to index global 'characters' (a nil value)
Also (after deleting that line since "chardata" is not actually used anywhere), node mode does not seem to work:
\input{luatex-fonts}
\font\testa={file:xits-regular:mode=node;+liga} at 45pt \font\testb={file:xits-regular:mode=base;+liga} at 45pt \testa fi fl ffi ffl\par \testb fi fl ffi ffl\par \bye
I uploaded a version without the chardata reference
Anyhow, I do see ligatures here so I wonder what goes wrong at your end.
I updated minimals but still I get ligatures only with base mode, I even built the luatex-plain format and used luatex binary from minimals. If I process the file with context, I get ligatures in both cases. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
On 3-11-2010 2:29, Li Yanrui (李延瑞) wrote:
Hi Hans,
It seems like the char-def.lua code is not merged into luatex-fonts-merged.lua. It causes:
! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690: attempt to index global 'characters' (a nil value)
I'll remove that code; char-def is not supposed to be in luatex-fonts anyhow. Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Khaled Hosny
-
Li Yanrui (李延瑞)