* newotf definefontfeatures problem with script=hebr
@ 2015-07-12 17:02 Rik Kabel
2015-07-12 21:35 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Rik Kabel @ 2015-07-12 17:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1986 bytes --]
The following code fails; however, it succeeds without newotf, and it
succeeds with newotf if the defined font feature (*hebrew) is removed
from the \definefont command. The characters that demonstrate the
problem are HEBREW LETTER LAMED combined with HEBREW POINT HOLAM,
followed by HEBREW LETTER ALEF (U05DC with combining U05B9 followed by
U05D0). I have not come across other combinations that cause the
problem, but I have not done an exhaustive search.
\usemodule [newotf]
\setupdirections [bidi=global]
\definefontfeature [hebrew] [default] [lang=heb,ccmp=yes,script=hebr]
\definefont [Hebrew] [sileot*hebrew]
\starttext
\startTEXpage
This is okay:{\hfill\Hebrew לא}
This is okay:{\hfill{\Hebrew לֹ}}
This fails:{\hfill{\Hebrew לֹא}}
\stopTEXpage
\stoptext
It reports:
error:
C:/ConTeXt/tex/texmf-context/tex/context/base/font-ots.lua:1586:
attempt to index a number value
tex error > tex error on line 13 in file
C://Users/rik/Desktop/newotf-features.tex: ?
<inserted text> \par
<to be read again>
\vss
\pack_framed_do_bottom ...amedparameter \c!bottom
\raggedbottomcommand
<to be read again> \localendstrut \pack_framed_do_bottom
\egroup
\stopfittingpage ->\removeunwantedspaces \egroup
\egroup \doif
{\fittingpage...
l.13 \stopTEXpage
The same problem occurs in the same way with the following fonts, most
of which are shipped with Windows:
Arial Regular
Arial Bold
Arial Narrow
David Regular
David Bold
Ezra SIL Regular
Ezra SIL SR Regular
Keter YG Medium
Levenim MT Regular
Levenim MT Bold
Taamey David CLM
Tahoma Regular
Tahoma Bold
Times New Roman Regular
Times New Roman Bold
[-- Attachment #1.2: Type: text/html, Size: 2953 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: newotf definefontfeatures problem with script=hebr
2015-07-12 17:02 newotf definefontfeatures problem with script=hebr Rik Kabel
@ 2015-07-12 21:35 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2015-07-12 21:35 UTC (permalink / raw)
To: ntg-context
On 7/12/2015 7:02 PM, Rik Kabel wrote:
> The following code fails; however, it succeeds without newotf, and it
> succeeds with newotf if the defined font feature (*hebrew) is removed
> from the \definefont command. The characters that demonstrate the
> problem are HEBREW LETTER LAMED combined with HEBREW POINT HOLAM,
> followed by HEBREW LETTER ALEF (U05DC with combining U05B9 followed by
> U05D0). I have not come across other combinations that cause the
> problem, but I have not done an exhaustive search.
>
> \usemodule [newotf]
> \setupdirections [bidi=global]
> \definefontfeature [hebrew] [default] [lang=heb,ccmp=yes,script=hebr]
>
> \definefont [Hebrew] [sileot*hebrew]
> \starttext
> \startTEXpage
> This is okay:{\hfill\Hebrew לא}
>
> This is okay:{\hfill{\Hebrew לֹ}}
>
> This fails:{\hfill{\Hebrew לֹא}}
> \stopTEXpage
> \stoptext
>
> It reports:
>
> error:
> C:/ConTeXt/tex/texmf-context/tex/context/base/font-ots.lua:1586:
> attempt to index a number value
>
> tex error > tex error on line 13 in file
> C://Users/rik/Desktop/newotf-features.tex: ?
>
> <inserted text> \par
>
> <to be read again>
> \vss
> \pack_framed_do_bottom ...amedparameter \c!bottom
> \raggedbottomcommand
> <to be read again> \localendstrut \pack_framed_do_bottom
> \egroup
> \stopfittingpage ->\removeunwantedspaces \egroup
> \egroup \doif
> {\fittingpage...
> l.13 \stopTEXpage
fixed (i only tested siltot)
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-12 21:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-12 17:02 newotf definefontfeatures problem with script=hebr Rik Kabel
2015-07-12 21:35 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).