[XeTeX] Japanese and English document

Wilfred van Rooijen wvanrooijen at yahoo.com
Thu Feb 26 23:12:34 CET 2009


Someone on this list is working on a package called 'zhspacing' which takes care of spacing of kanji etc. Although the author intended the package for chinese, it does a very good job at Japanese too. As for ruby, the package nruby.sty can be made usable with zhspacing. Simply google 'zhspacing nruby' and an older discussion from this list will show up.

Cheers,
Wilfred

PS I don't know of zhspacing is already released. If not, the author can provide you with a download link, that's how I got the package.


--- On Thu, 2/26/09, Robert Beckett <sealbeam01 at yahoo.com> wrote:

> From: Robert Beckett <sealbeam01 at yahoo.com>
> Subject: [XeTeX] Japanese and English document
> To: xetex at tug.org
> Date: Thursday, February 26, 2009, 3:08 PM
> Hi All,
> I write letters in English, but sometimes include a few
> words or a
> paragraph in Japanese.The following is my setup. To my eye,
> the results seem ok, but I'm not
> sure. Does anyone have any advice on how to get the best
> possible spacing,
> etc. for both English and Japanese?
> 
> Thanks
> Bob
> 
> \documentclass[12pt,oneside,a4paper]{memoir}
> \usepackage{fontspec,xunicode,xltxtra}  
> \usepackage{xCJK}
> \XeTeXinputencoding "bytes"
> \XeTeXdefaultencoding "bytes"
> \setmainfont[Mapping=tex-text, Numbers=OldStyle,
> BoldFont=AGaramondPro-Bold,
> ItalicFont=AGaramondPro-Italic]{AGaramondPro-Regular}
> 
> \setCJKmainfont{KozMinProVI-Regular}
> 
> \begin{document}
> 
> Some English text.
> 
> \begin{CJK}{UTF8}{}
> 
> Some Japanese text.
> 
> \end{CJK}
> 
> \end{document}
> 
> 
> 
>       
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex


      


More information about the XeTeX mailing list