Adding ccmp=yes to the font feature seems to fix this by replacing the 
problematic combinations with ligatures.

Thanks,
Marc

On Sun, 19 Jun 2011 00:11:56 -0500
Marc Trius <[email protected]> wrote:

> Hi All,
> I am trying to set some text in Hebrew with diacritical marks, and whenever 
> there is a diacritical that's supposed to come in the middle of a letter, all 
> the marks are coming off misaligned, right after the glyph rather than in the 
> middle of it (or wherever they're supposed to be).
> 
> I've attached a ConTeXt and Gimp output using the same font, Ezra SIL.
> 
> Here is the code:
> 
>   \definefontfeature
>     [hebrew] [
>       mode=node,
>       expansion=quality,
>       protrusion=quality,
>       language=dflt,
>       script=hebr,
>       liga=yes,
>       rlig=yes,
>       dlig=yes,
>       clig=yes,
>       mark=yes,
>       mkmk=yes,
>       kern=yes
>       ]
> 
>   \starttypescript [serif] [ezrasil]
>     \definefontsynonym        [Ezra-SIL-Regular]      [name:ezrasil]  
> [features=hebrew]
>     \definefontsynonym        [Ezra-SIL-Bold]         [name:ezrasil]  
> [features=hebrew]
>     \definefontsynonym        [Ezra-SIL-Italic]       [name:ezrasil]  
> [features=hebrew]
>     \definefontsynonym        [Ezra-SIL-Bold-Italic]  [name:ezrasil]  
> [features=hebrew]
>   \stoptypescript
> 
>   \starttypescript [serif] [ezrasil] [name]
>     \definefontsynonym        [Serif]                 [Ezra-SIL-Regular]      
> [features=hebrew]
>     \definefontsynonym        [SerifItalic]           [Ezra-SIL-Italic]       
> [features=hebrew]
>     \definefontsynonym        [SerifBold]             [Ezra-SIL-Bold] 
> [features=hebrew]
>     \definefontsynonym        [SerifBoldItalic]       
> [Ezra-SIL-Bold-Italic][features=hebrew]
>   \stoptypescript
> 
>       \definetypeface [Hebrew]        [rm][serif][ezrasil]    [default] 
> [features=hebrew]
> 
> \textdir TRT\pardir TRT\bodydir TRT\pagedir TRT
> 
>   \usetypescript   [Hebrew]
>   \setupbodyfont   [Hebrew, 12pt]
>   
> \starttext
> בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ
> \stoptext
> 
> Thanks for your help.
> -- 
> Marc Trius <[email protected]>
> 
> "The enemy is the gramophone mind, whether or not one agrees with the record 
> that is being played at the moment." --- George Orwell


-- 
Marc Trius <[email protected]>

"The enemy is the gramophone mind, whether or not one agrees with the record 
that is being played at the moment." --- George Orwell
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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
___________________________________________________________________________________

Reply via email to