ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Misaligned Marks
Date: Sun, 19 Jun 2011 07:52:03 +0200	[thread overview]
Message-ID: <DF5D0D76-400F-42C4-9B50-5A2E5F3DDD17@googlemail.com> (raw)
In-Reply-To: <20110619001156.7b840fe6.derpayatz@riseup.net>


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
___________________________________________________________________________________

  parent reply	other threads:[~2011-06-19  5:52 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
2011-06-19  5:52 ` Wolfgang Schuster [this message]
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=DF5D0D76-400F-42C4-9B50-5A2E5F3DDD17@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).