ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Calling fonts (was: Hebrew vowel placement in ConTeXt)
@ 2014-05-05 15:29 Michael Ash
  2014-05-05 15:54 ` Wolfgang Schuster
  2014-05-05 18:37 ` Rik Kabel
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Ash @ 2014-05-05 15:29 UTC (permalink / raw)
  To: ntg-context


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Calling fonts (was: Hebrew vowel placement in ConTeXt)
@ 2014-05-05 18:59 Michael Ash
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Ash @ 2014-05-05 18:59 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 815 bytes --]

Wolfgang and Rik

Thank you very much.  This was exactly what I needed.  I'll add these to
http://wiki.contextgarden.net/Fonts_in_LuaTeX

Michael


> You can find a description about the options in the old and new fonts
> manuals:
>
> - http://pragma-ade.com/general/manuals/mfonts.pdf
> - http://pragma-ade.com/general/manuals/fonts-mkiv.pdf
>
> Wolfgang
>
>
> Font definition in ConTeXt allows extreme degrees of indirection. There
> is a lot of flexibility that follows from this. By defining synonyms
> such as serif and serifbold and using these in the document, the
> document can be written independently of the actual fonts used. The
> names are to some degree arbitrary, but used conventionally. There is
> nothing stopping you from placing a sans font at the end of a chain of
> serif references.
> Rik
>

[-- Attachment #1.2: Type: text/html, Size: 1430 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-05 20:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-05 15:29 Calling fonts (was: Hebrew vowel placement in ConTeXt) Michael Ash
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

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).