Re: [NTG-context] Syriac (Estrangelo Edessa) query

2021-05-04 Thread Hans Hagen

On 5/3/2021 8:07 PM, Alan Bowen wrote:

I am trying to set text in the Syriac font Estrangelo Edessa.

Right now, I have the following (taken for the wiki):

\definefontfeature[semitic-complete]
[mode=node,analyze=yes,language=dflt,ccmp=yes,
autoscript=position,autolanguage=position,
init=yes,medi=yes,fina=yes,isol=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,calt=yes]
\definefontfeature[arabic]
[semitic-complete]
[script=arab]
\definefontfeature[syriac]
[arabic]
[fin2=yes, fin3=yes, med2=yes]
\definefallbackfamily[mainface][rm][estrangeloedessa]
[range={syriac},
features=syriac]

\definefontfamily[mainface][rm][STIX Two Text]
[protrusion=quality,
expansion=quality,
mode=node,
force=yes,
features={default, f:oldstyle}]

\setupbodyfont[mainface, 20pt]
\starttext

Hello world!

{
\setupalign[r2l]
ܐܝܟ  ܟܝܢܐ  ܕܐܐܪܣ  ܡܲܥܕܢܘܬܗܘܢ  ܘܡܲܥܒܿܕܝܢ  ܩܪܒ̈ܐ  ܘܚܣܡܐ  ܠܗܠܝܢ
}
\stoptext

Though the file compiles, the Syriac text does not look the same as the 
  source text (Estrangelo Edessa unicode). See attachment.


Any guidance in fixing this will be gladly received.

Alan

Disclaimer: I do not know Syriac.

me neither

\definefontfeature
  [syriac]
  [syriac]
  [language=dflt,script=syrc]

\starttext

{\definedfont[file:estre.ttf*syriac]\righttoleft ܐܝܟ  ܟܝܢܐ  ܕܐܐܪܣ 
ܡܲܥܕܢܘܬܗܘܢ  ܘܡܲܥܒܿܕܝܢ  ܩܪܒ̈ܐ  ܘܚܣܡܐ  ܠܗܠܝܢ}


\stoptext

we need to add a script key ... probably also in font-pre.*

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Syriac (Estrangelo Edessa) query

2021-05-03 Thread Alan Bowen
I am trying to set text in the Syriac font Estrangelo Edessa.

Right now, I have the following (taken for the wiki):

\definefontfeature[semitic-complete]
  [mode=node,analyze=yes,language=dflt,ccmp=yes,
autoscript=position,autolanguage=position,
init=yes,medi=yes,fina=yes,isol=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,calt=yes]
\definefontfeature[arabic]
  [semitic-complete]
[script=arab]
\definefontfeature[syriac]
  [arabic]
  [fin2=yes, fin3=yes, med2=yes]
\definefallbackfamily[mainface][rm][estrangeloedessa]
[range={syriac},
features=syriac]

\definefontfamily[mainface][rm][STIX Two Text]
[protrusion=quality,
expansion=quality,
mode=node,
force=yes,
features={default, f:oldstyle}]

\setupbodyfont[mainface, 20pt]
\starttext

Hello world!

{
\setupalign[r2l]
ܐܝܟ  ܟܝܢܐ  ܕܐܐܪܣ  ܡܲܥܕܢܘܬܗܘܢ  ܘܡܲܥܒܿܕܝܢ  ܩܪܒ̈ܐ  ܘܚܣܡܐ  ܠܗܠܝܢ
}
\stoptext

Though the file compiles, the Syriac text does not look the same as the
 source text (Estrangelo Edessa unicode). See attachment.

Any guidance in fixing this will be gladly received.

Alan

Disclaimer: I do not know Syriac.


FontTest.pdf
Description: Adobe PDF document
___
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
___