* can not get the quotation marks from the fallback fonts
@ 2014-01-08 2:23 Li Yanrui (李延瑞)
2014-01-08 6:56 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Li Yanrui (李延瑞) @ 2014-01-08 2:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 986 bytes --]
Hi,
i find the quotation marks in those chinese fallback fonts can not work as
before. They always be replaced with the latin fonts. please see the
following example:
\definefontsynonym[pagella][name:texgyrepagellaregular]
\definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
\definefontsynonym[fbsong][pagella][fallbacks=song]
\definefont[newsong][fbsong]
\starttext
\newsong 中文的\quotation{引号}。
\stoptext
i have another question, when i make texgyrepagellaregular as the fallback
font for adobesongstd, it can not work. see the following example:
\definefontsynonym[song][name:adobesongstd]
\definefontfallback[pagella][name:texgyrepagellaregular][0x0000-0x0400]
\definefontsynonym[fbsong][song][fallbacks=pagella]
\definefont[newsong][fbsong]
\starttext
\newsong 夹杂 English 的中文文本
\stoptext
the above "English" word is still display with adobesongstd but not pagella.
--
Best regards,
Li Yanrui (李延瑞)
[-- Attachment #1.2: Type: text/html, Size: 1103 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: can not get the quotation marks from the fallback fonts
2014-01-08 2:23 can not get the quotation marks from the fallback fonts Li Yanrui (李延瑞)
@ 2014-01-08 6:56 ` Wolfgang Schuster
2014-01-08 7:57 ` Li Yanrui (李延瑞)
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2014-01-08 6:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 08.01.2014 um 03:23 schrieb Li Yanrui (李延瑞) <liyanrui.m2@gmail.com>:
> Hi,
>
> i find the quotation marks in those chinese fallback fonts can not work as before. They always be replaced with the latin fonts. please see the following example:
>
> \definefontsynonym[pagella][name:texgyrepagellaregular]
> \definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
> \definefontsynonym[fbsong][pagella][fallbacks=song]
> \definefont[newsong][fbsong]
>
> \starttext
> \newsong 中文的\quotation{引号}。
> \stoptext
>
> i have another question, when i make texgyrepagellaregular as the fallback font for adobesongstd, it can not work. see the following example:
>
> \definefontsynonym[song][name:adobesongstd]
> \definefontfallback[pagella][name:texgyrepagellaregular][0x0000-0x0400]
> \definefontsynonym[fbsong][song][fallbacks=pagella]
> \definefont[newsong][fbsong]
>
> \starttext
> \newsong 夹杂 English 的中文文本
> \stoptext
>
> the above "English" word is still display with adobesongstd but not patella.
You have to use \definefontfallback[...][...][...][force=yes] .
When you want to use these font setting for your whole document it’s better to set the fallback for the body font:
\definefallbackfamily [mainface] [serif] [Adobe Song Std] [range:chinese] % [range:chinese] == [preset=range:chinese]
\definefallbackfamily [mainface] [serif] [Adobe Song Std] [range={201C,201D}]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setupbodyfont[mainface]
\starttext
中文的\quotation{引号}。
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-08 16:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-08 2:23 can not get the quotation marks from the fallback fonts Li Yanrui (李延瑞)
2014-01-08 6:56 ` Wolfgang Schuster
2014-01-08 7:57 ` Li Yanrui (李延瑞)
2014-01-08 16:43 ` Wolfgang Schuster
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).