[XeTeX] XeTeX Digest, Vol 48, Issue 13
Sven Siegmund
sven.siegmund at gmail.com
Sun Mar 9 08:19:50 CET 2008
Hi Barry,
have you considered the option of the fontspec package to define
shortcuts for selecting fonts? You take Adobe Garamond Pro as the main
font:
\setmainfont{Adobe Garamond Pro}
and if you want Adobe hebrew for short runs of Hebrew text, you can
define a font selection command, e.g. \heb:
\newfontfamily{\heb}[Script=Hebrew]{Adobe Hebrew}
It's just that you have to select the font manually every time the
Script changes. I can imagine, if you do this 5 time on a page, you
eventually want XeTeX or fontspec to be more intelligent and recognize
the script used just by the code values of Characters used. Yes, that
would be great. I jsut can't judge how much effort it would take to
enable that.
S.
2008/3/9, Barry MacKichan <barry at mackichan.com>:
> I'd like to express my support for this idea.
> Would it be worth considering an enhancement to fontspec so that we
> could write, e.g.,
> \setmainfont[UprightFont={Hebrew={Adobe Hebrew},CJK={NSimSun}}]{Adobe
> Garamond Pro]
> to choose 'Adobe Garamond Pro' as the main font, except in the Hebrew
> unicode area, in which case use 'Adobe Hebrew', and the CJK area, in
> which case use 'NSimSun'?
>
> I realize this is a significant amount of work, but it would free
> authors of multilingual works to choose the best available fonts for
> each language. The syntax would probably be different from my example,
> which I made up without much thought.
>
> --Barry MacKichan
> > Message: 7
> > Date: Sat, 8 Mar 2008 03:52:49 +1030
> > From: Will Robertson <wspr81 at gmail.com>
> > Subject: [XeTeX] default char classes
> > To: Mailing list <xetex at tug.org>
> > Message-ID: <9FF2E842-4DCE-49C6-807B-1BF506847B8E at gmail.com>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > Hello,
> >
> > It occurs to me that it would be good to define default char classes
> > to most of the unicode blocks. Does this seem like a sensible idea? If
> > so, should I look into it or does someone else want to do it? My time
> > is very limited, so it's only a thought at this stage.
> >
> > Will
> >
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
More information about the XeTeX
mailing list