two languages hyphenation
Hello, I have two languages in my document: English and Russian, and want to enable hyphenation for both. (By default, only English words are hyphenated). How to achive this? Rgrds, Vyatcheslav
On Fri, Jun 25, 2010 at 14:19, Vyatcheslav Yatskovsky wrote:
Hello,
I have two languages in my document: English and Russian, and want to enable hyphenation for both. (By default, only English words are hyphenated). How to achive this?
\mainlanguage[ru] \starttext some russian text {\language[en] and some english ...} some russian again {\language[en] and again some english} \stoptext 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). Mojca
On 25-6-2010 2:24, Mojca Miklavec wrote:
On Fri, Jun 25, 2010 at 14:19, Vyatcheslav Yatskovsky wrote:
Hello,
I have two languages in my document: English and Russian, and want to enable hyphenation for both. (By default, only English words are hyphenated). How to achive this?
\mainlanguage[ru]
\starttext some russian text {\language[en] and some english ...} some russian again {\language[en] and again some english} \stoptext
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? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.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
On Fri, Jun 25, 2010 at 08:28:26PM +0400, Yury G. Kudryashov wrote:
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.
xits typescript uses file names, however OS fonts (i.e. those under ~/.fonts) can only be found by file names. Since file and font names are essentially the same, once normalized, in case of xits, I suggest that font names are used so it works for both scenarios (system vs. texmf installation). (I myself have a self may typescript just for that) Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
participants (5)
-
Hans Hagen
-
Khaled Hosny
-
Mojca Miklavec
-
Vyatcheslav Yatskovsky
-
Yury G. Kudryashov