From: Michael Ash <mash@econs.umass.edu>
To: ntg-context@ntg.nl
Subject: Calling fonts (was: Hebrew vowel placement in ConTeXt)
Date: Mon, 5 May 2014 11:29:57 -0400 [thread overview]
Message-ID: <CAKTWfUOR1o1xdWx-q+15P2S-apRasJWrnnkqKAYtudQ58Be74g@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 3118 bytes --]
>
> ... see message 56606
> <http://www.mail-archive.com/ntg-context%40ntg.nl/msg56606.html> 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=hebr,ccmp=yes]
\definefont [myhebrew] [SILEOTSR.ttf*hebrew]
\setupdirections[bidi=on,method=two]
\starttext
Here is the first line of the Bible.
{\myhebrew בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת
הָאָֽרֶץ׃ }
\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=yes,script=hebr]
\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=hebr,ccmp=yes,mark=yes]
%% I am confused below. When was font:fallback:serif defined?
%% Why file: but features= ?
%% How will the fontsynonym "Serif" function?
\starttypescript [serif] [ezrasil]
\setups[font:fallback:serif]
\definefontsynonym [Serif] [file:sileot] [features=hebrew]
\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 בְּרֵאשִׁ֖ית}
for short passages
\setupalign[r2l]
\starttext
בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
\stoptext
Thank you again for your guidance.
Best,
Michael
[-- Attachment #1.2: Type: text/html, Size: 10865 bytes --]
[-- Attachment #2: 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
___________________________________________________________________________________
next reply other threads:[~2014-05-05 15:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 15:29 Michael Ash [this message]
2014-05-05 15:54 ` Wolfgang Schuster
2014-05-05 18:37 ` Rik Kabel
2014-05-05 20:29 ` Calling fonts Hans Hagen
2014-05-05 18:59 Calling fonts (was: Hebrew vowel placement in ConTeXt) Michael Ash
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=CAKTWfUOR1o1xdWx-q+15P2S-apRasJWrnnkqKAYtudQ58Be74g@mail.gmail.com \
--to=mash@econs.umass.edu \
--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).