ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Russian sentence in Czech text in Mark II in ConTeXt Suite installation on Linux in UTF8
Date: Mon, 24 Sep 2012 10:50:25 +0200	[thread overview]
Message-ID: <CALBOmsYq2Aqn-FBRy3OiuC=2e1O8P_PYwJ4QnzhKxLZL36Cb1g@mail.gmail.com> (raw)
In-Reply-To: <CALs_GZWsf1xMey63SyfBz=P78LXQ5OzoSczySsBk74PW7roqpQ@mail.gmail.com>

On Wed, Sep 19, 2012 at 1:19 PM, Michal Kvasnička wrote:
> Hallo.
>
> I have to typeset one Russian sentence (cyrillic) in a Czech document
> in ConTeXt Mark II (texexec) in ConTeXt Suite (minimal installation)
> on Linux. I use UTF8 encoding. Is there any simple way to do it? I'm
> willing to accept any font to avoid font difficulties. Can you help me
> please? Many thanks.

The following is not the only option and you can choose any font that
supports Cyrillic. The example below uses Gentium, but any font with
name t2a-something inside fonts/tfm/... would do.

\enableregime[utf-8]
% most fonts in ConTeXt don't need this extra line, but type-gentium
is not part of ConTeXt core
\usetypescriptfile[type-gentium]

% same as in type-gentium.tex, but you need a different font name to
be able to switch between encodings
% if you would only need Russian, it would suffice to use
\usetypescript[gentium][t2a]
\starttypescript [gentium-rus] [t2a]
  \definetypeface [gentium] [rm] [serif] [gentium] [default]
[encoding=\typescripttwo]
\stoptypescript

\usetypescript[gentium][ec]
\usetypescript[gentium-rus][t2a]

\setupbodyfont[gentium]

\starttext

program pro počítačovou sazbu {\switchtobodyfont[gentium-rus]система
компьютерной вёрстки}

\stoptext

Mojca
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2012-09-24  8:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-19 11:19 Michal Kvasnička
2012-09-19 11:39 ` Hans Hagen
2012-09-24  8:50 ` Mojca Miklavec [this message]

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='CALBOmsYq2Aqn-FBRy3OiuC=2e1O8P_PYwJ4QnzhKxLZL36Cb1g@mail.gmail.com' \
    --to=mojca.miklavec.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).