Skip to content

Commit

Permalink
Update test sample for new era (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tk committed Mar 23, 2019
1 parent 63275f6 commit 4c20b13
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions japanese-otf-uptex/test/uplatex/era.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% -*- coding: utf-8 -*-

%%%%%%%%
% ①,②,③,④ のどれかを実行すればよい。
% ①,②,③,④,⑤,⑥ のどれかを実行すればよい。
% ① platex, 新元号なし
% $ platex era.tex
% ② uplatex, 新元号なし
Expand All @@ -10,6 +10,10 @@
% $ platex "\def\era{true}\input" era.tex
% ④ uplatex, 新元号あり
% $ uplatex "\def\era{true}\input" era.tex
% ⑤ platex, 新元号あり、\ajLig{新元号}も含む
% $ platex "\def\era{full}\input" era.tex
% ⑥ uplatex, 新元号あり、\ajLig{新元号}も含む
% $ uplatex "\def\era{full}\input" era.tex
%%%%%%

\newif\ifuptexmode\uptexmodefalse
Expand All @@ -19,6 +23,7 @@

\def\@opt@{multi}
\def\@default{default}
\def\@full{full}

\ifx\option\@undefined
\def\option{default}
Expand All @@ -41,7 +46,13 @@
\edef\era{なし}
\else
\neweratrue
\edef\era{あり}
\ifx\era\@full
\def\ligNewEra{\ajLig{新元号}}
\edef\era{あり (ajLigも含む)}
\else
\def\ligNewEra{\relax}
\edef\era{あり}
\fi
\fi
\typeout{## 新元号:\era ##}

Expand All @@ -62,7 +73,7 @@

\vskip1zh

\bs{}ajLig: \ajLig{明治}\ajLig{大正}\ajLig{昭和}\ajLig{平成}\ifnewera\ajLig{新元号}\fi
\bs{}ajLig: \ajLig{明治}\ajLig{大正}\ajLig{昭和}\ajLig{平成}\ifnewera\ligNewEra\fi

\bs{}UTF: \UTF{337E}\UTF{337D}\UTF{337C}\UTF{337B}\ifnewera\UTF{32FF}\fi

Expand All @@ -80,7 +91,7 @@

\parbox<t>{25.0zw}{

\bs{}ajLig: \ajLig{明治}\ajLig{大正}\ajLig{昭和}\ajLig{平成}\ifnewera\ajLig{新元号}\fi
\bs{}ajLig: \ajLig{明治}\ajLig{大正}\ajLig{昭和}\ajLig{平成}\ifnewera\ligNewEra\fi

\bs{}UTF: \UTF{337E}\UTF{337D}\UTF{337C}\UTF{337B}\ifnewera\UTF{32FF}\fi

Expand Down

0 comments on commit 4c20b13

Please sign in to comment.