Hello,

I am trying, somewhat in vain, to create a nice vertical typeset document in Japanese and English using XeTeX and xCJK. I am having the darnedest time trying to do this. I guess it adds complication that I want add Hiragana ruby elements. I am using Palatino Linotype for the English and Kozuka Gothic Pr6N M for the Japanese. I tried to adapt some of the methods in the provided CJK examples with some of those in the fontspec handbook, but I am failing miserably. For starters, the punctuation is all messed up. Also, ruby doesn't seem to work quite right. I've attached a sample that I have been working on before I actually write the real thing. BTW, shouldn't xCJK be updated to automatically use the +ruby feature of fonts if ruby is used and Style=VerticalKana when CJKvert is used?

Cheers,
Nicholas
\documentclass[notitlepage]{article}
\usepackage[english]{babel}%
\usepackage{graphicx}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage[CJK, overlap]{ruby}
\usepackage[boldfont,slantfont]{xCJK}
\usepackage{CJKulem}
\usepackage{CJKvert}
\usepackage[letterpaper,dvipdfm]{geometry}
\setmainfont[Mapping=tex-text]{Palatino Linotype}
\setCJKmainfont{Kozuka Mincho Pr6N}
\setCJKfamilyfont{Japanese}{Kozuka Mincho Pr6N}
\renewcommand{\rubysep}{-0.3ex}


\begin{document}
\begin{CJK*}{UTF8}{song}
\rotatebox[origin=c]{-90}{
        \begin{minipage}[c]{8cm}
        \CJKfamily{Japanese}
        \addfontfeature{Style=VerticalKana}
        \addfontfeature{CJKShape=Expert}
        \CJKvert
        
この~FAQ~リストは、よくある質問とその答を集め、役に立つようにしたものです。
        
\uline{この~FAQ~リストの構造は、以前のものと比べて大幅に変更されています。}
        
\textbf{\ruby{新}{\addfontfeature{Style={Ruby}}あたら}しい構造に関しては、﹁このの読み方とその構造﹂の項目を}
        
\textbf{\ruby{参}{\addfontfeature{Style={Ruby}}さん}\ruby{照}{\addfontfeature{Style={Ruby}}しょう}して下さい。}
        \end{minipage}
}

\end{CJK*}
\end{document}

Attachment: article2.pdf
Description: Adobe PDF document

_______________________________________________
Cjk maillist  -  Cjk@ffii.org
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to