From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87217 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Hebrew vowel placement in ConTeXt. (Rik Kabel) Date: Sat, 03 May 2014 19:52:43 -0400 Message-ID: <5365814B.2070606@rik.users.panix.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0617008222==" X-Trace: ger.gmane.org 1399161196 7905 80.91.229.3 (3 May 2014 23:53:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2014 23:53:16 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun May 04 01:53:12 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wgjjy-00026M-RL for gctc-ntg-context-518@m.gmane.org; Sun, 04 May 2014 01:53:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D83610236 for ; Sun, 4 May 2014 01:53:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id f8fFTkHX8Ett for ; Sun, 4 May 2014 01:53:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E785F10238 for ; Sun, 4 May 2014 01:53:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68CB3101EA for ; Sun, 4 May 2014 01:52:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id O4-I7jpqyhq7 for ; Sun, 4 May 2014 01:52:56 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 5E0DD101E1 for ; Sun, 4 May 2014 01:52:48 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s43NqjeE009213 for ; Sun, 4 May 2014 01:52:46 +0200 Original-Received: from [192.168.201.179] (cpe-67-240-55-150.nycap.res.rr.com [67.240.55.150]) by mailbackend.panix.com (Postfix) with ESMTP id DA46D2E26E for ; Sat, 3 May 2014 19:52:44 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=Richmond Hill; latitude=40.7005; longitude=-73.8345; http://maps.google.com/maps?q=40.7005,-73.8345&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QLVzQKjD - 9ff28cdf6bee - 20140504 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87217 Archived-At: This is a multi-part message in MIME format. --===============0617008222== Content-Type: multipart/alternative; boundary="------------030901010709000003060507" This is a multi-part message in MIME format. --------------030901010709000003060507 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2014-05-03 17:16, Michael Ash wrote: > > Thank you very much for the reply. > I switched to ConTeXt standalone and now it is working. > > Best, > Michael > > > This works: > > \usemodule[simplefonts] > \definefontfeature[hebrew][default][script=hebr,ccmp=yes] > \setmainfont[Ezra SIL SR][features=hebrew] > \setupdirections[bidi=on] > \starttext > ?????????? ?????? ????????? ???? ?????????? ?????? ???????? > \stoptext > > > BTW what is the \definefontfamily syntax that would work with > \setupbodyfont in the new post-simplefonts era? > > Best, > Michael As to the by-the-way, see message 56606 in the list archive. This is not the post-simplefonts solution, but the pre-simplefonts solution. It does allow much better control over all of the fonts that make up the typeface (using ConTeXt terminology). The example shows what to do to set a document that is primarily Hebrew (or other RtL script). If you want to mix directions, bidi may be a better choice than the setupalign of the example. If you use bidi, I suggest \setupdirections[bidi=on,method=two]. I find that without method two, there is a problem with punctuation. In particular, the comma in some text {\heb *????*}, some more text gets set before, not after, the hebrew text. If you set only some Hebrew/Aramaic/Arabic, and especially if you do not need font variants (bold, italic, ...) you might prefer to define a single font. I have used: \definefontfeature [aramaic] [default] [ccmp=yes, script=hebr] \definefont [aramaic]%% KeterYG from http://culmus.sourceforge.net/taamim/ [KeterYG-Medium.ttf*aramaic sa 1] \setupdirections [bidi=on=,method=two] \starttext English {\aramaic ???? ???} English again. \stoptext I do note as well that there is a problem in the example in the linked message. It looks to me like the order of components is beth/shva/dagesh (for the first letter (and beth/qamatz/dagesh for the first of the second word), which ConTeXt sets incorrectly. When the order is changed to beth/dagesh/qamatz-or-shva, they are set correctly. If you use vim, the command ga will show the decomposition of the character components. Here are the two versions of that letter, first in the order that sets correctly: ??? and then in the order that does not: ??? -- rik --------------030901010709000003060507 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 2014-05-03 17:16, Michael Ash wrote:

Thank you very much for the reply.  
I switched to ConTeXt standalone and now it is working. 

Best,
Michael


This works: 

\usemodule[simplefonts]
\definefontfeature[hebrew][default][script=hebr,ccmp=yes]
\setmainfont[Ezra SIL SR][features=hebrew]
\setupdirections[bidi=on]
\starttext
בְרֵאשִ֖ית בָרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָמַ֖יִם וְאֵ֥ת הָאָֽרֶץ
\stoptext


BTW what is the \definefontfamily syntax that would work with \setupbodyfont in the new post-simplefonts era?

Best,
Michael

As to the by-the-way, see message 56606 in the list archive. This is not the post-simplefonts solution, but the pre-simplefonts solution. It does allow much better control over all of the fonts that make up the typeface (using ConTeXt terminology).

The example shows what to do to set a document that is primarily Hebrew (or other RtL script). If you want to mix directions, bidi may be a better choice than the setupalign of the example. If you use bidi, I suggest \setupdirections[bidi=on,method=two]. I find that without method two, there is a problem with punctuation. In particular, the comma in
some text {\heb  גדול}, some more text
gets set before, not after, the hebrew text.

If you set only some Hebrew/Aramaic/Arabic, and especially if you do not need font variants (bold, italic, ...) you might prefer to define a single font. I have used:
\definefontfeature [aramaic]
                   [default]
                   [ccmp=yes,
                    script=hebr]
\definefont        [aramaic]%% KeterYG from http://culmus.sourceforge.net/taamim/
                   [KeterYG-Medium.ttf*aramaic sa 1]
\setupdirections   [bidi=on=,method=two]
\starttext
English {\aramaic דעלך סני} English again.
\stoptext

I do note as well that there is a problem in the example in the linked message. It looks to me like the order of components is beth/shva/dagesh (for the first letter (and beth/qamatz/dagesh for the first of the second word), which ConTeXt sets incorrectly.  When the order is changed to beth/dagesh/qamatz-or-shva, they are set correctly. If you use vim, the command ga will show the decomposition of the character components.

Here are the two versions of that letter, first in the order that sets correctly:
בְּ
and then in the order that does not:
בְּ

--
rik

--------------030901010709000003060507-- --===============0617008222== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0617008222==--