ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marc Trius <derpayatz@riseup.net>
To: ntg-context@ntg.nl
Subject: Re: Misaligned Marks
Date: Sun, 19 Jun 2011 00:40:28 -0500	[thread overview]
Message-ID: <20110619004028.11ca5ede.derpayatz@riseup.net> (raw)
In-Reply-To: <20110619001156.7b840fe6.derpayatz@riseup.net>

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 <derpayatz@riseup.net> 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 <derpayatz@riseup.net>
> 
> "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 <derpayatz@riseup.net>

"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 : 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
___________________________________________________________________________________

  reply	other threads:[~2011-06-19  5:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-19  5:11 Marc Trius
2011-06-19  5:40 ` Marc Trius [this message]
2011-06-19  5:52 ` Wolfgang Schuster
2011-06-19 18:39   ` Marc Trius
2011-06-19 20:58     ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110619004028.11ca5ede.derpayatz@riseup.net \
    --to=derpayatz@riseup.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).