[XeTeX] question about japanese tex file

Wolfgang Schuster schuster.wolfgang at googlemail.com
Mon Oct 15 14:35:10 CEST 2007


2007/10/15, Akihiro Moriguchi <amoriguchi at y4.dion.ne.jp>:
>
> Wolfgang Schuster wrote:
> > you need a font with japanese characters, the original TeX fonts
> > have only glyphs for latin languages.
> >
> > You can choose a font from the font directory in your system that
> > has support for japanese.
> >
> > The following should work on windows:
> >
> > \font\1="Arial Unicode MS"\1
>
> Thank you for your comment.
> But I have another problem for \font control sequece to indicate a
> target font.


The method to to slect the fonts depend on your macro package,
if you use LaTeX you should take a look at the fontspec package,
if you use ConTeXt I can help you to write typescripts for the fonts
and for plain TeX you can use the \font primitive direct what I do in
the following example for your fonts.

I'm on CentOS 5 Linux.
> I installed fonts-japanese rpm, but I don't know how these of fonts
> named under TeX system.
>
> Could you someone please tell me how japanese fonts named in TeX system
> or give me links that I should study?
>
> Regards,
> Akihiro
>
>
> The list below are installed fonts from fonts-japanese.rpm


this list is what I need. To only thing you need from the rpm package
are the two TrueType fonts. You can use them with plain XeTeX in the
following way.

% you can add 'at 12 pt' or whatever size you want after the font name
% to get the desired font size

\font\mincho="sazanami-mincho"
\font\gothic="sazanami-gothic"

\mincho はてなに

\gothic はてなに

\bye

Wolfgang

/usr/share/fonts/ja
> /usr/share/fonts/ja/TrueType
> /usr/share/fonts/japanese
> /usr/share/fonts/japanese/TrueType
> /usr/share/fonts/japanese/TrueType/fonts.alias
> /usr/share/fonts/japanese/TrueType/sazanami-gothic.ttf
> /usr/share/fonts/japanese/TrueType/sazanami-mincho.ttf
> /usr/share/fonts/japanese/misc
> /usr/share/fonts/japanese/misc/10x20rk.pcf.gz
> /usr/share/fonts/japanese/misc/10x20rkb.pcf.gz
> /usr/share/fonts/japanese/misc/10x20rkbi.pcf.gz
> /usr/share/fonts/japanese/misc/10x20rki.pcf.gz
> /usr/share/fonts/japanese/misc/12x24a.pcf.gz
> /usr/share/fonts/japanese/misc/12x24ab.pcf.gz
> /usr/share/fonts/japanese/misc/12x24abi.pcf.gz
> /usr/share/fonts/japanese/misc/12x24ai.pcf.gz
> /usr/share/fonts/japanese/misc/12x24rk.pcf.gz
> /usr/share/fonts/japanese/misc/12x24rkb.pcf.gz
> /usr/share/fonts/japanese/misc/12x24rkbi.pcf.gz
> /usr/share/fonts/japanese/misc/12x24rki.pcf.gz
> /usr/share/fonts/japanese/misc/7x14a.pcf.gz
> /usr/share/fonts/japanese/misc/7x14ab.pcf.gz
> /usr/share/fonts/japanese/misc/7x14abi.pcf.gz
> /usr/share/fonts/japanese/misc/7x14ai.pcf.gz
> /usr/share/fonts/japanese/misc/7x14maru.pcf.gz
> /usr/share/fonts/japanese/misc/7x14rk.pcf.gz
> /usr/share/fonts/japanese/misc/7x14rkb.pcf.gz
> /usr/share/fonts/japanese/misc/7x14rkbi.pcf.gz
> /usr/share/fonts/japanese/misc/7x14rki.pcf.gz
> /usr/share/fonts/japanese/misc/7x14rkmr.pcf.gz
> /usr/share/fonts/japanese/misc/8x16a.pcf.gz
> /usr/share/fonts/japanese/misc/8x16ab.pcf.gz
> /usr/share/fonts/japanese/misc/8x16abi.pcf.gz
> /usr/share/fonts/japanese/misc/8x16ai.pcf.gz
> /usr/share/fonts/japanese/misc/8x16rk.pcf.gz
> /usr/share/fonts/japanese/misc/8x16rkb.pcf.gz
> /usr/share/fonts/japanese/misc/8x16rkbi.pcf.gz
> /usr/share/fonts/japanese/misc/8x16rki.pcf.gz
> /usr/share/fonts/japanese/misc/fonts.alias
> /usr/share/fonts/japanese/misc/ipa-10x20b.pcf.gz
> /usr/share/fonts/japanese/misc/ipa-10x20m.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-1990.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-1990b.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-1990bi.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-1990i.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-2000-1.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-2000-1b.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-2000-1bi.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-2000-1i.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-2000-2.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-2000-2b.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-2000-2bi.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16-2000-2i.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16b.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16bi.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan16i.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan24.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan24b.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan24bi.pcf.gz
> /usr/share/fonts/japanese/misc/jiskan24i.pcf.gz
> /usr/share/fonts/japanese/misc/jiskano16-1997.pcf.gz
> /usr/share/fonts/japanese/misc/jiskano16-1997b.pcf.gz
> /usr/share/fonts/japanese/misc/jiskano16-1997bi.pcf.gz
> /usr/share/fonts/japanese/misc/jiskano16-1997i.pcf.gz
> /usr/share/fonts/japanese/misc/jisksp14.pcf.gz
> /usr/share/fonts/japanese/misc/jisksp16-1990.pcf.gz
> /usr/share/fonts/japanese/misc/k14-1990.pcf.gz
> /usr/share/fonts/japanese/misc/k14-1990b.pcf.gz
> /usr/share/fonts/japanese/misc/k14-1990bi.pcf.gz
> /usr/share/fonts/japanese/misc/k14-1990i.pcf.gz
> /usr/share/fonts/japanese/misc/k14-2000-1.pcf.gz
> /usr/share/fonts/japanese/misc/k14-2000-1b.pcf.gz
> /usr/share/fonts/japanese/misc/k14-2000-1bi.pcf.gz
> /usr/share/fonts/japanese/misc/k14-2000-1i.pcf.gz
> /usr/share/fonts/japanese/misc/k14-2000-2.pcf.gz
> /usr/share/fonts/japanese/misc/k14-2000-2b.pcf.gz
> /usr/share/fonts/japanese/misc/k14-2000-2bi.pcf.gz
> /usr/share/fonts/japanese/misc/k14-2000-2i.pcf.gz
> /usr/share/fonts/japanese/misc/k14-oldkanji.pcf.gz
> /usr/share/fonts/japanese/misc/k14-oldkanjib.pcf.gz
> /usr/share/fonts/japanese/misc/k14-oldkanjibi.pcf.gz
> /usr/share/fonts/japanese/misc/k14-oldkanjii.pcf.gz
> /usr/share/fonts/japanese/misc/k14.pcf.gz
> /usr/share/fonts/japanese/misc/k14b.pcf.gz
> /usr/share/fonts/japanese/misc/k14bi.pcf.gz
> /usr/share/fonts/japanese/misc/k14i.pcf.gz
> /usr/share/fonts/japanese/misc/k20.pcf.gz
> /usr/share/fonts/japanese/misc/k20b.pcf.gz
> /usr/share/fonts/japanese/misc/k20bi.pcf.gz
> /usr/share/fonts/japanese/misc/k20i.pcf.gz
> /usr/share/fonts/japanese/misc/kaname-latin1.pcf.gz
> /usr/share/fonts/japanese/misc/knm12p.pcf.gz
> /usr/share/fonts/japanese/misc/knm12pb.pcf.gz
> /usr/share/fonts/japanese/misc/knmhn12x.pcf.gz
> /usr/share/fonts/japanese/misc/knmzn12x.pcf.gz
> /usr/share/fonts/japanese/misc/knmzn12xb.pcf.gz
> /usr/share/fonts/japanese/misc/maru14.pcf.gz
> /usr/share/fonts/japanese/misc/maru14b.pcf.gz
> /usr/share/fonts/japanese/misc/maru14bi.pcf.gz
> /usr/share/fonts/japanese/misc/maru14i.pcf.gz
> /usr/share/fonts/japanese/misc/maru16.pcf.gz
> /usr/share/fonts/japanese/misc/maru16b.pcf.gz
> /usr/share/fonts/japanese/misc/maru16bi.pcf.gz
> /usr/share/fonts/japanese/misc/maru16i.pcf.gz
> /usr/share/fonts/japanese/misc/maru18.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f10-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f10.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f10b-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f10b.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f10bi-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f10bi.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f10i-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f10i.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12b-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12b-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12b.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12bi-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12bi-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12bi.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12i-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12i-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_f12i.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10b-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10b-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10b.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10bi-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10bi-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10bi.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10i-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10i-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h10i.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12b-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12b-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12b.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12bi-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12bi-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12bi.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12i-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12i-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12i.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12rw-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_h12rw.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10-iso.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10b-iso.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10b-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10b.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10bi-iso.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10bi-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10bi.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10i-iso.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10i-jisx0201.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j10i.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j12.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j12b.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j12bi.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_j12i.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_q06r-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_q06r.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_s10-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_s10.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_s10b-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_s10b.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_s10bi-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_s10bi.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_s10i-euro.pcf.gz
> /usr/share/fonts/japanese/misc/mplus_s10i.pcf.gz
> /usr/share/fonts/japanese/misc/shnm6x12a.pcf.gz
> /usr/share/fonts/japanese/misc/shnm6x12ab.pcf.gz
> /usr/share/fonts/japanese/misc/shnm6x12abi.pcf.gz
> /usr/share/fonts/japanese/misc/shnm6x12ai.pcf.gz
> /usr/share/fonts/japanese/misc/shnm6x12r.pcf.gz
> /usr/share/fonts/japanese/misc/shnm6x12rb.pcf.gz
> /usr/share/fonts/japanese/misc/shnm6x12rbi.pcf.gz
> /usr/share/fonts/japanese/misc/shnm6x12ri.pcf.gz
> /usr/share/fonts/japanese/misc/shnm7x14a.pcf.gz
> /usr/share/fonts/japanese/misc/shnm7x14r.pcf.gz
> /usr/share/fonts/japanese/misc/shnm8x16a.pcf.gz
> /usr/share/fonts/japanese/misc/shnm8x16ab.pcf.gz
> /usr/share/fonts/japanese/misc/shnm8x16abi.pcf.gz
> /usr/share/fonts/japanese/misc/shnm8x16ai.pcf.gz
> /usr/share/fonts/japanese/misc/shnm8x16r.pcf.gz
> /usr/share/fonts/japanese/misc/shnm8x16rb.pcf.gz
> /usr/share/fonts/japanese/misc/shnm8x16rbi.pcf.gz
> /usr/share/fonts/japanese/misc/shnm8x16ri.pcf.gz
> /usr/share/fonts/japanese/misc/shnm9x18a.pcf.gz
> /usr/share/fonts/japanese/misc/shnm9x18ab.pcf.gz
> /usr/share/fonts/japanese/misc/shnm9x18abi.pcf.gz
> /usr/share/fonts/japanese/misc/shnm9x18ai.pcf.gz
> /usr/share/fonts/japanese/misc/shnm9x18r.pcf.gz
> /usr/share/fonts/japanese/misc/shnm9x18rb.pcf.gz
> /usr/share/fonts/japanese/misc/shnm9x18rbi.pcf.gz
> /usr/share/fonts/japanese/misc/shnm9x18ri.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12b.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12bi.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12i.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12maru.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12marub.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12marubi.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12marui.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12min.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12minb.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12minbi.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12mini.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12p.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12pb.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12pbi.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk12pi.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk14.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk14b.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk14bi.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk14i.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk14min.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk14minb.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk14minbi.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk14mini.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk16.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk16b.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk16bi.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk16i.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk16min.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk16minb.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk16minbi.pcf.gz
> /usr/share/fonts/japanese/misc/shnmk16mini.pcf.gz
> /usr/share/fonts/japanese/misc/warabi12-2000-1.pcf.gz
> /usr/share/fonts/japanese/misc/warabi12-2000-1b.pcf.gz
> /usr/share/fonts/japanese/misc/warabi12-2000-1bi.pcf.gz
> /usr/share/fonts/japanese/misc/warabi12-2000-1i.pcf.gz
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20071015/04381cba/attachment-0001.html 


More information about the XeTeX mailing list