<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Life can be even simpler. Especially of you are not too much interested in the finer details of line-breaking etc. The following works quite OK for me:</span></div><div><br></div><div>\documentclass[]{memoir}<br></div><div>\usepackage{polyglossia}  % will load fontspec <br></div><div><br><span></span></div><div>%--------------------------------------------------------------------<br>% Setup line breaking etc for Japanese (this should also be satis-<br>% factory for non-Japanese parts of the text)<br>%--------------------------------------------------------------------<br>\setdefaultlanguage{english}<br>\XeTeXlinebreaklocale "ja"<br>\XeTeXlinebreakskip=0em plus 0.1em minus 0.01em<br><span></span></div><div><span><br></span></div><div>%--------------------------------------------------------------------<br>% Set
 automatic switch between Roman and CJK font<br>%--------------------------------------------------------------------<br>\XeTeXinterchartokenstate = 1<br><br>% when going from not CJK to CJK<br>\XeTeXinterchartoks 0 1   = {\cjkfont}<br>\XeTeXinterchartoks 0 2   = {\cjkfont}<br>\XeTeXinterchartoks 0 3   = {\cjkfont}<br>\XeTeXinterchartoks 255 1 = {\cjkfont}<br>\XeTeXinterchartoks 255 2 = {\cjkfont}<br>\XeTeXinterchartoks 255 3 = {\cjkfont}<br><br>% when going from CJK to not CJK<br>\XeTeXinterchartoks 1 0   = {\latinfont}<br>\XeTeXinterchartoks 2 0   = {\latinfont}<br>\XeTeXinterchartoks 3 0   = {\latinfont}<br>\XeTeXinterchartoks 1 255 = {\latinfont}<br>\XeTeXinterchartoks 2 255 = {\latinfont}<br>\XeTeXinterchartoks 3 255 = {\latinfont}<br><br>\newfontfamily{\cjkfont}  [Mapping=tex-text]{Kozuka Mincho Pr6N}<br>\newfontfamily{\latinfont}[Mapping=tex-text]{TeX Gyre Termes}
 <br>\newfontfamily{\greekfont}[Mapping=tex-text]{Old Standard} <br>\newfontfamily{\codefont} [Mapping=tex-text]{Liberation Mono} <br><br>\setmainfont[Mapping=tex-text]{TeX Gyre Termes}</div><div><br></div><div>In this case, if you type a normal sentence, "I live in Tokyo (that is 東京 in Japanese)", it will automatically come out in the correct font, although the switch from CJK to not-CJK sometimes seems to not work perfectly.</div><div><br></div><div>Wilfred<br></div><div><br></div><div><br><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp><br> <b><span style="font-weight: bold;">To:</span></b> xetex@tug.org; jon@newkanji.com <br> <b><span style="font-weight:
 bold;">Sent:</span></b> Tuesday, 24 April 2012, 9:36<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [XeTeX] xdCJK how to mix occasional Japanese with Chinese and English<br> </font> </div> <br>Hi Jon,<br><br>On Mon, 23 Apr 2012 07:26:21 -0600, jon wrote:<br><br>> I'm trying to typeset a 300 page English book that includes a lot of<br>> Chinese and occasional short strings of Japanese. I've been able to<br>> mix Chinese and English okay, but cannot apply a Japanese font in<br>> those few places where it is needed.<br><br>> Here is the prologue, a pruned version of what I am using for the<br>> book:<br>> <br>> \documentclass[largecrownvopaper,11pt,onecolumn,twoside,showtrims]{memoir}<br>> \usepackage{fontspec}<br>> \usepackage{xltxtra}<br>> \usepackage[BoldFont,CJKnumbb] {xeCJK}<br>> \setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O}<br>> \setsansfont[Mapping=tex-text]{Linux
 Biolinum O}<br>> \setCJKmainfont []{AR PL UKai TW}<br>> \newfontfamily \forjapanese{Ume Mincho}<br>> \begin{document}<br>> English<br>> <br>> Chinese 不怕慢只怕站。<br>> <br>> Japanese omiage, futon {\forjapanese お土産、布団}<br>> \end{document}<br><br>I'm not expert of xeCJK but it seems<br><br>\setCJKfamilyfont{ume}{Ume Mincho}<br>\newcommand{\jp}[1]{{\CJKfamily{ume}#1}}<br><br>Japanese omiage, futon \jp{お土産、布団}<br><br>works for me.  Note in \setCJKfamilyfont, {ume} can be<br>any name you like but {Ume Mincho} should be real japanese<br>fonts name.<br>Further, I don't have every fonts you use so I tested<br>with another fonts on Debian.<br><br>I hope this helps you a bit.<br><br>Best regards,            2012-4-24(Tue)<br><br>-- <br> Debian Developer - much more I18N of Debian<br> Atsuhito Kohda <kohda AT debian.org><br> Department of Math.,
 Univ. of Tokushima<br><br><br>--------------------------------------------------<br>Subscriptions, Archive, and List information, etc.:<br>  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br><br><br> </div> </div>  </div></body></html>