summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/japanese-otf-uptex/test
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-27 22:23:00 +0000
committerKarl Berry <karl@freefriends.org>2013-11-27 22:23:00 +0000
commit04dbd87044210791fa8fecaa3c7254779add856b (patch)
tree72352dcea6056ced27bae3127f61eb2d8aeff06b /Master/texmf-dist/doc/fonts/japanese-otf-uptex/test
parentd24b893b0eb0daa12507892704e043964dcc73fb (diff)
japanese-otf-uptex (27nov13)
git-svn-id: svn://tug.org/texlive/trunk@32255 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/japanese-otf-uptex/test')
-rw-r--r--Master/texmf-dist/doc/fonts/japanese-otf-uptex/test/uplatex/Makefile27
-rw-r--r--Master/texmf-dist/doc/fonts/japanese-otf-uptex/test/uplatex/otfscale.tex69
2 files changed, 95 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/fonts/japanese-otf-uptex/test/uplatex/Makefile b/Master/texmf-dist/doc/fonts/japanese-otf-uptex/test/uplatex/Makefile
index 872b8e1eb80..ef8933cf9a5 100644
--- a/Master/texmf-dist/doc/fonts/japanese-otf-uptex/test/uplatex/Makefile
+++ b/Master/texmf-dist/doc/fonts/japanese-otf-uptex/test/uplatex/Makefile
@@ -6,13 +6,14 @@ DVIPS = dvips
DVIPDFMX = dvipdfmx
PDVITYPE = pdvitype
-all: otf sp art bsrg jis04
+all: otf sp art bsrg jis04 scale
otf: uplatex-otf platex-otf
sp: uplatex-sp platex-sp
art: uplatex-article platex-article
brsg: uplatex-brsg platex-brsg
jis04: uplatex-jis04 platex-jis04
+scale: uplatex-scale platex-scale
uplatex-otf:
for opt in default deluxe expert bold noreplace; do \
@@ -120,5 +121,29 @@ platex-jis04:
done \
done
+uplatex-scale:
+ for scl in default 0.5 1.0 1.5 2.0; do \
+ $(UPLATEX) "\def\scale{$$scl}\def\class{ujarticle}\input" otfscale.tex ; \
+ mv otfscale.dvi otfscale-$$scl-uplatex.dvi ; \
+ $(DVIPDFMX) otfscale-$$scl-uplatex.dvi ; \
+ done
+ for scl in default 1.0; do \
+ $(UPLATEX) "\def\scale{$$scl}\def\class{jsarticle}\input" otfscale.tex ; \
+ mv otfscale.dvi otfscale-$$scl-js-uplatex.dvi ; \
+ $(DVIPDFMX) otfscale-$$scl-js-uplatex.dvi ; \
+ done
+
+platex-scale:
+ for scl in default 0.5 1.0 1.5 2.0; do \
+ $(PLATEX) "\def\scale{$$scl}\def\class{jarticle}\input" otfscale.tex ; \
+ mv otfscale.dvi otfscale-$$scl-platex.dvi ; \
+ $(DVIPDFMX) otfscale-$$scl-platex.dvi ; \
+ done
+ for scl in default 1.0; do \
+ $(PLATEX) "\def\scale{$$scl}\def\class{jsarticle}\input" otfscale.tex ; \
+ mv otfscale.dvi otfscale-$$scl-js-platex.dvi ; \
+ $(DVIPDFMX) otfscale-$$scl-js-platex.dvi ; \
+ done
+
clean:
rm *.aux *.log *.dvi *.pdf
diff --git a/Master/texmf-dist/doc/fonts/japanese-otf-uptex/test/uplatex/otfscale.tex b/Master/texmf-dist/doc/fonts/japanese-otf-uptex/test/uplatex/otfscale.tex
new file mode 100644
index 00000000000..49d42eb1770
--- /dev/null
+++ b/Master/texmf-dist/doc/fonts/japanese-otf-uptex/test/uplatex/otfscale.tex
@@ -0,0 +1,69 @@
+\makeatletter
+
+\def\@opt@{multi}
+\def\@default{default}
+\def\@jarticle{jarticle}
+\def\@tarticle{tarticle}
+\def\@op@cls{}
+
+\ifx\option\@undefined
+ \def\option{default}
+\fi
+\ifx\option\@default
+\else
+ \edef\@opt@{\option,\@opt@}
+\fi
+
+\ifx\scale\@undefined
+ \edef\scale{default}
+\else
+ \ifx\scale\@default
+ \else
+ \edef\@opt@{scale=\scale,\@opt@}
+ \fi
+\fi
+\typeout{## scale: \scale ##}
+
+\ifx\class\@undefined
+ \def\class{jarticle}
+\fi
+\ifx\class\@jarticle
+\else
+ \ifx\class\@tarticle
+ \else
+ \ifnum\jis"2121="3000
+ \edef\@opt@{uplatex,\@opt@}
+ \def\@op@cls{,uplatex}
+ \else
+ \fi
+ \fi
+\fi
+
+\documentclass[a4paper,titlepage,draft\@op@cls]{\class}
+
+\usepackage[\@opt@]{otf}
+\usepackage{color}
+\newcommand{\redframe}[1]{%
+ \textcolor{red}{\frame{\textcolor{black}{#1}}}}
+
+\begin{document}
+\section{見出し}
+
+クラス:\texttt{\class}\\
+オプション:\texttt{\option}\\
+スケール:\texttt{\scale}
+
+\parindent0mm
+\xkanjiskip=0pt plus.1pt minus.1pt
+
+\vbox{\tate
+\hbox{\Large \redframe{HMH}\redframe{回□回}\redframe{HMH}\redframe{回□回}\redframe{HMH}}
+\hbox{\Large HMH回□回HMH回□回HMH}
+}
+
+\vbox{\yoko
+\hbox{\Large \redframe{HMH}\redframe{回□回}\redframe{HMH}\redframe{回□回}\redframe{HMH}}
+\hbox{\Large HMH回□回HMH回□回HMH}
+}
+
+\end{document}