\documentclass[11pt,a4paper]{article}

\usepackage[dvips]{graphicx}
\usepackage{rotating}
\usepackage{longtable}
\usepackage{CJKutf8}
\usepackage{CJKvert}
\usepackage[overlap, CJK]{ruby}
\usepackage{CJKulem}
\renewcommand{\rubysep}{-0.2ex}
\newenvironment{Japanese}{%
  \CJKfamily{goth}%
  \CJKtilde
  \CJKnospace}{}

\textheight 240mm

\pagestyle{empty}

\title{Test page for CJK vertical style}
\author{Gernot Hassenpflug}

\begin{document}
\begin{CJK}{UTF8}{}
  \begin{Japanese}

\maketitle

\abstract This document contains a number of tables. Each set is first
shown in the vertical orientation for the CJK characters, and then in
the horizontal orientation. This is to enable final checking of the
font definition and encoding files, of whether glyphs for characters
are found or not.

\section{Tables for CJK glyph checking}

\CJKhorz

This section contains three tables. Table~\ref{table:row1vert} and
Table~\ref{table:row2vert} contain the first two rows of the JIS
X0208-1990 standard, which contain punctuation. The characters were
input in Emacs 22 using Anthy as a Japanese input system. Characters
that could not be directly input are indicated with a ``?'', while
unfilled code slots are left blank. The information for the characters
is drawn from ``Understanding Japanese information Processing（日本語情
報処理）'' by Ken Lunde (1995).


Please note that in order to facilitate fitting onto a page, the
tables have all be rotated, so that the rotation of the glyphs puts
them effectively upside down when the page is held in portait mode.

Table~\ref{table:inputmethodvert} is taken from the info file for the
input method ``japanese'' under Emacs 22, which allows a greater
variety of punctuation to be input. I am still searching for the
method by which one can select a JIS X standard and select characters
directly from the list of rows, classified by punctuation, romanji,
arabic, cyrillic, and various levels of kanji. This system was set up
on one of the Japanese input methods on emacs 19 and emacs 21 at
Ky\={o}to University.

Table~\ref{table:row1horiz}, Table~\ref{table:row2horiz} and
Table~\ref{table:inputmethodhoriz} are thecorresponding tables in
horizontal layout. If there is a discrepancy between the vertical and
the horizontal font definition and encoding files, then this might be
obvious from the tables.

\CJKvert

\begin{sidewaystable}
  \caption{\label{table:row1vert}Vertical display of Japanese
    characters. ROW1 of JISX 0208 1990. Question
    marks indicate symbols I had difficulty inputting directly using Anthy, but
    see Table~\ref{table:inputmethodvert} for a solution using the
    ``japanese'' input environment.} 
  \begin{tabular}[t]{ccccccccccccccccccccc}    
    　 & 00 & 01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 \\
    00 &    & 　 & 、 & 。 & ， & ． & ・ & ：  & ； & ？ & ！ & ?  &  ?  & ?  & ?  & ?  & ＾ & ?  & ＿  &  ? \\
    20 & 　 & 　 & 　 & 　 & 　 &    & 　 & ○  & ?  & 一  & − & ／ & ＼ & 〜 & ?  & ｜ &　… & ‥ &‘ & ’ \\
    40 & ?  & ” & （ & ） & ? &  ? & ?  &  ?  &｛  & ｝  & ?  & ?  & ?  & ?  & 「 & 」 & ?  & ?  & ?  & ?  \\
    60 & ＋ & ー & ?  & × & ÷ & ＝ & ?  & ＜  & ＞ & ?  & ?  & ? & ?   &  ♂ & ♀ & ° & ? & ? & ℃ & ￥   \\ 
    80 & ＄ & ?  & ?  & ％ & ＃ & ＆ & ＊ & ＠  & ?  & ☆ & ★  & ○ & ● & ◎ & ?  &    &    &   &   &  \\
  \end{tabular}    
\end{sidewaystable}    

\begin{sidewaystable}
%\begin{table}
  \caption{\label{table:row2vert}Vertical display of Japanese
    characters. ROW2 of JISX 0208 1990. Question
    marks indicate symbols I had difficulty inputting directly using Anthy, but
    see Table~\ref{table:inputmethodvert} for a solution using the
    ``japanese'' input environment.}
  \begin{tabular}[t]{ccccccccccccccccccccc}        
    　 & 00 & 01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 \\
    00 & ?  & □ & ■ & △ & ▲ & ▽ & ▼　& 〒 & → & ← & ↓  & ↑ &  ? & ?  &  ? &    &    &    &    &    \\
    20 & & & & & & & ? & ? & ? & ? & ? & ? & ? & ? & & & & & & \\
    40 & & & ? & ? & ? & ? & ? & ? & ? & & & & & & & & & &  \\
    60 & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & & & &  \\
    80 & & & ? & ? & ? & ? & ? & ? & ? & ? & & & & & ? & & & &  \\
  \end{tabular}    
%\end{table}    
\end{sidewaystable}

\begin{sidewaystable}
%\begin{table}
  \caption{\label{table:inputmethodvert} Vertical display of Japanese
    characters. Using the ``japanese'' input
    method, you can input characters by the following key sequences:}
\begin{tabular}[t]{cccccccccccccccccccccccccc}
!  & ！ &  9  &   ９ &   be  &  べ   &  ja  &  じゃ  & no & の   &  vi  &  ヴぃ &  z(  &  【  &  z@  & ▼ & zd  &  ゝ &  bya  & びゃ & hyu & ひゅ & nyu & にゅ & tye & ちぇ \\
"  & ” &  :  &   ： &   bi  &  び   &  je  &  じぇ  & nu & ぬ   &  vo   &  ヴぉ &  z)  &  】  &  zB  & ← & ze  &  ぜ &  bye  & びぇ & jya & じゃ & pya & ぴゃ & tyi & てぃ  \\ 
\# & ＃ &  ;  &   ； &   bo  &  ぼ   &  ji  &  じ    & pa & ぱ   &  vu  & ヴ   &  z*  &  ×  &  zC   & ℃ & zf  &  〃 &  byo  & びょ & jye & じぇ & pye & ぴぇ & tyo & ちょ \\ 
\$ & ＄ &  <  &   ＜ &   bu  &  ぶ   &  jo  &  じょ  & pe & ぺ   &  wa  &  わ   &  z+  &  ±  &  zD  & ゞ & zg  &  ‐ &  byu  & びゅ & jyo & じょ & pyo & ぴょ & tyu &	ちゅ \\ 
\% & ％ &  =  &   ＝ &   da  &  だ   &  ju  &  じゅ  & pi & ぴ   &  we  &  ゑ   &  z,  &  ‥  &  zF  & → & zh  &  ← &  cha  & ちゃ & jyu & じゅ & pyu & ぴゅ & xka &	ヵ  \\ 
\& & ＆ &  >  &   ＞ &   de  &  で   &  ka  &  か    & po & ぽ   &  wi  &  ゐ   &  z-  &  〜  &  zG  & ― & zi  &  じ &  che  & ちぇ & kwa & くゎ & rya & りゃ & xke &	ヶ  \\ 
{'}&  ’&  ?  &   ？ &   di  &  ぢ   &  ke  &  け    & pu & ぷ   &  wo  &  を   &  z.  &  …  &  zM  & 〓 & zj  &  ↓ &  chi  & ち   & kwe & くぇ & rye & りぇ & xtu & っ    \\ 
(  & （ &  @  &   ＠ &   do  &  ど   &  ki  &  き    & ra & ら   &  wu  &  う   &  z/  &  ・  &  zN  & ↓ & zk  &  ↑ &  cho  & ちょ & kwi & くぃ & ryo & りょ & xwa & ゎ    \\ 
)  & ） &  [  &   「 &   du  &  づ   &  ko  &  こ    & re & れ   &  xa  &  ぁ   &  z0  &  ♀  &  zP  & ↑ & zl  &  → &  chu  & ちゅ & kwo & くぉ & ryu & りゅ & xwe &	うぇ\\ 
*  & ＊ &  \  &   ￥ &   fa  &  ふぁ &  ku  &  く    & ri & り   &  xe &  ぇ   &  z1  &  ○  &  zQ  & 〈 & zm  &  ″ &  dye  & でぇ & kya & きゃ & sha & しゃ & xwi &	うぃ  \\ 
+  & ＋ &  ]  &   」 &   fe  &  ふぇ &  la  &  ら    & ro & ろ   &  xi &  ぃ   &  z2  &  ▽  &  zR  & 仝 & zn  &  ′ &  dyi  & でぃ & kye & きぇ & she & しぇ & xwo &	うぉ  \\ 
,  & 、 & $^{}$ &  ＾&   fi  &  ふぃ &  le  &  れ    & ru & る   &  xo &  ぉ   &  z3  &  △  &  zS  & ヾ & zo  &  ぞ &  dyo  & どぉ & kyo & きょ & shi & し & xya & ゃ \\ 
-  & ー &  \_ &   ＿ &   fo  &  ふぉ &  li  &  り    & sa & さ   &  xu &  ぅ   &  z4  &  □  &  zT  & § & zp  &  〒 &  dyu  & どぅ & kyu & きゅ & sho & しょ & xyo &	ょ  \\ 
.  & 。 &  `  &   ｀ &   fu  &  ふ   &  lo  &  ろ    & se & せ   &  ya &  や   &  z5  &  ◇  &  zV  & ÷ & zq  &  《 &  gwa  & ぐゎ & lya & りゃ & shu & しゅ & xyu &	ゅ  \\ 
/  & ／ &  a  &   あ &   ga  &  が   &  lu  &  る    & si & し   &  ye &  いぇ &  z6  &  ☆  &  zW  & 〉 & zr  &  々 &  gwe  & ぐぇ & lye & りぇ & sya & しゃ & zya &	じゃ \\ 
0  & ０ &  e  &   え &   ge  &  げ   &  ma  &  ま    & so & そ   &  yo &  よ   &  z7  &  ◎  &  z[  & 『 & zs  &  ヽ &  gwi  & ぐぃ & lyo & りょ & sye & しぇ & zye &	じぇ\\ 
1  & １ &  i  &   い &   gi  &  ぎ   &  me  &  め    & su & す   &  yu &  ゆ   &  z8  &  ¢  &  z\  & ＼ & zt  &  〆 &  gwo  & ぐぉ & lyu & りゅ & syo & しょ & zyo &	じょ\\ 
2  & ２ &  o  &   お &   go  &  ご   &  mi  &  み    & ta & た   &  z!  &  ●   &  z9  &  ♂  &  z]  & 』 & zu  &  ず &  gya  & ぎゃ & mya & みゃ & syu & しゅ & zyu &	じゅ\\ 
3  & ３ &  u  &   う &   gu  &  ぐ   &  mo  &  も    & te & て   &  z"  &  “   &  z:  &  ゜  &  z\^ & ★ & zv  &  ※ &  gye  & ぎぇ & mye & みぇ & tsa & つぁ  & &       \\ 
4  & ４ &  \{ &   ｛ &   ha  &  は   &  mu  &  む    & ti & ち   &  z\# & ▲    &  z;  &  ゛  &  z\_ & ∴ & zw  &  》 &  gyo  & ぎょ & myo & みょ & tse & つぇ  & &       \\ 
5  & ５ &  |  &   ｜ &   he  &  へ   &  n{'}&  ん    & to & と   &  z\$ & ■    &  z<  &  ≦  &  z`  & ´ & z\{ &  〔 &  gyu  & ぎゅ & myu & みゅ & tsi & つぃ  & &       \\ 
6  & ６ &  \} &   ｝ &   hi  &  ひ   &  na  &  な    & tu & つ   &  z\% & ◆    &  z=  &  ≠  &  za  & ざ & z|  &  ‖ &  hya  & ひゃ & nya & にゃ & tso & つぉ  & &       \\ 
7  & ７ &  ~  &   ￣ &   ho  &  ほ   &  ne  &  ね    & va & ヴぁ &  z\& & £    &  z>  &  ≧  &  zb  & ° & z\} &   〕 & hye  & ひぇ & nye & にぇ & tsu & つ    & &       \\ 
8  & ８ &  ba &   ば &   hu  &  ふ   &  ni  &  に    & ve & ヴぇ &  z{'} &  ‘   &  z?  &  ∞  &  zc  & 〇 & z~  &  ¨ &  hyo  & ひょ & nyo & にょ & tya & ちゃ  & &       \\                 
\end{tabular}    
%\end{table}    
\end{sidewaystable}

\CJKhorz


\begin{sidewaystable}
%\begin{table}
  \caption{\label{table:row1horiz}Horizontal display of Japanese
    characters. ROW1 of JISX 0208 1990. Question
    marks indicate symbols I had difficulty inputting directly using Anthy, but
    see Table~\ref{table:inputmethodhoriz} for a solution using the
    ``japanese'' input environment.} 
  \begin{tabular}[t]{ccccccccccccccccccccc}    
    　 & 00 & 01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 \\
    00 &    & 　 & 、 & 。 & ， & ． & ・ & ：  & ； & ？ & ！ & ?  &  ?  & ?  & ?  & ?  & ＾ & ?  & ＿  &  ? \\
    20 & 　 & 　 & 　 & 　 & 　 &    & 　 & ○  & ?  & 一  & − & ／ & ＼ & 〜 & ?  & ｜ &　… & ‥ &‘ & ’ \\
    40 & ?  & ” & （ & ） & ? &  ? & ?  &  ?  &｛  & ｝  & ?  & ?  & ?  & ?  & 「 & 」 & ?  & ?  & ?  & ?  \\
    60 & ＋ & ー & ?  & × & ÷ & ＝ & ?  & ＜  & ＞ & ?  & ?  & ? & ?   &  ♂ & ♀ & ° & ? & ? & ℃ & ￥   \\ 
    80 & ＄ & ?  & ?  & ％ & ＃ & ＆ & ＊ & ＠  & ?  & ☆ & ★  & ○ & ● & ◎ & ?  &    &    &   &   &  \\
  \end{tabular}    
%\end{table}    
\end{sidewaystable}

\begin{sidewaystable}
%\begin{table}
  \caption{\label{table:row2horiz}Horizontal display of Japanese
    characters. ROW2 of JISX 0208 1990. Question
    marks indicate symbols I had difficulty inputting directly using Anthy, but
    see Table~\ref{table:inputmethodhoriz} for a solution using the
    ``japanese'' input environment.}
  \begin{tabular}[t]{ccccccccccccccccccccc}        
    　 & 00 & 01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 \\
    00 & ?  & □ & ■ & △ & ▲ & ▽ & ▼　& 〒 & → & ← & ↓  & ↑ &  ? & ?  &  ? &    &    &    &    &    \\
    20 & & & & & & & ? & ? & ? & ? & ? & ? & ? & ? & & & & & & \\
    40 & & & ? & ? & ? & ? & ? & ? & ? & & & & & & & & & &  \\
    60 & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & ? & & & &  \\
    80 & & & ? & ? & ? & ? & ? & ? & ? & ? & & & & & ? & & & &  \\
  \end{tabular}    
%\end{table}    
\end{sidewaystable}

\begin{sidewaystable}
%\begin{table}
  \caption{\label{table:inputmethodhoriz} Horizontal display of Japanese
    characters. Using the ``japanese'' input
    method, you can input characters by the following key sequences:}
\begin{tabular}[t]{cccccccccccccccccccccccccc}
!  & ！ &  9  &   ９ &   be  &  べ   &  ja  &  じゃ  & no & の   &  vi  &  ヴぃ &  z(  &  【  &  z@  & ▼ & zd  &  ゝ &  bya  & びゃ & hyu & ひゅ & nyu & にゅ & tye & ちぇ \\
"  & ” &  :  &   ： &   bi  &  び   &  je  &  じぇ  & nu & ぬ   &  vo   &  ヴぉ &  z)  &  】  &  zB  & ← & ze  &  ぜ &  bye  & びぇ & jya & じゃ & pya & ぴゃ & tyi & てぃ  \\ 
\# & ＃ &  ;  &   ； &   bo  &  ぼ   &  ji  &  じ    & pa & ぱ   &  vu  & ヴ   &  z*  &  ×  &  zC   & ℃ & zf  &  〃 &  byo  & びょ & jye & じぇ & pye & ぴぇ & tyo & ちょ \\ 
\$ & ＄ &  <  &   ＜ &   bu  &  ぶ   &  jo  &  じょ  & pe & ぺ   &  wa  &  わ   &  z+  &  ±  &  zD  & ゞ & zg  &  ‐ &  byu  & びゅ & jyo & じょ & pyo & ぴょ & tyu &	ちゅ \\ 
\% & ％ &  =  &   ＝ &   da  &  だ   &  ju  &  じゅ  & pi & ぴ   &  we  &  ゑ   &  z,  &  ‥  &  zF  & → & zh  &  ← &  cha  & ちゃ & jyu & じゅ & pyu & ぴゅ & xka &	ヵ  \\ 
\& & ＆ &  >  &   ＞ &   de  &  で   &  ka  &  か    & po & ぽ   &  wi  &  ゐ   &  z-  &  〜  &  zG  & ― & zi  &  じ &  che  & ちぇ & kwa & くゎ & rya & りゃ & xke &	ヶ  \\ 
{'}&  ’&  ?  &   ？ &   di  &  ぢ   &  ke  &  け    & pu & ぷ   &  wo  &  を   &  z.  &  …  &  zM  & 〓 & zj  &  ↓ &  chi  & ち   & kwe & くぇ & rye & りぇ & xtu & っ    \\ 
(  & （ &  @  &   ＠ &   do  &  ど   &  ki  &  き    & ra & ら   &  wu  &  う   &  z/  &  ・  &  zN  & ↓ & zk  &  ↑ &  cho  & ちょ & kwi & くぃ & ryo & りょ & xwa & ゎ    \\ 
)  & ） &  [  &   「 &   du  &  づ   &  ko  &  こ    & re & れ   &  xa  &  ぁ   &  z0  &  ♀  &  zP  & ↑ & zl  &  → &  chu  & ちゅ & kwo & くぉ & ryu & りゅ & xwe &	うぇ\\ 
*  & ＊ &  \  &   ￥ &   fa  &  ふぁ &  ku  &  く    & ri & り   &  xe &  ぇ   &  z1  &  ○  &  zQ  & 〈 & zm  &  ″ &  dye  & でぇ & kya & きゃ & sha & しゃ & xwi &	うぃ  \\ 
+  & ＋ &  ]  &   」 &   fe  &  ふぇ &  la  &  ら    & ro & ろ   &  xi &  ぃ   &  z2  &  ▽  &  zR  & 仝 & zn  &  ′ &  dyi  & でぃ & kye & きぇ & she & しぇ & xwo &	うぉ  \\ 
,  & 、 & $^{}$ &  ＾&   fi  &  ふぃ &  le  &  れ    & ru & る   &  xo &  ぉ   &  z3  &  △  &  zS  & ヾ & zo  &  ぞ &  dyo  & どぉ & kyo & きょ & shi & し & xya & ゃ \\ 
-  & ー &  \_ &   ＿ &   fo  &  ふぉ &  li  &  り    & sa & さ   &  xu &  ぅ   &  z4  &  □  &  zT  & § & zp  &  〒 &  dyu  & どぅ & kyu & きゅ & sho & しょ & xyo &	ょ  \\ 
.  & 。 &  `  &   ｀ &   fu  &  ふ   &  lo  &  ろ    & se & せ   &  ya &  や   &  z5  &  ◇  &  zV  & ÷ & zq  &  《 &  gwa  & ぐゎ & lya & りゃ & shu & しゅ & xyu &	ゅ  \\ 
/  & ／ &  a  &   あ &   ga  &  が   &  lu  &  る    & si & し   &  ye &  いぇ &  z6  &  ☆  &  zW  & 〉 & zr  &  々 &  gwe  & ぐぇ & lye & りぇ & sya & しゃ & zya &	じゃ \\ 
0  & ０ &  e  &   え &   ge  &  げ   &  ma  &  ま    & so & そ   &  yo &  よ   &  z7  &  ◎  &  z[  & 『 & zs  &  ヽ &  gwi  & ぐぃ & lyo & りょ & sye & しぇ & zye &	じぇ\\ 
1  & １ &  i  &   い &   gi  &  ぎ   &  me  &  め    & su & す   &  yu &  ゆ   &  z8  &  ¢  &  z\  & ＼ & zt  &  〆 &  gwo  & ぐぉ & lyu & りゅ & syo & しょ & zyo &	じょ\\ 
2  & ２ &  o  &   お &   go  &  ご   &  mi  &  み    & ta & た   &  z!  &  ●   &  z9  &  ♂  &  z]  & 』 & zu  &  ず &  gya  & ぎゃ & mya & みゃ & syu & しゅ & zyu &	じゅ\\ 
3  & ３ &  u  &   う &   gu  &  ぐ   &  mo  &  も    & te & て   &  z"  &  “   &  z:  &  ゜  &  z\^ & ★ & zv  &  ※ &  gye  & ぎぇ & mye & みぇ & tsa & つぁ  & &       \\ 
4  & ４ &  \{ &   ｛ &   ha  &  は   &  mu  &  む    & ti & ち   &  z\# & ▲    &  z;  &  ゛  &  z\_ & ∴ & zw  &  》 &  gyo  & ぎょ & myo & みょ & tse & つぇ  & &       \\ 
5  & ５ &  |  &   ｜ &   he  &  へ   &  n{'}&  ん    & to & と   &  z\$ & ■    &  z<  &  ≦  &  z`  & ´ & z\{ &  〔 &  gyu  & ぎゅ & myu & みゅ & tsi & つぃ  & &       \\ 
6  & ６ &  \} &   ｝ &   hi  &  ひ   &  na  &  な    & tu & つ   &  z\% & ◆    &  z=  &  ≠  &  za  & ざ & z|  &  ‖ &  hya  & ひゃ & nya & にゃ & tso & つぉ  & &       \\ 
7  & ７ &  ~  &   ￣ &   ho  &  ほ   &  ne  &  ね    & va & ヴぁ &  z\& & £    &  z>  &  ≧  &  zb  & ° & z\} &   〕 & hye  & ひぇ & nye & にぇ & tsu & つ    & &       \\ 
8  & ８ &  ba &   ば &   hu  &  ふ   &  ni  &  に    & ve & ヴぇ &  z{'} &  ‘   &  z?  &  ∞  &  zc  & 〇 & z~  &  ¨ &  hyo  & ひょ & nyo & にょ & tya & ちゃ  & &       \\                 
\end{tabular}    
%\end{table}    
\end{sidewaystable}
    
   
  \end{Japanese}

\end{CJK}

\end{document}