summaryrefslogtreecommitdiff
path: root/language/japanese/japanese-otf-uptex/test/uplatex/upkanatest2.tex
blob: a0b9bfcb6e8e58a411e8073e021e1a9d0baacde4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
% -*- coding: utf-8 -*-
\newif\ifuptexmode\uptexmodefalse
\ifnum\jis"2121="3000 \uptexmodetrue\fi

\makeatletter

\def\@opt@{deluxe}
\ifx\class\@undefined
 \ifuptexmode
  \def\class{ujarticle}
 \else
  \def\class{jarticle}
 \fi
\fi

\ifuptexmode
 \edef\@opt@{uplatex,\@opt@}
\fi
\documentclass[a4paper,draft,twocolumn]{\class}
\usepackage[\@opt@]{otf}

\makeatother
\pagestyle{empty}
%\AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}
\parindent=0zw
\textwidth=25zw
\textheight=200mm
\columnsep=1zw
\makeatletter
\long\def\test{ひらかな「ひらかな」ひらかな「ひら」「かな」\par
漢字漢字「漢字漢字」漢字漢字「漢字」「漢字」\par
ひらかな「ひらかな」漢字漢字「漢字」ひらかな\par
次は“引用符”の‘テスト’です,ね.\par
行末の区点は全角ドリに。なります。
□□□□□□□□□□□□
□□□□、□□□、□□□。\par
行末の読点は半角ドリに、なります。\par
□□□□□□□□□□□□
□□□□、□□□、□□□、□□□。□□□。\par
疑問符の後に空白は入るでしょうか?入った!オッケイです.\par
\hbox to 2.5zw{漢:字}
\setbox1=\hbox{あ}
\dimen1=\wd1 \advance\dimen1 by .5zw
\advance\dimen1 by \wd1
\hbox to \dimen1{あ:あ}
\dimen1=\wd1 \advance\dimen1 by 1.75zw
\hbox to \dimen1{漢:あ}
%\hbox to \dimen1{漢\hfil あ}
\hbox to 7zw{漢字「漢字」漢字}
\setbox1=\hbox{ひら}
\dimen1=\wd1 \multiply\dimen1 by 3
\advance\dimen1 by 1zw
\hbox to \dimen1{ひら「ひら」ひら}
}
\makeatother
\begin{document}

クラス:\texttt{\class}

\vspace{\baselineskip}
%\kanjiskip 0pt plus 1sp minus 1sp
\begingroup
\propshape
{\bfseries プロポーショナル組の例}

\test
\endgroup
\newpage
\phantom{クラス}

\vspace{\baselineskip}
{\bfseries べた組みの例}

\test
\end{document}