ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with fonts in Lua
@ 2020-09-15 10:00 MANUEL GONZALEZ SUAREZ
  2020-09-15 11:15 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: MANUEL GONZALEZ SUAREZ @ 2020-09-15 10:00 UTC (permalink / raw)
  To: ntg-context


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

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.

[-- Attachment #1.2: Type: text/html, Size: 6779 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Problem with fonts in Lua
  2020-09-15 10:00 Problem with fonts in Lua MANUEL GONZALEZ SUAREZ
@ 2020-09-15 11:15 ` Wolfgang Schuster
  2020-09-18 16:20   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2020-09-15 11:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: Problem with fonts in Lua
  2020-09-15 11:15 ` Wolfgang Schuster
@ 2020-09-18 16:20   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2020-09-18 16:20 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-09-18 16:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15 10:00 Problem with fonts in Lua MANUEL GONZALEZ SUAREZ
2020-09-15 11:15 ` Wolfgang Schuster
2020-09-18 16:20   ` Pablo Rodriguez

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