Le 10 août 2011 à 14:09, Li Yanrui (李延瑞) a écrit :

> 2011/8/10 Jean-Philippe Rey <[email protected]>:
>> 
>> I couldn't make \setcjkmainfont to work. Here is my example:
>> 
>> \usemodule[simplefonts]
>> \setmainfontfallback[Arial Unicode][range=cyrillic]
>> \setcjkmainfont[Arial Unicode]
>> \starttext
>> Example text from the wiki: Немного русского текста для пробы.
>> And some Chinese: --- 人民日报海外版 --- back to English
>> \stoptext
>> 
>> There are 7 chinese characters between ---. Everything is fine with russian 
>> but the cjk characters seem to be ignored,
> 
> Because Chinese characters are not in the cyrillic area in unicode,
> you can try the following example:
> 
> \usemodule[simplefonts]
> \setmainfontfallback[arialuni][range={0x0400-0x2FA1F}]
> \setcjkmainfont[arialuni]
> \starttext
> Example text from the wiki: Немного русского текста для пробы.
> And some Chinese: --- 人民日报海外版 --- back to English
> \stoptext

Thanks, that works. But makes pointless \setcjkmainfont[arialuni]. Moreover, I 
couldn't select different fonts for Russian and Chinese, as, given Wolfgang 
answer, I thought would be possible. When I try

\setmainfontfallback[Arial Unicode][range=0x3400-0x2FA1F]
\setmainfontfallback[Times New Roman][range=cyrillic]

only the first one is taken into account.

-- 
Jean-Philippe Rey                 Professeur - École Centrale Paris
[email protected]          92295 Châtenay-Malabry Cedex - France



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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 via email to