Re: [NTG-context] Problem with fonts in Lua

2020-09-18 Thread Pablo Rodriguez
On 9/15/20 1:15 PM, Wolfgang Schuster wrote:
> \setuplanguage [es] [patterns={es,gr}]

Just a minor issue, ancient Greek is "agr" (instead of "gr").

That being said, Heraklit is a good match for Palatino (both by Hermann
Zapf). The digitized version is available from
https://greekfontsociety-gfs.gr/_assets/fonts/GFS_Heraklit.zip (direct
link).

So the final sample might read:

  \definefallbackfamily
 [mainface] [rm] [GFS Heraklit]
 [preset=range:greek,force=yes]

  \definefontfamily [mainface] [rm] [TeX Gyre Pagella]

  \definefontfamily [mainface] [ss] [TeX Gyre Heros] [scale=0.75]

  \setuplanguage [es] [patterns={es,gr}]

  \setupbodyfont [mainface, 15pt]

  \mainlanguage[es]

  \starttext

  \samplefile{cervantes-es}

  \samplefile{aristotle-grc}}

  \stoptext

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with fonts in Lua

2020-09-15 Thread Wolfgang Schuster

MANUEL GONZALEZ SUAREZ schrieb am 15.09.2020 um 12:00:

Hi all:

I have this minimal example (thanks to Pablo and Charles):

\mainlanguage [es]

\definefallbackfamily [mainface] [rm] [New Athena Unicode]

[preset = range: greek, force = yes]

% \definefallbackfamily [mainface] [rm] [Old Standard]

% [preset = range: greek, force = yes]

\definefontfamily [mainface] [rm] [TeX Gyre Pagella]

\definefontfamily [mainface] [ss] [TeX Gyre Heros, scale = 0.75]

\setupbodyfont [mainface]

\starttext

Spanish text

\input tufte

Greek Text:

Μετὰ δὲ ταῦτα οὐ πολλαῖς ἡμέραις ὕστερον ἦλθεν ἐξ

Ἀθηνῶν Θυμοχάρης ἔχων ναῦς ὀλίγας · καὶ εὐθὺς ἐναυμάχησαν αὖθις 
Λακεδαιμόνιοι καὶ Ἀθηναῖοι, ἐνίκησαν δὲ


Λακεδαιμόνιοι ἡγουμένου Ἀγησανδρίδου.

\stoptext

I compile with TeXLive 2020 and Windows 10. I have the two fonts (New 
Athena Unicode and Old Standard) installed on my system but with New 
Athena Unicode it does not compile; on the other hand, with Old Standard 
it does compile. I do not know what I can do.


1. Remove the spaces from the key-val entries

2. Don't mix key-val entries with arguments

3. Load hyphenation patterns for greek (you can add them to spain 
because there is no overlap).


The following example works on my system but I suggest to add a math 
font (itemize uses math symbols as fallback).


\definefallbackfamily
  [mainface] [rm] [New Athena Unicode]
  [preset=range:greek,force=yes]

\definefontfamily [mainface] [rm] [TeX Gyre Pagella]

\definefontfamily [mainface] [ss] [TeX Gyre Heros] [scale=0.75]

\setuplanguage [es] [patterns={es,gr}]

\setupbodyfont [mainface]

\mainlanguage[es]

\starttext

\samplefile{cervantes-es}

\samplefile{aristotle-grc}

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Problem with fonts in Lua

2020-09-15 Thread MANUEL GONZALEZ SUAREZ
Hi all:

I have this minimal example (thanks to Pablo and Charles):

\mainlanguage [es]
\definefallbackfamily [mainface] [rm] [New Athena Unicode]
[preset = range: greek, force = yes]

% \definefallbackfamily [mainface] [rm] [Old Standard]
% [preset = range: greek, force = yes]
\definefontfamily [mainface] [rm] [TeX Gyre Pagella]
\definefontfamily [mainface] [ss] [TeX Gyre Heros, scale = 0.75]
\setupbodyfont [mainface]
\starttext
Spanish text

\input tufte
Greek Text:

Μετὰ δὲ ταῦτα οὐ πολλαῖς ἡμέραις ὕστερον ἦλθεν ἐξ
Ἀθηνῶν Θυμοχάρης ἔχων ναῦς ὀλίγας · καὶ εὐθὺς ἐναυμάχησαν αὖθις Λακεδαιμόνιοι 
καὶ Ἀθηναῖοι, ἐνίκησαν δὲ
Λακεδαιμόνιοι ἡγουμένου Ἀγησανδρίδου.
\stoptext


I compile with TeXLive 2020 and Windows 10. I have the two fonts (New Athena 
Unicode and Old Standard) installed on my system but with New Athena Unicode it 
does not compile; on the other hand, with Old Standard it does compile. I do 
not know what I can do.
Thanks for the help.
Manuel González.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___