From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problem with fonts in Lua
Date: Tue, 15 Sep 2020 13:15:58 +0200 [thread overview]
Message-ID: <09ffcd46-b825-0024-16ed-042f55841d76@gmail.com> (raw)
In-Reply-To: <PR2PR08MB485725C49B4F3FCDC6EE4C6CA3200@PR2PR08MB4857.eurprd08.prod.outlook.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-09-15 11:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-15 10:00 MANUEL GONZALEZ SUAREZ
2020-09-15 11:15 ` Wolfgang Schuster [this message]
2020-09-18 16:20 ` Pablo Rodriguez
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=09ffcd46-b825-0024-16ed-042f55841d76@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--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).