# [Cjk] CJKvert and horizontal dash transformation?

Werner LEMBERG wl at gnu.org
Thu Jul 12 17:52:41 CEST 2007

> I wonder if this is a bug in CJKvert or the font/encoding? When I
> want to typeset a Japanese postal code in the vertical, I find that
> the joining hyphen is not transformed.

Aah, rotation support is missing for the Wadalab fonts in Unicode
encoding.  This is something I have to add to the TeXLive
distribution.  Any volunteer?  It basically means to translate the
c42XXX.fdx files to c70XXX.fdx files, replacing the subfonts and glyph
indices with the Unicode pendants.

Add this to the preamble of your document to get a rotated U+30FC glyph:

\expandafter\def\csname C70/min/rotate/v\endcsname{}
\expandafter\def\csname C70/min/offset/v\endcsname{.5em}
\expandafter\def\csname C70/min/m/n/30/252/v\endcsname{\CJKsymbolsimple{252}}

C70' is Unicode encoding, 30' is the Unicode subfont, and 252' is
the decimal representation of 0xFC.  The first two lines correspond to

\CJKvdef{rotate}{}
\CJKvdef{offset}{.5em}

which are also present in the c42min.fdx file.

Note, however, that \CJKvert and \CJKhorz change the writing direction
globally; putting them into a group doesn't work.

Werner

======================================================================

\documentclass[11pt,unit,a4paper]{article}

\usepackage{CJKutf8}
\usepackage{CJKvert}
\usepackage[overlap, CJK]{ruby}
\usepackage{CJKulem}

\renewcommand{\rubysep}{-0.2ex}

\expandafter\def\csname C70/min/rotate/v\endcsname{}
\expandafter\def\csname C70/min/offset/v\endcsname{.5em}
\expandafter\def\csname C70/min/m/n/30/252/v\endcsname{\CJKsymbolsimple{252}}

\newenvironment{Japanese}{%
\CJKfamily{min}%
\CJKtilde
\CJKnospace}{}

\pagestyle{empty}
\begin{document}
\begin{CJK}{UTF8}{}
\begin{Japanese}
\CJKhorz
〒５６４ー００４１

\CJKvert
〒５６４ー００４１

大阪府吹田市泉町

四丁目三八番二四号

木下\ 良一\ 先生

\end{Japanese}
\end{CJK}
\end{document}

`