Am 19.06.2011 um 07:11 schrieb Marc Trius: > 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: ...
You can save a few lines and you should use \setupalign[r2l] instead of \textdir etc. \definefontfeature[hebrew][default][script=hebr,ccmp=yes,mark=yes] \starttypescript [serif] [ezrasil] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:sileot] [features=hebrew] \stoptypescript \starttypescript [ezrasil] \definetypeface [ezrasil] [rm] [serif] [ezrasil] [default] \quittypescriptscanning \stoptypescript \setupbodyfont[ezrasil] \setupalign[r2l] \starttext בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext or you use the simplefonts module (a little bit slower because it has to find the font which takes a while when only one style is available): \usemodule[simplefonts] \definefontfeature[hebrew][default][script=hebr,ccmp=yes,mark=yes] \setmainfont[Ezra SIL][features=hebrew] \setupalign[r2l] \starttext בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________