From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87236 Path: news.gmane.org!not-for-mail From: Michael Ash Newsgroups: gmane.comp.tex.context Subject: Calling fonts (was: Hebrew vowel placement in ConTeXt) Date: Mon, 5 May 2014 11:29:57 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0085100315==" X-Trace: ger.gmane.org 1399397015 14685 80.91.229.3 (6 May 2014 17:23:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 May 2014 17:23:35 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 06 19:23:30 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 1WhhvI-0001bn-L1 for gctc-ntg-context-518@m.gmane.org; Tue, 06 May 2014 18:08:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62EF310247 for ; Mon, 5 May 2014 17:30:31 +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 KLgXx+7CslvN for ; Mon, 5 May 2014 17:30:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 67772101FC for ; Mon, 5 May 2014 17:30:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96D16101E2 for ; Mon, 5 May 2014 17:30:22 +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 qqJr8wG6FUam for ; Mon, 5 May 2014 17:30:20 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id D4722101E1 for ; Mon, 5 May 2014 17:30:20 +0200 (CEST) Original-Received: from mailhub2.oit.umass.edu (mailhub2.oit.umass.edu [128.119.103.54]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s45FUIqq012501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 5 May 2014 17:30:19 +0200 Original-Received: from mailhub2.oit.umass.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 7DD15461464 for ; Mon, 5 May 2014 11:30:17 -0400 (EDT) Original-Received: from mail-qg0-f49.google.com (mail-qg0-f49.google.com [209.85.192.49]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) (Authenticated sender: maash) by mailhub2.oit.umass.edu (Postfix) with ESMTPSA id 6073946142F for ; Mon, 5 May 2014 11:30:17 -0400 (EDT) Original-Received: by mail-qg0-f49.google.com with SMTP id a108so1289359qge.36 for ; Mon, 05 May 2014 08:30:17 -0700 (PDT) X-Received: by 10.140.26.39 with SMTP id 36mr5239257qgu.111.1399303817136; Mon, 05 May 2014 08:30:17 -0700 (PDT) Original-Received: by 10.96.35.99 with HTTP; Mon, 5 May 2014 08:29:57 -0700 (PDT) X-PMX-Version: 6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.5.5.152418 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=128.119.103.54; country=US; region=Massachusetts; city=Amherst; latitude=42.3896; longitude=-72.4534; http://maps.google.com/maps?q=42.3896,-72.4534&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03LWfujbs - 315ce8f7395a - 20140505 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:87236 Archived-At: --===============0085100315== Content-Type: multipart/alternative; boundary=001a11c125eaf4146704f8a8ce48 --001a11c125eaf4146704f8a8ce48 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > ... 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). > 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. Thank you very much again. This was helpful, and here is my minimal working example: \definefontfeature[hebrew][default][script=3Dhebr,ccmp=3Dyes] \definefont [myhebrew] [SILEOTSR.ttf*hebrew] \setupdirections[bidi=3Don,method=3Dtwo] \starttext Here is the first line of the Bible. {\myhebrew =D7=91=D6=BC=D6=B0=D7=A8=D6=B5=D7=90=D7=A9=D7=81=D6=B4=D6=96=D7= =99=D7=AA =D7=91=D6=BC=D6=B8=D7=A8=D6=B8=D6=A3=D7=90 =D7=90=D6=B1=D7=9C=D6= =B9=D7=94=D6=B4=D6=91=D7=99=D7=9D =D7=90=D6=B5=D6=A5=D7=AA =D7=94=D6=B7=D7= =A9=D7=81=D6=BC=D6=B8=D7=9E=D6=B7=D6=96=D7=99=D6=B4=D7=9D =D7=95=D6=B0=D7= =90=D6=B5=D6=A5=D7=AA =D7=94=D6=B8=D7=90=D6=B8=D6=BD=D7=A8=D6=B6=D7=A5=D7=83 } \stoptext I still have some questions. It took me a long time to understand that \definefont [myhebrew] [SILEOTSR.ttf*hebrew] would use the fontfeature "hebrew" that I had defined together with the font file SILEOTSR.ttf and assign this pairing to the nickname "myhebrew". Rik's example also has "sa 1" which I do not understand. \definefontfeature [aramaic] [default][ccmp=3Dyes,script=3Dhebr] \definefont [aramaic] [KeterYG-Medium.ttf*aramaic sa 1] Is the syntax for definefont using "*" documented somewhere? Is it similar to definefontsynonym at http://wiki.contextgarden.net/Fonts_in_LuaTeX (and below)? I also do not understand the full syntax from the referenced message. Here is my best effort to annotate it, but I would appreciate corrections or additions %% The following defines the fontfeature "hebrew" %% which can then be applied to a font. %% definefontfeature is documented at %% http://wiki.contextgarden.net/Command/definefontfeature %% and the available features are specific to the font %% e.g. http://www.microsoft.com/typography/otspec/featurelist.htm \definefontfeature[hebrew][default][script=3Dhebr,ccmp=3Dyes,mark=3Dyes] %% I am confused below. When was font:fallback:serif defined? %% Why file: but features=3D ? %% How will the fontsynonym "Serif" function? \starttypescript [serif] [ezrasil] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:sileot] [features=3Dhebrew] \stoptypescript %% Still confused \starttypescript [ezrasil] \definetypeface [ezrasil] [rm] [serif] [ezrasil] [default] \quittypescriptscanning \stoptypescript %% Sets the main body to the font %% that has been named and given features \setupbodyfont[ezrasil] %% Would an alternative at this point be to use %% \definefont [myezrasil] [ezrasil] %% to define a single font and then use {\myezrasil =D7=91=D6=BC=D6=B0=D7= =A8=D6=B5=D7=90=D7=A9=D7=81=D6=B4=D6=96=D7=99=D7=AA} for short passages \setupalign[r2l] \starttext =D7=91=D6=BC=D6=B0=D7=A8=D6=B5=D7=90=D7=A9=D7=81=D6=B4=D6=96=D7=99=D7=AA = =D7=91=D6=BC=D6=B8=D7=A8=D6=B8=D6=A3=D7=90 =D7=90=D6=B1=D7=9C=D6=B9=D7=94= =D6=B4=D6=91=D7=99=D7=9D =D7=90=D6=B5=D6=A5=D7=AA =D7=94=D6=B7=D7=A9=D7=81= =D6=BC=D6=B8=D7=9E=D6=B7=D6=96=D7=99=D6=B4=D7=9D =D7=95=D6=B0=D7=90=D6=B5= =D6=A5=D7=AA =D7=94=D6=B8=D7=90=D6=B8=D6=BD=D7=A8=D6=B6=D7=A5=D7=83 \stoptext Thank you again for your guidance. Best, Michael --001a11c125eaf4146704f8a8ce48 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



=
I still have some questions. =C2=A0It took me a long time to understan= d that

\definefont [myhebrew] [SILEOTSR.ttf*h= ebrew]=C2=A0

would use the fontfeature "hebrew" that= I had defined together with the font file SILEOTSR.ttf and assign this pai= ring to the nickname "myhebrew". =C2=A0Rik's example also has= "sa 1" which I do not understand.=C2=A0

\definefontfeature [aramaic]=C2=A0[default][ccmp=3Dyes,script=3Dhebr]
\def= inefont [aramaic]=C2=A0[KeterYG-Medium.ttf*aramaic sa 1]

<= /div>


I also do not understand the full syntax= from the referenced message. =C2=A0Here is my best effort to annotate it, = but I would appreciate corrections or additions

%% The following defines the fontfea=
ture "hebrew"=C2=A0
%% which can then be applied to a fo=
nt.
%% definefontfeature is documented a=
t
%% http://wiki.co=
ntextgarden.net/Command/definefontfeature
%% and=
 the available features are specific to the font

=
%% e.g. http://www.microsoft.com/typography/otspec/featurelist.htm

\definefontfeature[hebrew][default][s=
cript=3Dhebr,ccmp=3Dyes,mark=3Dyes]

%% I am confused below.  When was font:fallback:serif defi=
ned?
%% Why file: but=
 features=3D ?

%% How will the  fontsynonym "Se=
rif" function?
\starttypescript [serif] [ezrasil]
  =
\setups[font:fallback:serif]
  \definefontsynonym [Serif] [file:sileot] [features=3Dhebrew]
\stoptypescript

%% Still confused
\starttypescript [ezrasil]
  \definetypeface  [ezrasil] [rm] [serif] [ezrasil] [default]
  \quittypescriptscanning
\stoptypescript

%% Sets the main body to the font=C2=A0

%% that has been named and given features
\setupbodyfont[ezrasil]

%% Would an alternative at this point be to use
%%=C2=A0\definefont [myezrasil=
] [ezrasil]=C2=A0
%% to define =
a single font and  then use {\myezrasil =D7=91=D6=BC=D6=B0=D7=A8=D6=B5=D7=90=D7=A9=D7=81=D6=B4=D6=96=D7=99=D7=
=AA} =C2=A0for =
short passages=



\setupalign[r2l]

\starttext
=D7=91=D6=BC=D6=B0=D7=A8=D6=B5=D7=
=90=D7=A9=D7=81=D6=B4=D6=96=D7=99=D7=AA =D7=91=D6=BC=D6=B8=D7=A8=D6=B8=D6=
=A3=D7=90 =D7=90=D6=B1=D7=9C=D6=B9=D7=94=D6=B4=D6=91=D7=99=D7=9D =D7=90=D6=
=B5=D6=A5=D7=AA =D7=94=D6=B7=D7=A9=D7=81=D6=BC=D6=B8=D7=9E=D6=B7=D6=96=D7=
=99=D6=B4=D7=9D =D7=95=D6=B0=D7=90=D6=B5=D6=A5=D7=AA =D7=94=D6=B8=D7=90=D6=
=B8=D6=BD=D7=A8=D6=B6=D7=A5=D7=83 =C2=A0
\stoptext




Thank yo=
u again for your guidance.


Best,
Michael=
--001a11c125eaf4146704f8a8ce48-- --===============0085100315== 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 ___________________________________________________________________________________ --===============0085100315==--