ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: Gerben Wierda via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: Typesetting modern Greek (UTF8) with ConTeXt
Date: Mon, 6 Jun 2022 19:14:41 +0200	[thread overview]
Message-ID: <fff99e40-42b7-a5c6-7b9a-5a2c841d5fb5@gmx.es> (raw)
In-Reply-To: <FED25737-DAF1-43ED-BCF0-252154559EC7@rna.nl>

On 6/6/22 02:19, Gerben Wierda via ntg-context wrote:
> For Russian I have:
> 
> \setuplanguage[ru][patterns={ru}]\mainlanguage[ru]
> \definefallbackfamily
>   [archimate]
>   [ss]
>   [Helvetica]
>   [preset=range:cyrillic,
>    tf=style:light,
>    it=style:lightoblique,
>    bf=style:regular,
>    bi=style:oblique,
>    force=yes,
>  rscale=1.0]
> \definefontfamily [archimate] [ss] [Optima]
> \setupbodyfont[archimate]
> 
> I can’t find out from ConTeXtgarden what code I must use for modern
> Greek (‘el’?) and what range I must use for Greek characters (I guess
> ‘greekandcoptic’ which I’ve seen mentioned somewhere).
> 
> Correct?

Hi Gerben,

\language[gr], but beware since it uses patterns for ancient Greek.

preset=range:greek is what you intend.

Another approach would be to use \setuplanguage[gr] and configure the
font in setups.

Here you have a minimal sample with both approaches:

    \mainlanguage[en]
    \definefallbackfamily
      [archimate]
      [ss]
      [MgOpenCosmetica]
      [preset=range:greek,
       force=yes]
    \definefontfamily [archimate] [ss] [Optima]
    \setupbodyfont[archimate]

    \definefontfamily
      [mgopencosm]
      [ss]
      [MgOpenCosmetica]
      [preset=range:greek,
       force=yes]
    \startsetups[greek-typeface]
        \switchtobodyfont[mgopencosm]
    \stopsetups

    \setuplanguage[agr][setups={greek-typeface}]

    \startbuffer
    Ο κόσμος θα ήταν απίστευτα φτωχός αν δεν υπήρχαν οι
    Έλληνες. Μάλιστα, αν θέλουμε να είμαστε ειλικρινείς, δεν θα
    υπήρχε καθόλου κόσμος, χωρίς τις επιστήμες, τη δημοκρατία,
    τις πόλεις, τα φωνήεντα, τη φέτα, το φραπέ, το ούζο και το
    χταποδάκι στα κάρβουνα.
    \stopbuffer

    \starttext
    \gr \getbuffer\par
    \agr \getbuffer
    \stoptext

MgOpenCosmetica can be downloaded from
https://web.archive.org/web/20090309063533/www.ellak.gr/fonts/mgopen/index.en.html
(direct link:
https://web.archive.org/web/20090309063533/www.ellak.gr/fonts/mgopen/files/MgOpenCosmetica.tar.gz).

Just in case it might help,

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

  parent reply	other threads:[~2022-06-06 17:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-06  0:19 Gerben Wierda via ntg-context
2022-06-06  4:21 ` Thangalin via ntg-context
2022-06-06 17:14 ` Pablo Rodriguez via ntg-context [this message]
2022-06-06 20:59   ` Henning Hraban Ramm via ntg-context
2022-06-07 15:42     ` Pablo Rodriguez via ntg-context
2022-06-07 16:32       ` Henning Hraban Ramm via ntg-context
2022-06-07 17:30         ` Pablo Rodriguez via ntg-context
2022-06-08 14:38           ` Henning Hraban Ramm via ntg-context
2022-06-08 20:23             ` Pablo Rodriguez via ntg-context
     [not found]               ` <CABaoHuv=tkna6w1kmU-2G1E3J25tq2woef2HFMq72uwRZRQnFw@mail.gmail.com>
2022-08-12  7:14                 ` Fwd: " Hans Hagen via ntg-context
2022-08-12 11:47                   ` Adam Reviczky via ntg-context

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=fff99e40-42b7-a5c6-7b9a-5a2c841d5fb5@gmx.es \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).