* Misaligned Marks
@ 2011-06-19 5:11 Marc Trius
2011-06-19 5:40 ` Marc Trius
2011-06-19 5:52 ` Wolfgang Schuster
0 siblings, 2 replies; 5+ messages in thread
From: Marc Trius @ 2011-06-19 5:11 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 1968 bytes --]
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
[-- Attachment #2: hebrew-context.png --]
[-- Type: image/png, Size: 42495 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Misaligned Marks
2011-06-19 5:11 Misaligned Marks Marc Trius
@ 2011-06-19 5:40 ` Marc Trius
2011-06-19 5:52 ` Wolfgang Schuster
1 sibling, 0 replies; 5+ messages in thread
From: Marc Trius @ 2011-06-19 5:40 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Misaligned Marks
2011-06-19 5:11 Misaligned Marks Marc Trius
2011-06-19 5:40 ` Marc Trius
@ 2011-06-19 5:52 ` Wolfgang Schuster
2011-06-19 18:39 ` Marc Trius
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-06-19 5:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-19 20:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-19 5:11 Misaligned Marks Marc Trius
2011-06-19 5:40 ` Marc Trius
2011-06-19 5:52 ` Wolfgang Schuster
2011-06-19 18:39 ` Marc Trius
2011-06-19 20:58 ` Wolfgang Schuster
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).