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
___________________________________________________________________________________

Reply via email to