On Wed, Nov 21, 2018 at 7:04 PM Ulrike Fischer <ne...@nililand.de> wrote:

> 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
>


\definefontfeature[quran][mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
       ccmp=yes,locl=yes,calt=yes,
       liga=yes,clig=yes,dlig=yes,rlig=yes,
       mark=yes,mkmk=yes,kern=yes,curs=yes,
  colr=yes]
\definefont[quran][AmiriQuranColored*quran @ 18pt]

I have just copied-and- pasted an example around, but
at least the "black-and-white" typography match.


-- 
luigi
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to