Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Khaled Hosny
It works fine with context, BTW.

On Wed, Jun 10, 2009 at 02:49:46PM +0300, Khaled Hosny wrote:
 The following sample would crash luatex using context distriputed
 luatex-plain format:
 %%%
 \font\arab=SimpleNaskhi.ttf:script=arab;language=dflt;mode=node;+init;+medi;+fina;+rlig;+liga;+mark\arab
 \textdir TRT
 اللهِ 
 \bye
 %%%
 
 (the font used
 http://code.google.com/p/raqm/source/browse/trunk/fonts/simplenaskhi/SimpleNaskhi.ttf)
 
 With the message:
 %%%
 error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
 attempt to call field 'register_message' (a nil value)
 %%%
 
 It seems that fonts.register_message is not defined. 
 Pressing enter after that will crash luatex:
 
 %%%
 luatex: ../../../source/texk/web2c/luatexdir/tex/linebreak.c:1660:
 ext_do_line_break: Assertion `varmem[((cur_p)+1)].hh.v.RH ==
 0+4+4+4+4+4+4+2+2+2' failed.
 Aborted
 %%%
 
 Regards,
  Khaled
 
 
 -- 
  Khaled Hosny
  Arabic localiser and member of Arabeyes.org team
  Free font developer

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Taco Hoekwater


Khaled Hosny wrote:
 %%%
 error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
 attempt to call field 'register_message' (a nil value)
 %%%

This is the bug (a lua or font problem).

 %%%
 luatex: ../../../source/texk/web2c/luatexdir/tex/linebreak.c:1660:
 ext_do_line_break: Assertion `varmem[((cur_p)+1)].hh.v.RH ==
 0+4+4+4+4+4+4+2+2+2' failed.
 Aborted
 %%%

This is just a result of the earlier bug.

Best wishes,
Taco
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Hans Hagen

Khaled Hosny wrote:

On Wed, Jun 10, 2009 at 01:52:28PM +0200, Taco Hoekwater wrote:


Khaled Hosny wrote:

%%%
error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
attempt to call field 'register_message' (a nil value)
%%%

This is the bug (a lua or font problem).


The font has a ligature that don't have base anchors (that part of lua
code is about reporting this, I guess). If I replace
fonts.register_message with a dummy function it'll work.


i'll add

function fonts.register_message()
end

to font-mis.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
-
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Khaled Hosny
On Wed, Jun 10, 2009 at 03:38:29PM +0200, Hans Hagen wrote:
 Khaled Hosny wrote:
 On Wed, Jun 10, 2009 at 01:52:28PM +0200, Taco Hoekwater wrote:

 Khaled Hosny wrote:
 %%%
 error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
 attempt to call field 'register_message' (a nil value)
 %%%
 This is the bug (a lua or font problem).

 The font has a ligature that don't have base anchors (that part of lua
 code is about reporting this, I guess). If I replace
 fonts.register_message with a dummy function it'll work.

 i'll add

 function fonts.register_message()
 end

 to font-mis.lua

I updated to context 2009.06.10 20:06, but still getting that crash.
luatex-fonts.lua doesn't load font-mis.lua, adding it there (and
commnting luatex-fonts-merged.lua line) fixes it.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Hans Hagen

Khaled Hosny wrote:

On Wed, Jun 10, 2009 at 03:38:29PM +0200, Hans Hagen wrote:

Khaled Hosny wrote:

On Wed, Jun 10, 2009 at 01:52:28PM +0200, Taco Hoekwater wrote:

Khaled Hosny wrote:

%%%
error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
attempt to call field 'register_message' (a nil value)
%%%

This is the bug (a lua or font problem).

The font has a ligature that don't have base anchors (that part of lua
code is about reporting this, I guess). If I replace
fonts.register_message with a dummy function it'll work.

i'll add

function fonts.register_message()
end

to font-mis.lua


I updated to context 2009.06.10 20:06, but still getting that crash.
luatex-fonts.lua doesn't load font-mis.lua, adding it there (and
commnting luatex-fonts-merged.lua line) fixes it.


ah, should be font-dum


-
  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
-
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context