[NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

Ulrike Fischer news3 at nililand.de
Wed Nov 21 19:04:01 CET 2018


Am Wed, 21 Nov 2018 18:46:44 +0100 schrieb Hans Hagen:

> I'm not sure what yoy mwan with 0xFFFF as that's intercepted

With this example (font from
https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf)

a part of the glyphs are in blue. Khaled claims that this is wrong,
that the blue should be black, and the output look like this 
https://i.stack.imgur.com/gpoO7.jpg

(sorry about the ^^, it is a translation from a plain example):

\starttext
\definefontfeature[quran][script=arab,colr=yes]
\definefont[quran][AmiriQuranColored*quran @ 20pt]


\catcode`\^=7
\pardir TRT\textdir TRT
\quran
\baselineskip=2.6em
\parindent=0pt
\leftskip=0pt plus 1fil
\rightskip=0pt plus -1fil
\parfillskip=0pt plus 2fil
\def\aya#1{{\textdir TLT ^^^^06dd#1}}
^^^^fdfd~\aya{١}\par
ٱلۡحَمۡدُ لِلَّهِ رَبِّ ٱلۡعَٰلَمِینَ~\aya{٢} ٱلرَّحۡمَٰنِ
ٱلرَّحِیمِ~\aya{٣} مَٰلِكِ یَوۡمِ ٱلدِّینِ~\aya{٤} إِیَّاكَ نَعۡبُدُ
وَإِیَّاكَ نَسۡتَعِینُ~\aya{٥} ٱهۡدِنَا ٱلصِّرَٰطَ
ٱلۡمُسۡتَقِیمَ~\aya{٦} صِرَٰطَ ٱلَّذِینَ أَنۡعَمۡتَ عَلَیۡهِمۡ
غَیۡرِ ٱلۡمَغۡضُوبِ عَلَیۡهِمۡ وَلَا ٱلضَّاۤلِّینَ~\aya{٧}\par
\stoptext


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the ntg-context mailing list