[XeTeX] xelatex + babel and / or polyglossia for Japanese
Wilfred van Rooijen
wvanrooijen at yahoo.com
Sat Nov 21 03:21:02 CET 2009
Hi all,
I've discovered the following: if I issue a \setmainfont command prior to \begin{document}, the files gloss-japanese.ldf and gloss-nihongo.ldf work. I.e. the following works as expected:
\documentclass[a4paper,draft,oneside,article]{memoir}
\usepackage{polyglossia}
\usepackage{fontspec}
\usepackage{hyperref}
\newfontfamily\cjkfont{Kozuka Mincho Pr6N}
\setdefaultlanguage{nihongo}
\setmainfont{Times New Roman}
\begin{document}
\cjkfont
English, Nederlands, 日本語. But in a table:
\begin{table}[ht]
\begin{center}
\caption[]{The caption}
\begin{tabular}{ccc}
English & Nederlands & 日本語 \\
\end{tabular}
\end{center}
\end{table}
\end{document}
**NOTICE** the other question I asked on the list about the \newfontfamily. With the present example, the 日本語 _does show up_ in the table. I don't know why. Is it absolutely imperative to issue at least one \setmainfont in a document, even if it is a bogus font one does not wish to use?
Cheers,
Wilfred
--- On Sat, 21/11/09, François Charette <firmicus at ankabut.net> wrote:
> From: François Charette <firmicus at ankabut.net>
> Subject: Re: [XeTeX] xelatex + babel and / or polyglossia for Japanese
> To: "Unicode-based TeX for Mac OS X and other platforms" <xetex at tug.org>
> Date: Saturday, 21 November, 2009, 3:32 AM
> Forgot to react to this:
> > The file gloss-japanese.ldf is found and loaded, there
> is a message from polylossia about missing hyphenation
> patterns, and then for some reason METAFONT is called to
> make a font named '', which fails.
> >
> > I think it has something to do with the \japanesefont
> setting in gloss-japanese.ldf but I would appreciate advise
> from an expert on how to solve this. I am getting a bit
> confused with all the settings in all the files (xetex
> setting, fontspec settings, polyglossia settings...).
> >
> >
>
> I will have a look, but in the meanwhile you may want to
> try again with
> polyglossia v1.1.0 (it should be on CTAN by now).
>
> FC
>
Get your new Email address!
Gra
!
http://mail.promotions.yahoo.com/newdomains/aa/
More information about the XeTeX
mailing list