ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Yury G. Kudryashov" <urkud@ya.ru>
To: ntg-context@ntg.nl
Subject: Re: two languages hyphenation
Date: Fri, 25 Jun 2010 20:28:26 +0400	[thread overview]
Message-ID: <i02lfa$ra4$1@dough.gmane.org> (raw)
In-Reply-To: <4C24D1D7.3070103@wxs.nl>

Hans Hagen wrote:

> On 25-6-2010 2:24, Mojca Miklavec wrote:
>> Since they are written in two different scripts you can theoretically
>> enable them simultaneously (but I'm not sure if this is supported by
>> default).
> 
> interesting and quite trivial to support ... do you have a test file?
I do.

% Just \usetypescript[xits] doesn't work for me (I have xits fonts in 
~/.fonts). Probably, it is already fixed in the latest beta.
\starttypescript [math] [xits] [name]
  \definefontsynonym[MathRoman][name:xitsmath] 
[features=math\mathsizesuffix]
\stoptypescript

\starttypescript [serif] [xits] [name]
  \definefontsynonym[Serif]          [name:xitsregular]    
[features=default]
  \definefontsynonym[SerifBold]      [name:xitsbold]       
[features=default]
  \definefontsynonym[SerifItalic]    [name:xitsitalic]     
[features=default]
  \definefontsynonym[SerifBoldItalic][name:xitsbolditalic] 
[features=default]
\stoptypescript

\starttypescript[xits]
  \definetypeface [xits] [rm] [serif] [xits]   [default]
  \definetypeface [xits] [ss] [sans]  [heros]  [default] [rscale=0.9]
  \definetypeface [xits] [tt] [mono]  [modern] [default] [rscale=1.05]
  \definetypeface [xits] [mm] [math]  [xits]   [default]
\stoptypescript

\setupbodyfont[xits,12pt]

\starttext
% Hyphenated
{\language[ru]
\dorecurse{50}{русский текст }
}
% Not hyphenated
{\language[en]
\dorecurse{50}{русский текст }
}
% Not hyphenated
{\language[ru]
\dorecurse{50}{Multilingual }
}
% Hyphenated
{\language[en]
\dorecurse{50}{Multilingual }
}
\stoptext

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

  reply	other threads:[~2010-06-25 16:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2021.1277449597.4277.ntg-context@ntg.nl>
2010-06-25 12:19 ` Vyatcheslav Yatskovsky
2010-06-25 12:24   ` Mojca Miklavec
2010-06-25 15:57     ` Hans Hagen
2010-06-25 16:28       ` Yury G. Kudryashov [this message]
2010-06-25 17:20         ` Khaled Hosny
     [not found] <mailman.2040.1277469608.4277.ntg-context@ntg.nl>
2010-06-25 12:42 ` Vyatcheslav Yatskovsky
     [not found] <mailman.2045.1277489811.4277.ntg-context@ntg.nl>
2010-06-27 14:17 ` Vyatcheslav Yatskovsky

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='i02lfa$ra4$1@dough.gmane.org' \
    --to=urkud@ya.ru \
    --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).