diff options
author | Norbert Preining <preining@logic.at> | 2011-11-03 15:23:51 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2011-11-03 15:23:51 +0000 |
commit | 4584fefceb17bca6591d8eb8d0664ed92896dd84 (patch) | |
tree | 3c1eabacfa2f506202a672a515142acc64d1cd8d /Master/texmf-dist | |
parent | 3f829a6e83b2fafe11688b0566519f4d1969a80d (diff) |
forgot to add the tex part of the japanese-otf package
git-svn-id: svn://tug.org/texlive/trunk@24475 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/tex/platex/japanese-otf/ajmacros.sty | 744 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/japanese-otf/mlcid.sty | 35 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/japanese-otf/mlutf.sty | 58 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/japanese-otf/otf.sty | 390 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/japanese-otf/redeffont.sty | 211 |
5 files changed, 1438 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/platex/japanese-otf/ajmacros.sty b/Master/texmf-dist/tex/platex/japanese-otf/ajmacros.sty new file mode 100644 index 00000000000..ac506245682 --- /dev/null +++ b/Master/texmf-dist/tex/platex/japanese-otf/ajmacros.sty @@ -0,0 +1,744 @@ +\@ifpackageloaded{otf}{}{\@ifpackageloaded{utf}{}{\RequirePackage{otf}}} +\ProvidesPackage{ajmacros}[2005/12/25 13:52 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>] +{% +\gdef\shift@CID#1#2{{\@tempcnta#1\advance\@tempcnta#2\CID{\@tempcnta}}} +\gdef\ajTsumesuji{\@ifstar{\@@ajTsumesuji}{\@ajTsumesuji}} +\global\let\ajTumesuji\ajTsumesuji +\gdef\@ajTsumesuji#1#2{{\@tempcnta\ifydir\ifcase#1\or780\or247\or9758\or9738\fi + \else\ifcase#1\or8736\or8966\or13274\or13254\fi\fi + \aj@expand\aj@Tsumesuji#2\@nil}} +\gdef\@@ajTsumesuji#1{\@ajTsumesuji{\aj@expand\aj@count@toks#14321\@nil}{#1}} +\gdef\aj@expand#1#2{\expandafter\@aj@expand\number#2!#1} +\gdef\@aj@expand#1!#2{#2#1} +\gdef\aj@count@toks#1#2#3#4#5#6\@nil{#5} +\gdef\aj@Tsumesuji#1{\ifx\@nil#1\else\shift@CID{\@tempcnta}{#1}% + \expandafter\aj@Tsumesuji + \fi} +\gdef\ajMaru{\@ifstar{\@aj@Maru}{\aj@Maru}} +\gdef\aj@Maru#1{\ifnum#1=\z@ \CID{8224}% + \else\ifnum#1<21 \shift@CID{#1}{7554}% + \else\ifnum#1=21 \CID{8091}% + \else\ifnum#1<32 \shift@CID{#1}{8080}% + \else\shift@CID{#1}{10212}% + \fi\fi\fi\fi} +\gdef\@aj@Maru#1{\ifnum#1<10 \shift@CID{#1}{10234}% + \else\ifnum#1<21 \shift@CID{#1}{7554}% + \else\ifnum#1=21 \CID{8091}% + \else\ifnum#1<32 \shift@CID{#1}{8080}% + \else\shift@CID{#1}{10212}% + \fi\fi\fi\fi} +\gdef\ajKuroMaru{\@ifstar{\@aj@KuroMaru}{\aj@KuroMaru}} +\gdef\aj@KuroMaru#1{\ifnum#1=\z@ \CID{10503}% + \else\ifnum#1<10 \shift@CID{#1}{8285}% + \else\shift@CID{#1}{10504}% + \fi\fi} +\gdef\@aj@KuroMaru#1{\shift@CID{#1}{10504}} +\gdef\ajKaku{\@ifstar{\@aj@Kaku}{\aj@Kaku}} +\gdef\aj@Kaku#1{\ifnum#1<10{\@tempcnta#1\multiply\@tempcnta\tw@ + \shift@CID{\@tempcnta}{10764}}% + \else\shift@CID{#1}{10774}% + \fi} +\gdef\@aj@Kaku#1{\ifnum#1<10{\@tempcnta#1\multiply\@tempcnta\tw@ + \shift@CID{\@tempcnta}{10765}}% + \else\shift@CID{#1}{10774}% + \fi} +\gdef\ajKuroKaku{\@ifstar{\@aj@KuroKaku}{\aj@KuroKaku}} +\gdef\aj@KuroKaku#1{\ifnum#1<10{\@tempcnta#1\multiply\@tempcnta\tw@ + \shift@CID{\@tempcnta}{11037}}% + \else\shift@CID{#1}{11047}% + \fi} +\gdef\@aj@KuroKaku#1{\ifnum#1<10{\@tempcnta#1\multiply\@tempcnta\tw@ + \shift@CID{\@tempcnta}{11038}}% + \else\shift@CID{#1}{11047}% + \fi} +\gdef\ajMaruKaku{\@ifstar{\@aj@MaruKaku}{\aj@MaruKaku}} +\gdef\aj@MaruKaku#1{\ifnum#1<10{\@tempcnta#1\multiply\@tempcnta\tw@ + \shift@CID{\@tempcnta}{11307}}% + \else\shift@CID{#1}{11317}% + \fi} +\gdef\@aj@MaruKaku#1{\ifnum#1<10{\@tempcnta#1\multiply\@tempcnta\tw@ + \shift@CID{\@tempcnta}{11308}}% + \else\shift@CID{#1}{11317}% + \fi} +\gdef\ajKuroMaruKaku{\@ifstar{\@aj@KuroMaruKaku}{\aj@KuroMaruKaku}} +\gdef\aj@KuroMaruKaku#1{\ifnum#1<10{\@tempcnta#1\multiply\@tempcnta\tw@ + \shift@CID{\@tempcnta}{11576}}% + \else\shift@CID{#1}{11586}% + \fi} +\gdef\@aj@KuroMaruKaku#1{\ifnum#1<10{\@tempcnta#1\multiply\@tempcnta\tw@ + \shift@CID{\@tempcnta}{11577}}% + \else\shift@CID{#1}{11586}% + \fi} +\gdef\ajKakko{\@ifstar{\@aj@Kakko}{\aj@Kakko}} +\gdef\aj@Kakko#1{\ifnum#1=\z@ \CID{8227}% + \else\ifnum#1<21 \shift@CID{#1}{8070}% + \else\shift@CID{#1}{9873}% + \fi\fi} +\gdef\@aj@Kakko#1{\ifnum#1<10 \shift@CID{#1}{9884}% + \else\ifnum#1<21 \shift@CID{#1}{8070}% + \else\shift@CID{#1}{9873}% + \fi\fi} +\gdef\ajRoman{\@ifstar{\@aj@Roman}{\aj@Roman}} +\gdef\aj@Roman#1{\ifnum#1<11 \shift@CID{#1}{7574}% + \else\ifnum#1<13 \shift@CID{#1}{8214}% + \else\shift@CID{#1}{8282}% + \fi\fi} +\gdef\@aj@Roman#1{\ifnum#1=4 \CID{9883}\else\aj@Roman{#1}\fi} +\gdef\ajroman#1{\ifnum#1<11 \shift@CID{#1}{8091}% + \else\shift@CID{#1}{8287}% + \fi} +\gdef\ajPeriod#1{\ifnum#1<10 \shift@CID{#1}{8061}\else\shift@CID{#1}{20577}\fi}%AJ1-6 +\gdef\ajKakkoalph#1{\shift@CID{#1}{8111}} +\gdef\ajKakkoYobi#1{\shift@CID{#1}{8196}} +\gdef\ajKakkoroman#1{\shift@CID{#1}{9973}} +\gdef\ajKakkoRoman#1{\shift@CID{#1}{9988}} +\gdef\ajKakkoAlph#1{\shift@CID{#1}{10003}} +\gdef\ajKakkoHira#1{\shift@CID{#1}{10029}} +\gdef\ajKakkoKata#1{\shift@CID{#1}{10077}} +\gdef\ajKakkoKansuji#1{\shift@CID{#1}{10125}} +\gdef\ajMaruKansuji#1{\shift@CID{#1}{10460}} +\gdef\ajNijuMaru#1{\shift@CID{#1}{16222}} +\gdef\ajRecycle#1{\shift@CID{#1}{16314}} +\gdef\ajHasenKakuAlph#1{\shift@CID{#1}{20496}}%AJ1-6 +\gdef\ajCross#1{\shift@CID{#1}{20523}}%AJ1-6 +\gdef\ajSlanted{\@ifstar{\aj@Slanted}{\@aj@Slanted}}%AJ1-6 +\gdef\aj@Slanted#1{\shift@CID{#1}{20589}}%AJ1-6 +\gdef\@aj@Slanted#1{\ifnum#1<10 \shift@CID{#1}{9460}\else\shift@CID{#1}{20589}\fi}%AJ1-6 +\gdef\ajApostrophe#1{\shift@CID{#1}{20649}}%AJ1-6 +\global\let\ajYear\ajApostrophe%AJ1-6 +\gdef\ajSquareMark{\@ifstar{\aj@SquareMark}{\@ifnextchar+{\@aj@SquareMark}{\@ajSquareMark}}} +\gdef\@ajSquareMark#1{\shift@CID{#1}{12229}} +\gdef\aj@SquareMark#1{\shift@CID{#1}{12241}} +\gdef\@aj@SquareMark+#1{\shift@CID{#1}{\ifodd\@tempcnta24459\else24482\fi + \divide\@tempcnta\tw@}} +\gdef\ajHishi#1{\shift@CID{#1}{12256}} +% +\let\offsetalph\z@ +\chardef\offsetAlph26 +\chardef\offsetHira26 +\chardef\offsetKata48 +\chardef\offsetYobi48 +\let\offsetMaru\z@ +\chardef\offsetKuroMaru144 +\chardef\offsetKaku122 +\chardef\offsetKuroKaku125 +\chardef\offsetMaruKaku122 +\chardef\offsetKuroMaruKaku121 +\@tempcnta10312 +\def\@aj@sujidef#1{\ifx\@nil#1% + \else\advance\@tempcnta\csname offset#1\endcsname + \expandafter\xdef\csname aj\@ajsujifam#1\endcsname##1% + {\noexpand\shift@CID{##1}{\number\@tempcnta}}% + \expandafter\@aj@sujidef\fi} +\def\@ajsujidef#1{\ifx\@nil#1% + \else\advance\@tempcnta\csname offset#1\endcsname + \def\@ajsujifam{#1}% + \@aj@sujidef{alph}{Alph}{Hira}{Kata}{Yobi}\@nil + \expandafter\@ajsujidef\fi} +\@ajsujidef{Maru}{KuroMaru}{Kaku}{KuroKaku}{MaruKaku}{KuroMaruKaku}\@nil +\gdef\ajMaruYobi#1{\ifnum#1<8 \shift@CID{#1}{10470}% + \else\ifnum#1=8 \CID{10492}% + \else\ifnum#1=9 \CID{10487}% + \fi\fi\fi} +% +\gdef\ajTsumekakko#1{\aj@expand\@ajTsumekakko#1\@nil} +\global\let\ajTumekakko\ajTsumekakko +\gdef\@ajTsumekakko#1#2{\ifx\@nil#2\mbox{\ifydir\rlap{\CID{10233}}\shift@CID{#1}{9872}% + \else\CID{13268}\shift@CID{#1}{10185}\CID{13269}\fi}% + \expandafter\@gobble + \else\shift@CID{#1}{\ifydir10152\else10174\fi}% + \expandafter\aj@Tsumekakko + \fi#2} +\gdef\aj@Tsumekakko#1#2{\ifx\@nil#2\shift@CID{#1}{\ifydir10162\else10196\fi}% + \expandafter\@gobble + \else\shift@CID{#1}{\ifydir247\else10185\fi}% + \expandafter\aj@Tsumekakko + \fi#2} +\gdef\ajNenrei#1{\ifcase#1\relax\expandafter\ajTsumekakko\or\expandafter\aj@NenreiTu + \or\expandafter\aj@NenreiSai\or\expandafter\aj@Nenrei@Tu + \or\expandafter\aj@Nenrei@Sai + \fi} +\gdef\aj@NenreiTu#1{\aj@expand\@aj@NenreiTu#1\@nil} +\gdef\@aj@NenreiTu#1#2{\shift@CID{#1}{\ifydir10152\else10174\fi}% + \ifx\@nil#2\CID{\ifydir10172\else10206\fi}\expandafter\@gobble + \else\expandafter\aj@Tsumekakko + \fi#2} +\gdef\aj@NenreiSai#1{\aj@expand\@aj@NenreiSai#1\@nil} +\gdef\@aj@NenreiSai#1{\shift@CID{#1}{\ifydir10152\else10174\fi}\@aj@NenreiSai@} +\gdef\@aj@NenreiSai@#1{\ifx\@nil#1\CID{\ifydir10173\else10207\fi}% + \else\shift@CID{#1}{\ifydir247\else10185\fi}% + \expandafter\@aj@NenreiSai@\fi} +\gdef\aj@Nenrei@Tu#1{\ifnum#1<10 \shift@CID{#1}{10174}\CID{10206}% + \else\expandafter\@aj@Nenrei@Tu\number#1% + \fi} +\gdef\@aj@Nenrei@Tu#1#2{\ifnum#2=\z@ \shift@CID{#1}{10174}\CID{10196}% + \else\ifnum#1<\tw@ \CID{10184}% + \else\shift@CID{#1}{10174}\CID{10195}% + \fi + \shift@CID{#2}{10196}% + \fi} +\gdef\aj@Nenrei@Sai#1{\ifnum#1<10 \shift@CID{#1}{10174}% + \else\expandafter\@aj@Nenrei@Sai\number#1% + \fi\CID{10207}} +\gdef\@aj@Nenrei@Sai#1#2{\ifnum#1<\tw@ \CID{10184}% + \else\shift@CID{#1}{10174}\CID{10195}% + \fi + \ifnum#2>\z@ \shift@CID{#2}{10185}% + \fi} +\gdef\ajnenrei#1#2{\hskip\kanjiskip\hbox{\tate\ifnum#2<10 + \shift@CID{#2}{10207}\CID{\ifcase#1\or10230\or10232\or10231\or10229\fi}% + \else\ifnum#2=10\CID{\ifodd#1 10208\else10217\fi}% + \CID{\ifcase#1\or10218\or10232\or10218\or10229\fi}% + \else\ifnum#2<20\CID{\ifodd#1 10208\else10217\fi}\shift@CID{#2}{10208}% + \else\expandafter\aj@nenrei\number#2{#1}% + \fi\fi\fi}} +\gdef\aj@nenrei#1#2#3{\shift@CID{#1}{10207}% + \ifcase#2 \CID{\ifodd#3 10218\else10228\fi}% + \else\shift@CID{#2}{10218}% + \fi} +\gdef\ajKosu{\ajnenrei4} +% +\gdef\ajLabel#1#2#{\ifx\\#2\\\aj@Label#1\else\@aj@Label#1#2\fi} +\gdef\aj@Label#1\else#2\fi#3{\fi + \expandafter\protect + \expandafter#1% + \expandafter{\number\csname c@#3\endcsname}} +\gdef\@aj@Label#1#2\fi#3{\fi + \expandafter\protect + \expandafter#1% + \expandafter#2% + \expandafter{\number\csname c@#3\endcsname}} +% +% +\gdef\ajFrac{\@ifstar{\@aj@Frac}{\aj@Frac}} +\gdef\@ajFrac#1#2{\ifcase#2\or + \or\ifcase#1\or9826\fi + \or\ifcase#1+9825\or9827\or9828\fi + \or\ifcase#1\or9829\or9826\or9830\fi + \or\ifcase#1\or9831\or9832\or9833\or9834\fi + \or\ifcase#1\or9835\or9827\or9826\or9828\or9836\fi + \or\ifcase#1\or9837\or9838\or9839\or9840\or9841\or9842\fi + \or\ifcase#1\or9843\or9829\or9844\or9826\or9845\or9830\or9846\fi + \or\ifcase#1\or9847\or9848\or9827\or9849\or9850\or9828\or9851\or9852\fi + \or\ifcase#1\or9853\or9831\or9854\or9832\or9826\or9833\or9855\or9834\or9856\fi + \or\ifcase#1\or9857\or9858\or9859\or9860\or9861\or9862\or9863\or9864\or9865\or9866\fi + \or\ifcase#1\or9867\or9835\or9829\or9827\or9868\or9826\or9869\or9828\or9830\or9836 + \or9870\fi + \else\ifnum#2=100 \ifnum#1=1 9871\fi\fi + \fi} +\gdef\@aj@Frac#1#2{\CID{\@ajFrac{#1}{#2}}} +\gdef\aj@Frac#1#2{{\@tempcnta\@ajFrac{#1}{#2}% + \advance\@tempcnta-9825 + \advance\@tempcnta\ifcase\@tempcnta9780\or8183\or9779\or9779\or8181\else9778\fi\relax + \CID{\@tempcnta}}} +%1/4 161 8880 9604 13120 +%1/2 162 8881 9605 13121 +%3/4 163 8882 9606 13122 +%1/8 9371 12887 9691 13207 +%3/8 9372 12888 9692 13208 +%5/8 9373 12889 9693 13209 +%7/8 9374 12890 9694 13210 +%1/3 9375 12891 9695 13211 +%2/3 9376 12892 9696 13212 +% +% +\def\@aj$BH>3Q(Bdef#1{\ifx\@nil#1\else + \expandafter\xdef\csname aj$BH>3Q(B@#1\endcsname{\noexpand\CID + {\noexpand\ifydir\number\@tempcnta\noexpand\else\number\@tempcntb\noexpand\fi}}% + \advance\@tempcnta\@ne\advance\@tempcntb\@ne + \expandafter\@aj$BH>3Q(Bdef\fi} +\@tempcnta326 +\@tempcntb9084 +\@aj$BH>3Q(Bdef $B!!!#!V!W!"!&%r%!%#%%%'%)%c%e%g%C!<%"%$%&%(%*%+%-%/%1%3%5%7%9%;%=%?%A%D%F%H%J%K%L%M%N%O%R%U%X%[%^%_%`%a(B$B%b%d%f%h%i%j%k%l%m%o%s!+!,!.%p%q%n%u%v%t%,%.%0%2%4%6%8%:%<%>%@%B%E%G%I%P%Q%S%T%V%W%Y%Z%\%](B\@nil +\@tempcnta516 +\@aj$BH>3Q(Bdef $B$r$!$#$%$'$)$c$e$g$C$"$$$&$($*$+$-$/$1$3$5$7$9$;$=$?$A$D$F$H$J$K$L$M$N$O$R$U$X$[$^$_$`$a$b$d$f$h$i$j$k$l$m$o$s$p$q$n$,$.$0$2$4$6$8$:$<$>$@$B$E$G$I$P$Q$S$T$V$W$Y$Z$\$](B\@nil +\gdef\aj$BH>3Q(B#1{\aj@$BH>3Q(B#1\@nil} +\gdef\aj@$BH>3Q(B#1{\ifx\@nil#1\else + \expandafter\ifx\csname aj$BH>3Q(B@#1\endcsname\relax + #1\else\csname aj$BH>3Q(B@#1\endcsname\fi + \expandafter\aj@$BH>3Q(B\fi} +% +% +\def\@ajligdef#1#2{\expandafter\xdef\csname ajLig\@ajmojifam#1\endcsname{\noexpand\CID{#2}}} +\def\@ajligaturedef#1{\ifx\@nil#1\else + \@ajligdef{#1}{\number\@tempcnta}\advance\@tempcnta\@ne + \expandafter\@ajligaturedef\fi} +\def\@aj@ligdef#1#2#3{\expandafter\xdef\csname ajLig\@ajmojifam#1\endcsname + {\noexpand\CID{\noexpand\ifydir#2\noexpand\else#3\noexpand\fi}}} +\def\@aj@ligaturedef#1{\ifx\@nil#1\else + \@aj@ligdef{#1}{\number\@tempcnta}{\number\@tempcntb}% + \advance\@tempcnta\@ne\advance\@tempcntb\@ne + \expandafter\@aj@ligaturedef\fi} +% +\let\@ajmojifam\@empty +\@tempcnta12111 +\@ajligaturedef{!!}{!?}{!*}{!!*}{!?*}\@nil +\@ajligdef{?!}{16279} +\@ajligdef{??}{16278} +% +\let\@ajmojifam\@empty +\@tempcnta7601 +\@ajligaturedef{mm}{cm}{km}{mg}{kg}{cc}{m2}\@nil +\@tempcnta7610 +\@ajligaturedef{No.}{K.K.}{TEL}\@nil +\@tempcnta8020 +\@ajligaturedef{cm2}{km2}{cm3}{m3}{dl}{l}{kl}{ms}{micros}{ns}{ps}{KB}{MB}{GB}{HP}{Hz}{mb}{ml}\@nil +\@ajligdef{KK.}{8053} +\@ajligdef{Tel}{8055} +\@ajligdef{in}{8182} +\@tempcnta8186 +\@ajligaturedef{mm2}{mm3}{km3}{sec}{min}\@nil +\@tempcnta8192 +\@ajligaturedef{cal}{kcal}{dB}\@nil +\@tempcnta8303 +\@ajligaturedef{m}{g}{F}{TB}{FAX}{JIS}\@nil +\@ajligdef{euro}{9779} +\@aj@ligdef{euro*}{9354}{12870} +\@aj@ligdef{ohm*}{9355}{12871} +\@ajligdef{mho}{16204} +\@aj@ligdef{mho*}{15515}{16526} +\@aj@ligdef{No*}{20321}{20965}%AJ1-6 +\@tempcnta11846 +\@ajligaturedef{AM}{KK}{No}{PH}{PM}{PR}{tel}{tm}{VS}{a/c}{a.m.}{c/c}{c.c.}{c/o}{dl*}{hPa}{kl*}{l*}{microg}{microm}{ml*}{m/m}{n/m}{pH}{p.m.}\@nil +\@ajligdef{JAS}{12088} +\@tempcnta20919 +\@ajligaturedef{ppb}{ppm}{'S}{H2}{O2}{Ox}{Nx}{Q2}{Jr.}{Dr.}\@nil%AJ1-6 +% +\let\@ajmojifam\@empty +\@tempcnta7621 +\@tempcntb12041 +\@aj@ligaturedef{$BL@<#(B}{$BBg@5(B}{$B><OB(B}\@nil +\@tempcnta7585 +\@tempcntb7940 +\@aj@ligaturedef{$B%_%j(B}{$B%-%m(B}{$B%;%s%A(B*}{$B%a!<%H%k(B}{$B%0%i%`(B*}{$B%H%s(B}{$B%"!<%k(B*}{$B%X%/%?!<%k(B}{$B%j%C%H%k(B}{$B%o%C%H(B*}{$B%+%m%j!<(B}{$B%I%k(B}{$B%;%s%H(B*}{$B%Q!<%;%s%H(B}{$B%_%j%P!<%k(B}{$B%Z!<%8(B*}\@nil +\@aj@ligdef{$B%;%s%A(B}{8038}{8329} +\@aj@ligdef{$B%-%m%a!<%H%k(B}{8039}{8330} +\@aj@ligdef{$B%0%i%`(B}{8040}{8339} +\@aj@ligdef{$B%-%m%0%i%`(B}{8041}{8340} +\@aj@ligdef{$B%"!<%k(B}{8042}{8338} +\@aj@ligdef{$B%;%s%H(B}{8043}{8348} +\@aj@ligdef{$B%o%C%H(B}{8044}{8344} +\@aj@ligdef{$B%[!<%s(B}{8045}{8347} +\@aj@ligdef{$B%X%k%D(B}{8046}{8343} +\@aj@ligdef{$B%Z!<%8(B}{8047}{8349} +\@aj@ligdef{$B%"%Q!<%H(B}{8048}{8350} +\@aj@ligdef{$B%S%k(B}{8049}{8358} +\@aj@ligdef{$B%^%s%7%g%s(B}{8050}{8357} +\@aj@ligdef{$B%3!<%](B}{8051}{8353} +\@aj@ligdef{$B%O%$%D(B}{8052}{8356} +\@aj@ligdef{$B3t<02q<R(B}{8054}{8324} +\@aj@ligdef{$B%$%s%A(B}{8183}{8333} +\@aj@ligdef{$BM-8B2q<R(B}{8321}{8325} +\@aj@ligdef{$B:bCDK!?M(B}{8322}{8326} +\@aj@ligdef{$BJ?@.(B}{8323}{12044} +\@aj@ligdef{$B%U%#!<%H(B}{8327}{8334} +\@aj@ligdef{$B%d!<%I(B}{8328}{8337} +\@aj@ligdef{$B%$%s%A(B*}{8331}{8332} +\@aj@ligdef{$B%d!<%I(B*}{8335}{8336} +\@aj@ligdef{$B%X%k%D(B*}{8341}{8342} +\@aj@ligdef{$B%[!<%s(B*}{8345}{8346} +\@aj@ligdef{$B%3!<%](B*}{8351}{8352} +\@aj@ligdef{$B%O%$%D(B*}{8354}{8355} +\@aj@ligdef{$B$5$8(B}{11871}{11872} +\@tempcnta11873 +\@tempcntb11957 +\@aj@ligaturedef{$B%"%H(B}{$B%"%k%U%!(B}{$B%"%s%Z%"(B}{$B%$%K%s%0(B}{$B%&%)%s(B}{$B%&%k%7(B}{$B%(!<%+!<(B}{$B%(%/%5(B}{$B%(%9%/!<%I(B}{$B%*!<%`(B}{$B%*%s%0%9%H%m!<%`(B}{$B%*%s%9(B}{$B%*%s%H%m(B}{$B%+%$%j(B}% +{$B%+%C%W(B}{$B%+%i%C%H(B}{$B%,%m%s(B}{$B%,%s%^(B}{$B%.%,(B}{$B%.%K!<(B}{$B%-%e%j!<(B}{$B%.%k%@!<(B}{$B%-%m%j%C%H%k(B}{$B%-%m%o%C%H(B}{$B%0%9!<%`(B}{$B%0%i%`%H%s(B}{$B%/%k%5!<%I(B}{$B%/%k%<%$%m(B}{$B%/%m!<%M(B}% +{$B%1!<%9(B}{$B%3%k%J(B}{$B%5%$%/%k(B}{$B%5%s%A!<%`(B}{$B%7%j%s%0(B}{$B%@!<%9(B}{$B%G%+(B}{$B%G%7(B}{$B%F%i(B}{$B%I%i%/%^(B}{$B%J%N(B}{$B%N%C%H(B}{$B%P!<%D(B}{$B%P!<%l%k(B}{$B%Q%9%+%k(B}{$B%P%l%k(B}{$B%T%"%9%H%k(B}{$B%T%/%k(B}% +{$B%T%3(B}{$B%U%!%i%C%I(B}{$B%U%!%i%I(B}{$B%U%'%`%H(B}{$B%V%C%7%'%k(B}{$B%U%i%s(B}{$B%Y!<%?(B}{$B%X%/%H(B}{$B%X%/%H%Q%9%+%k(B}{$B%Z%;%?(B}{$B%Z%=(B}{$B%Z%?(B}{$B%Z%K%R(B}{$B%Z%s%9(B}{$B%]%$%s%H(B}{$B%[!<%k(B}{$B%\%k%H(B}{$B%[%s(B}% +{$B%]%s%I(B}{$B%^%$%/%m(B}{$B%^%$%k(B}{$B%^%C%O(B}{$B%^%k%/(B}{$B%_%/%m%s(B}{$B%a%,(B}{$B%a%,%H%s(B}{$B%d!<%k(B}{$B%f%"%s(B}{$B%f!<%m(B}{$B%i%I(B}{$B%j%i(B}{$B%k!<%V%k(B}{$B%k%/%9(B}{$B%k%T%"(B}{$B%k%T!<(B}{$B%l%`(B}{$B%l%s%H%2%s(B}\@nil +\@tempcnta12045 +\@tempcntb12054 +\@aj@ligaturedef{$B0eNEK!?M(B}{$B3X9;K!?M(B}{$B6&F1AH9g(B}{$B6(F1AH9g(B}{$B9g;q2q<R(B}{$B9gL>2q<R(B}{$B<RCDK!?M(B}{$B=!65K!?M(B}{$BM9JXHV9f(B}\@nil +\expandafter\gdef\csname ajLig$B%*%s%0%9%H%m!<%`(B*\endcsname + {\mbox{\kern.05zw\ajLig{$B%*%s%H%m(B}\kern-.1zw\ajLig{$B%0%9!<%`(B}\kern.05zw}} +\@tempcnta20929 +\@tempcntb20943 +\@aj@ligaturedef{$B%,%k(B}{$B%0%l%$(B}{$B%/%m!<%J(B}{$B%7!<%Y%k%H(B}{$B%7%'%1%k(B}{$B%8%e!<%k(B}{$B%G%7%Y%k(B}{$B%I%C%H(B}{$B%P%$%H(B}{$B%S%C%H(B}{$B%Y%/%l%k(B}{$B%\!<(B}{$B%i%s%I(B}{$B%j%s%.%C%H(B}\@nil%AJ1-6 +\@ajligdef{$B$h$j(B}{12181} +\@ajligdef{$B>#(B}{16194} +\@ajligdef{$B%3%H(B}{16195} +% +\def\@ajmojifam{$B!{(B} +\@tempcnta7613 +\@ajligaturedef $B>eCf2<:81&(B\@nil +\@ajligdef{$B")(B}{8057} +\@tempcnta8152 +\@ajligaturedef $BLk4k0e6(L>=!O+3XM-3t<R4F;q:b(B\@nil +\@ajligdef{$B0u(B}{8191} +\@ajligdef{$BHk(B}{8223} +\@tempcnta8317 +\@ajligaturedef $BBg>.M%95(B\@nil +\@tempcnta10478 +\@ajligaturedef $BD4CmI{8:I87g4p6X9`5Y=wCK@5<L=K=PE,FC:QA}LdEzNcEE(B\@nil% +\@ajligdef{$BG/(B}{20553}%AJ1-6 +% +\def\@ajmojifam#1{(#1)} +\@ajligdef{$B3t(B}{7618} +\@ajligdef{$BM-(B}{7619} +\@ajligdef{$BBe(B}{7620} +\@tempcnta8138 +\@ajligaturedef $B;j4k6(L>O+<R4F<+;q:bFC3X:W8F(B\@nil +\@ajligdef{$B=K(B}{8204} +\@ajligdef{$B5Y(B}{8205} +\@tempcnta10146 +\@ajligaturedef $B1D9gCmLdEzNc(B\@nil +% +\def\@ajmojifam{$B""(B} +\@ajligdef{$B0u(B}{8196} +\@ajligdef{$BIi(B}{11030} +\@ajligdef{$B>!(B}{11031} +\@tempcnta20497 +\@ajligaturedef{:A}{:B}{:C}{:D}{:E}{:F}{:$B=*(B}\@nil%AJ1-6 +\@tempcnta20505 +\@ajligaturedef{:CL}{:KCL}{:BEL}{:AS}{:AM}{:$BCJ(B}{:$B%4(B}{:$B%_(B}\@nil%AJ1-6 +% +\def\@ajmojifam{$B!~(B} +\@tempcnta20554 +\@ajligaturedef {News}$BE7:F?71G@<A08e=*N)8r(B{$B$[$+(B}$B7`;J2r3t5$FsB?J8<j(B{PV}{MV}$BAP(B{SS}{S1}{S2}{S3}$B%G(B{HV}\@nil%AJ1-6 +% +\def\@ajmojifam{$B"&(B} +\@ajligdef{$B")(B}{12180} +\@ajligdef{$B"&(B}{12193} +% +\def\@ajmojifam{$B"$(B} +\@ajligdef{!}{12192} +% +\def\@ajmojifam{$B"#(B} +\@ajligdef{$B!~(B}{12231} +% +\expandafter\chardef\csname offset$B!|(B\endcsname\z@ +\expandafter\mathchardef\csname offset$B""(B\endcsname269 +\expandafter\mathchardef\csname offset$B"#(B\endcsname268 +\expandafter\mathchardef\csname offset$B!~(B\endcsname267 +\expandafter\mathchardef\csname offset$B"!(B\endcsname266 +\@tempcnta10760 +\def\@ajmojidef#1{\ifx\@nil#1% + \else\advance\@tempcnta\csname offset#1\endcsname + \def\@ajmojifam{#1}% + \@ajligaturedef $BLdEzNc(B\@nil + \expandafter\@ajmojidef\fi} +\@ajmojidef $B!|"""#!~"!(B\@nil +% +\def\@ajkanadef#1#2#3#4#5#6#7{\expandafter\gdef\csname ajLig#1\endcsname + {\if@kana\def\reserved@a{ruby}% + \ifx\k@family\reserved@a + \ifydir\CID{#6}\else\CID{#7}\fi + \else\ifydir\CID{#4}\else\CID{#5}\fi + \fi + \else\ifydir\CID{#2}\else\CID{#3}\fi + \fi}} +\newcount\@tempcntc +\newcount\@tempcntd +\newcount\@tempcnte +\newcount\@tempcntf +\def\@aj@kanadef#1{\ifx\@nil#1% + \else\edef\reserved@b{\noexpand\@ajkanadef{#1}% + {\number\@tempcnta}{\number\@tempcntb}{\number\@tempcntc}% + {\number\@tempcntd}{\number\@tempcnte}{\number\@tempcntf}}\reserved@b + \advance\@tempcnta\@ne\advance\@tempcntb\@ne\advance\@tempcntc\@ne + \advance\@tempcntd\@ne\advance\@tempcnte\@ne\advance\@tempcntf\@ne + \expandafter\@aj@kanadef\fi} +\@ajkanadef{$B$&!+(B}{7958}{7958}{12361}{12544}{12756}{12756} +\@tempcnta8313 +\@tempcntb8313 +\@tempcntc12452 +\@tempcntd12635 +\@tempcnte16444 +\@tempcntf16444 +\@aj@kanadef{$B%o!+(B}{$B%p!+(B}{$B%q!+(B}{$B%r!+(B}\@nil +\@tempcnta16209 +\@tempcntb16209 +\@tempcntc16352 +\@tempcntd16382 +\@tempcnte16414 +\@tempcntf16414 +\@aj@kanadef{$B$+!,(B}{$B$-!,(B}{$B$/!,(B}{$B$1!,(B}{$B$3!,(B}{$B%+!,(B}{$B%-!,(B}{$B%/!,(B}{$B%1!,(B}{$B%3!,(B}{$B%;!,(B}{$B%D!,(B}{$B%H!,(B}\@nil +\@ajkanadef{$B>.$+(B}{7959}{8264}{12285}{12468}{12682}{12762} +\@ajkanadef{$B>.$1(B}{7960}{8265}{12292}{12475}{12689}{12763} +\@ajkanadef{$B>.$3(B}{12269}{12270}{12295}{12478}{16448}{16467} +\@ajkanadef{$B>.%3(B}{12271}{12272}{12385}{12568}{16449}{16468} +\@tempcnta16236 +\@tempcntb16333 +\@tempcntc16365 +\@tempcntd16395 +\@tempcnte16427 +\@tempcntf16450 +\@aj@kanadef{$B>.%/(B}{$B>.%7(B}{$B>.%9(B}{$B>.%H(B}{$B>.%L(B}{$B>.%O(B}{$B>.%R(B}{$B>.%U(B}{$B>.%X(B}{$B>.%[(B}{$B>.%W(B}{$B>.%`(B}{$B>.%i(B}{$B>.%j(B}{$B>.%k(B}{$B>.%l(B}{$B>.%m(B}\@nil +% +\def\@aj@numberdef#1#2{\ifx\@nil#2\expandafter\@gobble + \else\expandafter\xdef\csname ajnumber#2\endcsname{{#1}{\number\@tempcnta}}% + \advance\@tempcnta\@ne + \expandafter\@aj@numberdef\fi{#1}} +\@tempcnta\@ne +\@aj@numberdef{alph}abcdefghijklmnopqrstuvwxyz\@nil +\@tempcnta\@ne +\@aj@numberdef{Alph}ABCDEFGHIJKLMNOPQRSTUVWXYZ\@nil +\@tempcnta\@ne +\@aj@numberdef{Hira}$B$"$$$&$($*$+$-$/$1$3$5$7$9$;$=$?$A$D$F$H$J$K$L$M$N$O$R$U$X$[$^$_$`$a$b$d$f$h$i$j$k$l$m$o$p$q$r$s(B\@nil +\@tempcnta\@ne +\@aj@numberdef{Kata}$B%"%$%&%(%*%+%-%/%1%3%5%7%9%;%=%?%A%D%F%H%J%K%L%M%N%O%R%U%X%[%^%_%`%a%b%d%f%h%i%j%k%l%m%o%p%q%r%s(B\@nil +\@tempcnta\@ne +\@aj@numberdef{Yobi}$BF|7n2P?eLZ6bEZ=K5Y(B\@nil +\gdef\@ajnumber#1{\expandafter\expandafter\expandafter\aj@number\csname ajnumber#1\endcsname} +\gdef\aj@number#1{\ifx\relax#1\expandafter\@gobbletwo\else\expandafter\@aj@number\fi{#1}} +\gdef\@aj@number#1#2#3{\csname aj#3#1\endcsname{#2}} +% +\def\@aj@kakomidef#1#2{\expandafter\gdef\csname#1\endcsname##1% + {\expandafter\ifx\csname ajLig#1##1\endcsname\relax\@ajnumber{##1}{#2}% + \else\csname ajLig#1##1\endcsname\fi}} +\@aj@kakomidef{$B!{(B}{Maru} +\@aj@kakomidef{$B!|(B}{KuroMaru} +\@aj@kakomidef{$B""(B}{Kaku} +\@aj@kakomidef{$B"#(B}{KuroKaku} +\@aj@kakomidef{$B!~(B}{MaruKaku} +\@aj@kakomidef{$B"!(B}{KuroMaruKaku} +\gdef\$B"$(B#1{\csname ajLig$B"$(B#1\endcsname} +\gdef\$B"&(B#1{\csname ajLig$B"&(B#1\endcsname} +\gdef\$B!J(B#1$B!K(B{\expandafter\ifx\csname ajLig(#1)\endcsname\relax\@ajnumber{#1}{Kakko}% + \else\csname ajLig(#1)\endcsname\fi} +\gdef\$B!+(B#1{\csname ajLig#1$B!+(B\endcsname} +\gdef\$B!,(B#1{\csname ajLig#1$B!,(B\endcsname} +\gdef\$B!*(B#1{\csname ajLig$B>.(B#1\endcsname} +\gdef\ajLig#1{\csname ajLig#1\endcsname} +% +% +\def\@ajPICTdef#1#2{\expandafter\xdef\csname ajPICT#1\endcsname{\noexpand\CID{#2}}} +\def\@aj@PICTdef#1{\ifx\@nil#1\else + \@ajPICTdef{#1}{\number\@tempcnta}\advance\@tempcnta\@ne + \expandafter\@aj@PICTdef\fi} +\@tempcnta8016 +\@aj@PICTdef{Club}{Heart}{Spade}{Diamond}\@nil +\@ajPICTdef{$BEEOC(B}{8056} +\@ajPICTdef{$B")(B}{8058} +\@tempcnta8211 +\@aj@PICTdef{Spade*}{Heart*}{Club*}{Diamond*}\@nil +\@tempcnta8215 +\@aj@PICTdef $B@2F^1+@c"*"+","-(B\@nil +\@ajPICTdef{$BLn5e(B}{12097} +\@ajPICTdef{$BEr(B}{12098} +\@ajPICTdef{$B2V(B}{12228} +\@ajPICTdef{$B2V(B*}{12229} +\@ajPICTdef{$B%5%C%+!<(B}{20957}%AJ1-6 +\gdef\ajPICT#1{\csname ajPICT#1\endcsname} +\global\let\$B"((B\ajPICT +% +% +\def\@ajArrowdef#1#2{\expandafter\xdef\csname ajArrow#1\endcsname{\noexpand\CID{#2}}} +\def\@aj@Arrowdef#1{\ifx\@nil#1\else + \@ajArrowdef{#1}{\number\@tempcnta}\advance\@tempcnta\@ne + \expandafter\@aj@Arrowdef\fi} +\@tempcnta8009 +\@aj@Arrowdef{LeftTriangle}{RightTriangle}{DOWN}{UP}{LEFT}{RIGHT}\@nil +\@tempcnta8206 +\@aj@Arrowdef{RIGHT*}{LEFT*}{UP*}{DOWN*}\@nil +\@tempcnta8219 +\@aj@Arrowdef{RightHand}{LeftHand}{UpHand}{DownHand}\@nil +\@tempcnta8309 +\@aj@Arrowdef{Left/Right}{Right/Left}{Up/Down}{Down/Up}\@nil +\@tempcnta12175 +\@aj@Arrowdef{LeftScissors}{RightScissors}{UpScissors}{DownScissors}\@nil +\@tempcnta12194 +\@aj@Arrowdef +{LeftTriangle*}{RightTriangle*}{Left}{Right}{Up}{Down}{LeftDouble}{LeftRight*}{RightDown}{LeftDown}{LeftUp}{RightUp}% +{Right/Left*}{Left/Right*}{Right/Left+}{Down/Up+}{Left+}{Right+}{Up+}{Down+}{LeftRight+}{UpDown+}\@nil +\@tempcnta12261 +\@aj@Arrowdef +{LeftAngle}{RightAngle}{UpAngle}{DownAngle}{LeftAngle*}{RightAngle*}{UpAngle*}{DownAngle*}\@nil +\@ajArrowdef{RightDouble}{15482}%752 16493 +\@ajArrowdef{LeftRightDouble}{15483}%753 16494 +%\@ajArrowdef{LeftRight}{15511}%12201 16522 +\@ajArrowdef{RightUp*}{16201} +\@ajArrowdef{RightDown*}{16202} +%\@ajArrowdef{DOWNLEFT*}{16273} +\gdef\ajArrow#1{\csname ajArrow#1\endcsname} +% +% +\def\@aj@kuntendef#1{\ifx\@nil#1% + \else\expandafter\xdef\csname aj$B71E@(B#1\endcsname + {\noexpand\CID{\number\@tempcnta}}% + \advance\@tempcnta\@ne + \expandafter\@aj@kuntendef + \fi} +\@tempcnta16283 +\@aj@kuntendef $B!C%l0lFs;0;M>eCf2<9C25J:CzE7CO?M(B\@nil +\gdef\aj@smallReten{{\@tempdimb\f@size pt\@tempskipa\f@baselineskip + \@tempdimb.94\@tempdimb + \@tempskipa.94\@tempskipa + \fontsize{\@tempdimb}{\@tempskipa}\selectfont\aj$B71E@%l(B}} +\gdef\aj$B71E@0l%l(B{\mbox{\tate\kern-.24zw\aj$B71E@0l(B\kern-.65zw\raise.15zw\hbox{\aj@smallReten}}} +\gdef\aj$B71E@>e%l(B{\mbox{\tate\aj$B71E@>e(B\kern-.3zw\raise.15zw\hbox{\aj@smallReten}}} +\gdef\aj$B71E@9C%l(B{\mbox{\tate\aj$B71E@9C(B\kern-.25zw\raise.15zw\hbox{\aj@smallReten}}} +\gdef\aj$B71E@E7%l(B{\mbox{\tate\aj$B71E@E7(B\kern-.4zw\raise.1zw\hbox{\aj@smallReten}}} +\def\@ajongofudef#1{\ifx\@nil#1% + \else\expandafter\xdef\csname aj$B71E@(B#1$B!C(B\endcsname + {\noexpand\mbox{\yoko\expandafter\noexpand\csname aj$B71E@(B#1\endcsname + \hbox to\z@{\hss\expandafter\noexpand\csname aj$B71E@!C(B\endcsname\kern-.5zw}}}% + \expandafter\@ajongofudef\fi} +\@ajongofudef $BFs;0;MCf2<25J:CzCO?M(B\@nil +\expandafter\gdef\csname aj$B71E@!!!C(B\endcsname{\mbox{\yoko{$B!!(B}\hbox to\z@{\hss\csname aj$B71E@!C(B\endcsname\kern-.5zw}}} +\def\@ajkungofudef#1{\ifx\@nil#1% + \else\expandafter\xdef\csname aj$B71E@!C(B#1\endcsname + {\noexpand\mbox{\yoko\hbox to\z@{\hss\expandafter\noexpand\csname aj$B71E@!C(B\endcsname\kern-.5zw}% + \expandafter\noexpand\csname aj$B71E@(B#1\endcsname}}% + \expandafter\@ajkungofudef\fi} +\@ajkungofudef $BFs;0;MCf2<25J:CzCO?M(B\@nil +\expandafter\gdef\csname aj$B71E@!C!!(B\endcsname{\mbox{\yoko\hbox to\z@{\hss\csname aj$B71E@!C(B\endcsname\kern-.5zw}{$B!!(B}}} +% +\gdef\ajKunten#1{\csname aj$B71E@(B#1\endcsname} +% +\gdef\ajRedefine@KundokuMacros{\ifx\kokana\@undefined + \else\let\orig@kokana\kokana + \let\orig@retenform\retenform + \let\orig@reten\reten + \let\orig@retenkana\retenkana + \let\orig@kaeriten\kaeriten + \def\aj@kokana##1##2{\orig@kokana{\aj@kundokusize\if@kana\rubyfamily\fi##1}% + {\aj@kundokusize\ajKunten{##2}}}% + \def\aj@retenform{\aj@kundokusize\aj$B71E@%l(B}% + \def\aj@reten{\orig@kaeriten{\aj@kundokusize\aj$B71(B$BE@%l(B}}% + \def\aj@retenkana##1{\orig@retenkana{\aj@kundokusize\if@kana\rubyfamily\fi##1}}% + \def\aj@kaeriten##1{\orig@kaeriten{\aj@kundokusize\ajKunten{##1}}}% + \let\aj@kundokusize\tiny + \fi + \ifx\@k@nd@ku@\@undefined + \else{\global\let\orig@k@nd@ku@\@k@nd@ku@ + \newtoks\@temptokenb + \newtoks\@temptokenc + \def\get@hbox##1\hbox##2##3\get@hbox + {\@temptokena{##1}\@temptokenb{##2}\@temptokenc{##3}}% + \expandafter\get@hbox + \@k@nd@ku@[##1]{##2}{##3}{##4}{\ajKunten{##5}}[\ajKunten{##6}]<##7>(##8)\get@hbox + \def\change@reten##1\def\temptopleft##2\def\tempbottomleft##3##4\change@reten + {\@temptokenb{##1\def\temptopleft{####6}\def\tempbottomleft{####5}##4}}% + \expandafter\change@reten\the\@temptokenb\change@reten + \edef\redefine@k@nd@ku@##1{\gdef\noexpand\aj@k@nd@ku@##1% + {\the\@temptokena\hbox{\the\@temptokenb}\the\@temptokenc}}% + \redefine@k@nd@ku@{[##1]##2##3##4##5[##6]<##7>(##8)}}% + \let\aj@kundokusize\kundokusize + \fi} +\@onlypreamble\ajRedefine@KundokuMacros +\AtBeginDocument{\ajRedefine@KundokuMacros} +\gdef\DeclareOriginalKundokuStyle{\@ifnextchar[%] + {\Declare@OriginalKundokuStyle}% + {\Declare@OriginalKundokuStyle[\aj@kundokusize]}} +\gdef\Declare@OriginalKundokuStyle[#1]{\let\aj@kundokusize#1% + \ifx\orig@k@nd@ku@\@undefined + \else\let\@k@nd@ku@\orig@k@nd@ku@ + \let\kundokusize\aj@kundokusize + \fi + \ifx\orig@kokana\@undefined + \else + \let\kokana\orig@kokana + \let\retenform\orig@retenform + \let\reten\orig@reten + \let\retenkana\orig@retenkana + \let\kaeriten\orig@kaeriten + \fi} +\gdef\DeclareAJKundokuStyle{\@ifnextchar[%] + {\Declare@AJKundokuStyle}% + {\Declare@AJKundokuStyle[\aj@kundokusize]}} +\gdef\Declare@AJKundokuStyle[#1]{\let\aj@kundokusize#1% + \ifx\aj@k@nd@ku@\@undefined + \else\let\@k@nd@ku@\aj@k@nd@ku@ + \def\kundokusize{\aj@kundokusize\if@kana\rubyfamily\fi}% + \fi + \ifx\aj@kokana\@undefined + \else + \let\kokana\aj@kokana + \let\retenform\aj@retenform + \let\reten\aj@reten + \let\retenkana\aj@retenkana + \let\kaeriten\aj@kaeriten + \fi} +% +% +\gdef\ajCIDVarDef{\aj@VarDef\CID} +\gdef\ajUTFVarDef{\aj@VarDef\UTF} +\gdef\aj@VarDef#1#2#3{\expandafter\xdef\csname ajVar#2\endcsname{\noexpand#1{#3}}} +\gdef\ajCIDVarList#1{{\@ajCIDVarList#1\relax}} +\gdef\@ajCIDVarList#1{\ifx\relax#1\else\def\reserved@a{#1}\expandafter\aj@CIDVarList\fi} +\gdef\aj@CIDVarList{\afterassignment\@aj@CIDVarList\@tempcnta} +\gdef\@aj@CIDVarList{\aj@VarDef\CID\reserved@a{\number\@tempcnta}\@ajCIDVarList} +\gdef\ajUTFVarList#1{{\@ajUTFVarList#1 \relax}} +\gdef\@ajUTFVarList#1{\ifx\relax#1\else\def\reserved@a{#1}\expandafter\aj@UTFVarList\fi} +\gdef\aj@UTFVarList#1#2{\ifx=#1\expandafter\@aj@UTFVarList\else\expandafter\@aj@UTFVarList\expandafter#1\fi#2} +\gdef\@aj@UTFVarList#1 {\aj@VarDef\UTF\reserved@a{#1}\@ajUTFVarList} +\gdef\ajVar#1{\csname ajVar#1\endcsname} +\@onlypreamble\ajCIDVarDef +\@onlypreamble\ajUTFVarDef +\@onlypreamble\ajCIDVarList +\@onlypreamble\ajUTFVarList +%\ajCIDVarList{$B5H(B=13706 $B65(B=8471 $B9b(B=8705 $B2*(B=7646 $B:j(B=14290 $B:l(B=17009 $BBh(B=13910 $B3Q(B=13682 $BIM(B=8531} +\gdef\ajHashigoTaka{\CID{8705}} +\gdef\ajTsuchiYoshi{\CID{13706}} +\gdef\ajTatsuSaki{\CID{14290}} +\gdef\ajMayuHama{\CID{8531}} +% +% +%\gdef\ajRedefine@ajVar{\@ifpackageloaded{hyperref}{% +% \let\aj@Var\ajVar +% \def\ajVar##1{\ifHy@pdfstring +% \expandafter\expandafter +% \expandafter\check@UTF\csname ajVar##1\endcsname{##1}% +% \else\aj@Var{##1}\fi} +% \def\check@UTF##1##2##3{\ifx\UTF##1\0x##2\else##3\fi}}{}} +\gdef\ajRedefine@ajCommands{\@ifpackageloaded{hyperref}{% + \let\hyperref@ajLabel\ajLabel + \def\ajLabel##1##{\ifHy@pdfstring\Hy@ReturnAfterElseFi\hyperref@ajLabel\@arabic\else\Hy@ReturnAfterFi\hyperref@ajLabel##1\fi}% + \ajRedefine@ajCommand\$B"$(B{Lig$B"$(B}\$B"&(B{Lig$B"&(B}\$B!*(B{Lig$B>.(B}\ajLig{Lig}\ajPICT{PICT}\$B"((B{PICT}\ajVar{Var}\@nil\@nil + \aj@Redefine@ajCommand$B!{(B{Maru}$B!|(B{KuroMaru}$B""(B{Kaku}$B"#(B{KuroKaku}$B!~(B{MaruKaku}$B"!(B{KuroMaruKaku}\@nil\@nil + \def\$B!J(B##1$B!K(B{\ifHy@pdfstring(##1)\else\expandafter\ifx\csname ajLig(##1)\endcsname\relax\@ajnumber{##1}{Kakko}% + \else\csname ajLig(##1)\endcsname\fi\fi}% + \def\$B!+(B##1{\ifHy@pdfstring##1$B!+(B\else\csname ajLig##1$B!+(B\endcsname\fi}% + \def\$B!,(B##1{\ifHy@pdfstring##1$B!,(B\else\csname ajLig##1$B!,(B\endcsname\fi}% + }{}} +\gdef\ajRedefine@ajCommand#1#2{\ifx\@nil#1\else\def#1##1{\ifHy@pdfstring##1\else\csname aj#2##1\endcsname\fi}% + \expandafter\ajRedefine@ajCommand\fi} +\gdef\aj@Redefine@ajCommand#1#2{\ifx\@nil#1\else\expandafter\def\csname#1\endcsname##1% + {\ifHy@pdfstring##1\else\expandafter\ifx\csname ajLig#1##1\endcsname\relax\@ajnumber{##1}{#2}\else + \csname ajLig#1##1\endcsname\fi\fi}% + \expandafter\aj@Redefine@ajCommand\fi} +\AtBeginDocument{\ajRedefine@ajCommands} +% +% +\gdef\ajLeader{\@ifnextchar[{\aj@Leader}{\aj@Leader[\z@ plus1fill]}} +\gdef\aj@Leader[#1]#2{{\@tempcnta#2\multiply\@tempcnta\tw@ + \advance\@tempcnta1221\ifhmode\ifydir4\else5\fi\else\ifydir5\else4\fi\fi + \leaders\hbox{\CID{\@tempcnta}}\ifhmode\hskip\else\vskip\fi#1}} +% +% +\toks0{}\toks1{}\toks2{}\toks3{} +\def\ajQuotedef#1 #2 #3 #4 {\ifx*#1\else + \toks0\expandafter{\the\toks0 \or#1}% + \toks1\expandafter{\the\toks1 \or#2}% + \toks2\expandafter{\the\toks2 \or#3}% + \toks3\expandafter{\the\toks3 \or#4}% + \expandafter\ajQuotedef\fi} +\ajQuotedef +670 671 12173 12174 +672 673 7956 7957 +674 675 7899 7900 +676 677 7901 7902 +678 679 7903 7904 +680 681 7905 7906 +682 683 7907 7908 +684 685 7909 7910 +686 687 7911 7912 +688 689 7913 7914 +690 691 7915 7916 +7608 7609 7956 7957 +12125 12126 12135 12136 +12127 12128 12137 12138 +12129 12130 12139 12140 +12131 12132 12141 12142 +12171 12172 12173 12174 +16197 16198 16329 16330 +* * * * +\xdef\ajQuote#1#2{\noexpand\CID{\noexpand\ifydir\noexpand\ifcase#1\the\toks0 + \noexpand\fi\noexpand\else\noexpand\ifcase#1\the\toks2 + \noexpand\fi\noexpand\fi}#2\inhibitglue\noexpand\CID{\noexpand\ifydir\noexpand\ifcase#1\the\toks1 + \noexpand\fi\noexpand\else\noexpand\ifcase#1\the\toks3 + \noexpand\fi\noexpand\fi}} +} +\endinput diff --git a/Master/texmf-dist/tex/platex/japanese-otf/mlcid.sty b/Master/texmf-dist/tex/platex/japanese-otf/mlcid.sty new file mode 100644 index 00000000000..4964b82d1ad --- /dev/null +++ b/Master/texmf-dist/tex/platex/japanese-otf/mlcid.sty @@ -0,0 +1,35 @@ +\NeedsTeXFormat{pLaTeX2e} +\ProvidesPackage{mlcid}[2004/04/17 v1.0.2 psitau] +%force catcode of \" be 12 +\count@\catcode`\" +\catcode`\"=12 +\DeclareRobustCommand{\CIDK}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily{cidk}\set@character=#1% + \endgroup% +} +\DeclareRobustCommand{\CIDC}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily{cidc}\set@character=#1% + \endgroup% +} +\DeclareRobustCommand{\CIDT}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily{cidt}\set@character=#1% + \endgroup% +} +\catcode`\"=\count@ +%end of changing catcode of \" +\DeclareKanjiFamily{\otf@JYn}{cidk}{} +\DeclareKanjiFamily{\otf@JTn}{cidk}{} +\Declare@FontShape{cidk}{m}{01234}{cidkmr} +\Declare@FontShape{cidk}{bx}{01234}{cidkgr} +\DeclareKanjiFamily{\otf@JYn}{cidc}{} +\DeclareKanjiFamily{\otf@JTn}{cidc}{} +\Declare@FontShape{cidc}{m}{01234567}{cidcmr} +\Declare@FontShape{cidc}{bx}{01234567}{cidcgr} +\DeclareKanjiFamily{\otf@JYn}{cidt}{} +\DeclareKanjiFamily{\otf@JTn}{cidt}{} +\Declare@FontShape{cidt}{m}{01234}{cidtmr} +\Declare@FontShape{cidt}{bx}{01234}{cidtgr} +\endinput diff --git a/Master/texmf-dist/tex/platex/japanese-otf/mlutf.sty b/Master/texmf-dist/tex/platex/japanese-otf/mlutf.sty new file mode 100644 index 00000000000..70077cb89f4 --- /dev/null +++ b/Master/texmf-dist/tex/platex/japanese-otf/mlutf.sty @@ -0,0 +1,58 @@ +\NeedsTeXFormat{pLaTeX2e} +\ProvidesPackage{mlutf}[2004/04/17 v1.1.2 psitau] +%force catcode of \" be 12 +\count@\catcode`\" +\catcode`\"=12 +\DeclareRobustCommand{\UTFK}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily{utfk}\uppercase{\set@character="#1}% + \endgroup% +} +\DeclareRobustCommand{\UTFC}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily{utfc}\uppercase{\set@character="#1}% + \endgroup% +} +\DeclareRobustCommand{\UTFT}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily{utft}\uppercase{\set@character="#1}% + \endgroup% +} +\DeclareRobustCommand{\UTFM}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily{utf}\uppercase{\set@character="#1}% + \endgroup% +} +\catcode`\"=\count@ +%end of changing catcode of \" +\gdef\Redefine@MLUTF{% + \@ifpackageloaded{hyperref}{% + \def\hyper@UTFC##1{\ifHy@pdfstring\0x##1\else\csname UTFC \endcsname{##1}\fi} + \def\hyper@UTFK##1{\ifHy@pdfstring\0x##1\else\csname UTFK \endcsname{##1}\fi} + \def\hyper@UTFT##1{\ifHy@pdfstring\0x##1\else\csname UTFT \endcsname{##1}\fi} + \def\hyper@UTFM##1{\ifHy@pdfstring\0x##1\else\csname UTFM \endcsname{##1}\fi} + \def\UTFC{\protect\hyper@UTFC} + \def\UTFK{\protect\hyper@UTFK} + \def\UTFT{\protect\hyper@UTFT} + \def\UTFM{\protect\hyper@UTFM} + }{} +} +\AtBeginDocument{\Redefine@MLUTF} + +\DeclareKanjiFamily{\otf@JYn}{utfk}{} +\DeclareKanjiFamily{\otf@JTn}{utfk}{} +\Declare@FontShape{utfk}{m}{0123456789abcdef}{utfkmr} +\Declare@FontShape{utfk}{bx}{0123456789abcdef}{utfkgr} +\DeclareKanjiFamily{\otf@JYn}{utfc}{} +\DeclareKanjiFamily{\otf@JTn}{utfc}{} +\Declare@FontShape{utfc}{m}{0123456789abcdef}{utfcmr} +\Declare@FontShape{utfc}{bx}{0123456789abcdef}{utfcgr} +\DeclareKanjiFamily{\otf@JYn}{utft}{} +\DeclareKanjiFamily{\otf@JTn}{utft}{} +\Declare@FontShape{utft}{m}{0123456789abcdef}{utftmr} +\Declare@FontShape{utft}{bx}{0123456789abcdef}{utftgr} +\DeclareKanjiFamily{\otf@JYn}{utf}{} +\DeclareKanjiFamily{\otf@JTn}{utf}{} +\Declare@FontShape{utf}{m}{0123456789abcdef}{utfmr} +\Declare@FontShape{utf}{bx}{0123456789abcdef}{utfgr} +\endinput diff --git a/Master/texmf-dist/tex/platex/japanese-otf/otf.sty b/Master/texmf-dist/tex/platex/japanese-otf/otf.sty new file mode 100644 index 00000000000..f890f0a0e4b --- /dev/null +++ b/Master/texmf-dist/tex/platex/japanese-otf/otf.sty @@ -0,0 +1,390 @@ +\NeedsTeXFormat{pLaTeX2e} +\ProvidesPackage{otf}[2010/03/25 v1.7b1 psitau] +%for processing options +\newif\if@kana \@kanafalse +\newif\if@macro \@macrotrue +\newif\if@deluxe \@deluxefalse +\newif\if@replace \@replacetrue +\newif\if@bold \@boldfalse +\newif\if@burasage \@burasagefalse +\newif\if@newglyph \@newglyphfalse +\newif\if@otf@uplatex \@otf@uplatexfalse +\DeclareOption{nomacro}{\@macrofalse} +\DeclareOption{nomacros}{\@macrofalse} +\DeclareOption{noreplace}{\@replacefalse} +\DeclareOption{bold}{\@replacetrue\@boldtrue} +\DeclareOption{expert}{\@replacetrue\@kanatrue} +\DeclareOption{deluxe}{\@boldfalse\@replacetrue\@deluxetrue} +\DeclareOption{multi}{\AtEndOfPackage{\RequirePackage{mlutf}\RequirePackage{mlcid}}} +\DeclareOption{burasage}{\@burasagetrue} +\DeclareOption{uplatex}{\@otf@uplatextrue} +\DeclareOption{jis2004}{\@newglyphtrue} +\def\otf@JYn{\if@otf@uplatex JY2\else JY1\fi} +\def\otf@JTn{\if@otf@uplatex JT2\else JT1\fi} +\def\otf@pfx@{\if@otf@uplatex up\else \fi} +\def\brsg@pfx@{\if@burasage brsg\else\fi} +\def\nlck@sfx@{\if@newglyph n\else\fi} +\ProcessOptions\relax +%user interface +%force catcode of \" be 12 +\count@\catcode`\" +\catcode`\"=12 +\if@deluxe + \DeclareRobustCommand{\UTF}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\edef\reserved@b{\mgdefault}% + \ifx\k@family\reserved@a \kanjifamily{utfjg}\else\ifx\k@family\reserved@b + \kanjifamily{utfjmg}\else\kanjifamily{utfj}\fi\fi% + \uppercase{\set@character="#1}% + \endgroup% + } + \DeclareRobustCommand{\CID}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\edef\reserved@b{\mgdefault}% + \ifx\k@family\reserved@a \kanjifamily{cidjg}\else\ifx\k@family\reserved@b + \kanjifamily{cidjmg}\else\kanjifamily{cidj}\fi\fi% + \set@character=#1% + \endgroup% + } +\else + \DeclareRobustCommand{\UTF}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily{utfj}\uppercase{\set@character="#1}% + \endgroup% + } + \DeclareRobustCommand{\CID}[1]{\begingroup% + \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily{cidj}\set@character=#1% + \endgroup% + } +\fi +\gdef\Redefine@UTF{\@ifpackageloaded{hyperref}{% + \def\hyper@UTF##1{\ifHy@pdfstring\0x##1\else\csname UTF \endcsname{##1}\fi} + \def\UTF{\protect\hyper@UTF}}{} +} +\AtBeginDocument{\Redefine@UTF} +%internal macros +%macros by iNOUE Koich! +\newcommand\set@character{\afterassignment\put@character\@tempcnta} +\newcommand\put@character{% + \@tempcntb=\@tempcnta + \divide\@tempcntb by "1000 + \kanjishape{\ifcase\@tempcntb0\or1\or2\or3\or4\or5\or6\or7\or8\or9\or a\or b\or c\or d\or e\or f\fi}% + \selectfont% + \multiply\@tempcntb by "1000 + \advance\@tempcnta by -\@tempcntb + \@tempcntb=\@tempcnta + \divide\@tempcntb by "40 + \multiply\@tempcntb by "C0 + \advance\@tempcnta by \@tempcntb + \if@otf@uplatex + \advance\@tempcnta by "113030 + \char\@tempcnta% + \else + \advance\@tempcnta by "3030 + \char\jis\@tempcnta% + \fi +} +\catcode`\"=\count@ +%end of changing catcode of \" +\def\Declare@FontShape#1#2#3#4{% + \Declare@FontShapeEnc{\otf@JYn}{#1}{#2}{#4}{h}#3\@nil + \Declare@FontShapeEnc{\otf@JTn}{#1}{#2}{#4}{v}#3\@nil} +\def\Declare@FontShapeEnc#1#2#3#4#5#6{\ifx\@nil#6\else + \DeclareFontShape{#1}{#2}{#3}{#6}{<->s*[\utf@sc@le]#4#6-#5}{}% + \Declare@FontShape@Enc{#1}{#2}{#3}{#4}{#5}\fi} +\def\Declare@FontShape@Enc#1\fi{\fi\Declare@FontShapeEnc#1} +%for jsclasses +\newif\if@jsclasses \@jsclassesfalse +\@ifclassloaded{jsarticle}{\@jsclassestrue}{} +\@ifclassloaded{jsbook}{\@jsclassestrue}{} +\if@jsclasses\def\utf@sc@le{0.92469}\else\def\utf@sc@le{0.962216}\fi +%definitions of alt-normal font family +\if@replace + \DeclareErrorKanjiFont{\otf@JYn}{hmc}{m}{n}{10} + \DeclareKanjiSubstitution{\otf@JYn}{hmc}{m}{n} + \DeclareKanjiSubstitution{\otf@JTn}{hmc}{m}{n} + \DeclareKanjiFamily{\otf@JYn}{hmc}{} + \DeclareKanjiFamily{\otf@JTn}{hmc}{} + \DeclareKanjiFamily{\otf@JYn}{hgt}{} + \DeclareKanjiFamily{\otf@JTn}{hgt}{} + \DeclareRelationFont{\otf@JYn}{hmc}{m}{}{OT1}{cmr}{m}{} + \DeclareRelationFont{\otf@JTn}{hmc}{m}{}{OT1}{cmr}{m}{} + \DeclareRelationFont{\otf@JYn}{hmc}{bx}{}{OT1}{cmr}{bx}{} + \DeclareRelationFont{\otf@JTn}{hmc}{bx}{}{OT1}{cmr}{bx}{} + \if@deluxe + \DeclareRelationFont{\otf@JYn}{hgt}{m}{}{OT1}{cmss}{m}{} + \DeclareRelationFont{\otf@JTn}{hgt}{m}{}{OT1}{cmss}{m}{} + \DeclareRelationFont{\otf@JYn}{hgt}{bx}{}{OT1}{cmss}{bx}{} + \DeclareRelationFont{\otf@JTn}{hgt}{bx}{}{OT1}{cmss}{bx}{} + \else + \DeclareRelationFont{\otf@JYn}{hgt}{m}{}{OT1}{cmr}{bx}{} + \DeclareRelationFont{\otf@JTn}{hgt}{m}{}{OT1}{cmr}{bx}{} + \DeclareRelationFont{\otf@JYn}{hgt}{bx}{}{OT1}{cmr}{bx}{} + \DeclareRelationFont{\otf@JTn}{hgt}{bx}{}{OT1}{cmr}{bx}{} + \fi + \@ifpackageloaded{jisx0213}{\relax}{\def\mcdefault{hmc}\def\gtdefault{hgt}} + \@ifundefined{if@enablejfam}{%if disablejfam option is not available, do nothing. + }{% + \if@enablejfam + \if@compatibility\else + \DeclareSymbolFont{mincho}{\otf@JYn}{hmc}{m}{n} + \DeclareSymbolFontAlphabet{\mathmc}{mincho} + \SetSymbolFont{mincho}{bold}{\otf@JYn}{hmc}{bx}{n} + \DeclareMathAlphabet{\mathgt}{\otf@JYn}{hgt}{m}{n} + \SetMathAlphabet{\mathgt}{bold}{\otf@JYn}{hgt}{bx}{n} + \jfam\symmincho + \fi + \fi + } +\fi +\if@kana + \DeclareKanjiFamily{\otf@JYn}{ruby}{} + \DeclareKanjiFamily{\otf@JTn}{ruby}{} + \newcommand{\rubydefault}{ruby} + \if@deluxe + \DeclareKanjiFamily{\otf@JYn}{rubyg}{} + \DeclareKanjiFamily{\otf@JTn}{rubyg}{} + \DeclareRelationFont{\otf@JYn}{rubyg}{m}{}{OT1}{cmss}{m}{} + \DeclareRelationFont{\otf@JTn}{rubyg}{m}{}{OT1}{cmss}{m}{} + \DeclareRobustCommand\rubyfamily{\edef\reserved@a{\gtdefault}% + \edef\reserved@b{\mgdefault}% + \ifx\k@family\reserved@a \kanjifamily{rubyg}\else\ifx\k@family\reserved@b + \kanjifamily{rubymg}\else \kanjifamily{ruby}\fi\fi% + \selectfont} + \else + \DeclareRobustCommand\rubyfamily{\edef\reserved@a{\gtdefault}% + \ifx\k@family\reserved@a \kanjiseries{bx}\fi% + \kanjifamily\rubydefault\selectfont} + \fi + \AtBeginDocument{\ifx\rubykatuji\@undefined\else\def\rubykatuji{\rubyfamily\tiny}\fi} +\fi +%definition of normal font shape +\if@kana + \DeclareFontShape{\otf@JYn}{hmc}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expminr\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hmc}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expminr\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{ruby}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubyminr-h}{} + \DeclareFontShape{\otf@JTn}{ruby}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubyminr-v}{} +\else + \if@replace + \DeclareFontShape{\otf@JYn}{hmc}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlminr\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hmc}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlminr\nlck@sfx@-v}{} + \fi +\fi +\if@replace\if@deluxe + \if@kana + \DeclareFontShape{\otf@JYn}{hmc}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expminb\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hmc}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expminb\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expgothr\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expgothr\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{hgt}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expgothb\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hgt}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expgothb\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{ruby}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubyminb-h}{} + \DeclareFontShape{\otf@JTn}{ruby}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubyminb-v}{} + \DeclareFontShape{\otf@JYn}{rubyg}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubygothr-h}{} + \DeclareFontShape{\otf@JTn}{rubyg}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubygothr-v}{} + \DeclareFontShape{\otf@JYn}{rubyg}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubygothb-h}{} + \DeclareFontShape{\otf@JTn}{rubyg}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubygothb-v}{} + \else + \DeclareFontShape{\otf@JYn}{hmc}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlminb\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hmc}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlminb\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgothr\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgothr\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{hgt}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgothb\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hgt}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgothb\nlck@sfx@-v}{} + \fi +\else + \if@kana + \if@bold + \DeclareFontShape{\otf@JYn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expgothb\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expgothb\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{ruby}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubygothb\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{ruby}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubygothb\nlck@sfx@-v}{} + \else + \DeclareFontShape{\otf@JYn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expgothr\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expgothr\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{ruby}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubygothr\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{ruby}{bx}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubygothr\nlck@sfx@-v}{} + \fi + \else + \if@bold + \DeclareFontShape{\otf@JYn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgothb\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgothb\nlck@sfx@-v}{} + \else + \DeclareFontShape{\otf@JYn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgothr\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hgt}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgothr\nlck@sfx@-v}{} + \fi + \fi + \DeclareFontShape{\otf@JYn}{hmc}{bx}{n}{<->ssub*hgt/m/n}{} + \DeclareFontShape{\otf@JTn}{hmc}{bx}{n}{<->ssub*hgt/m/n}{} + \DeclareFontShape{\otf@JYn}{hgt}{bx}{n}{<->ssub*hgt/m/n}{} + \DeclareFontShape{\otf@JTn}{hgt}{bx}{n}{<->ssub*hgt/m/n}{} +\fi\fi +%definition of extra fonts: maru gothic family, light series, eb series, prop. shape +\if@deluxe + \def\mgdefault{mg} + \def\propdefault{prp} + \def\ebdefault{eb} + \def\ltdefault{l} + \DeclareKanjiFamily{\otf@JYn}{mg}{} + \DeclareKanjiFamily{\otf@JTn}{mg}{} + \DeclareRelationFont{\otf@JYn}{mg}{m}{}{OT1}{cmss}{m}{} + \DeclareRelationFont{\otf@JTn}{mg}{m}{}{OT1}{cmss}{m}{} + \DeclareMathAlphabet{\mathmg}{\otf@JYn}{mg}{m}{n} + \DeclareRobustCommand\mgfamily{\not@math@alphabet\mgfamily\mathmg% + \kanjifamily\mgdefault\selectfont} + \DeclareTextFontCommand{\textmg}{\mgfamily} + \DeclareKanjiFamily{\otf@JYn}{rubymg}{} + \DeclareKanjiFamily{\otf@JTn}{rubymg}{} + \DeclareRelationFont{\otf@JYn}{rubymg}{m}{}{OT1}{cmss}{m}{} + \DeclareRelationFont{\otf@JTn}{rubymg}{m}{}{OT1}{cmss}{m}{} + \DeclareRobustCommand\propshape + {\not@math@alphabet\propshape\relax + \kanjishape\propdefault\selectfont} + \DeclareRobustCommand\ebseries + {\not@math@alphabet\ebseries\relax + \kanjiseries\ebdefault\selectfont} + \DeclareRobustCommand\ltseries + {\not@math@alphabet\ltseries\relax + \kanjiseries\ltdefault\selectfont} + \if@kana + \DeclareFontShape{\otf@JYn}{mg}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expmgothr\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{mg}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expmgothr\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{rubymg}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubymgothr-h}{} + \DeclareFontShape{\otf@JTn}{rubymg}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubymgothr-v}{} + \DeclareFontShape{\otf@JYn}{hmc}{l}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expminl\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hmc}{l}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ expminl\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{ruby}{l}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubyminl-h}{} + \DeclareFontShape{\otf@JTn}{ruby}{l}{n}{<-> s * [\utf@sc@le] \otf@pfx@ rubyminl-v}{} + \else + \DeclareFontShape{\otf@JYn}{mg}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlmgothr\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{mg}{m}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlmgothr\nlck@sfx@-v}{} + \DeclareFontShape{\otf@JYn}{hmc}{l}{n}{<-> s * [\utf@sc@le] \otf@pfx@ nmlminl\nlck@sfx@-h}{} + \DeclareFontShape{\otf@JTn}{hmc}{l}{n}{<-> s * [\utf@sc@le] \otf@pfx@ nmlminl\nlck@sfx@-v}{} + \fi + \DeclareFontShape{\otf@JYn}{hgt}{eb}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgotheb-h}{} + \DeclareFontShape{\otf@JTn}{hgt}{eb}{n}{<-> s * [\utf@sc@le] \otf@pfx@ \brsg@pfx@ nmlgotheb-v}{} + \DeclareFontShape{\otf@JYn}{hmc}{m}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phiraminw3-h}{} + \DeclareFontShape{\otf@JYn}{hmc}{bx}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phiraminw6-h}{} + \DeclareFontShape{\otf@JYn}{hgt}{m}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phirakakuw3-h}{} + \DeclareFontShape{\otf@JYn}{hgt}{bx}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phirakakuw6-h}{} + \DeclareFontShape{\otf@JYn}{mg}{m}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phiramaruw4-h}{} + \DeclareFontShape{\otf@JTn}{hmc}{m}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phiraminw3-v}{} + \DeclareFontShape{\otf@JTn}{hmc}{bx}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phiraminw6-v}{} + \DeclareFontShape{\otf@JTn}{hgt}{m}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phirakakuw3-v}{} + \DeclareFontShape{\otf@JTn}{hgt}{bx}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phirakakuw6-v}{} + \DeclareFontShape{\otf@JTn}{mg}{m}{prp}{<-> s * [\utf@sc@le] \otf@pfx@ phiramaruw4-v}{} +\fi +%definition of normal utf/cid fonts +\DeclareKanjiFamily{\otf@JYn}{utfj}{} +\DeclareKanjiFamily{\otf@JTn}{utfj}{} +\DeclareKanjiFamily{\otf@JYn}{cidj}{} +\DeclareKanjiFamily{\otf@JTn}{cidj}{} +\Declare@FontShape{utfj}{m}{0123456789abcdef}{utfjmr\nlck@sfx@} +\Declare@FontShape{cidj}{m}{012345}{cidjmr} +%definition of other utf/cid fonts +\if@deluxe + \Declare@FontShape{utfj}{bx}{0123456789abcdef}{utfjmb\nlck@sfx@} + \Declare@FontShape{cidj}{bx}{012345}{cidjmb} + \DeclareKanjiFamily{\otf@JYn}{utfjg}{} + \DeclareKanjiFamily{\otf@JTn}{utfjg}{} + \DeclareKanjiFamily{\otf@JYn}{cidjg}{} + \DeclareKanjiFamily{\otf@JTn}{cidjg}{} + \Declare@FontShape{utfjg}{m}{0123456789abcdef}{utfjgr\nlck@sfx@} + \Declare@FontShape{cidjg}{m}{012345}{cidjgr} + \Declare@FontShape{utfjg}{bx}{0123456789abcdef}{utfjgb\nlck@sfx@} + \Declare@FontShape{cidjg}{bx}{012345}{cidjgb} + \DeclareKanjiFamily{\otf@JYn}{utfjmg}{} + \DeclareKanjiFamily{\otf@JTn}{utfjmg}{} + \DeclareKanjiFamily{\otf@JYn}{cidjmg}{} + \DeclareKanjiFamily{\otf@JTn}{cidjmg}{} + \Declare@FontShape{utfjmg}{m}{0123456789abcdef}{utfjmgr\nlck@sfx@} + \Declare@FontShape{cidjmg}{m}{012345}{cidjmgr} + \Declare@FontShape{utfj}{l}{0123456789abcdef}{utfjml\nlck@sfx@} + \Declare@FontShape{cidj}{l}{012345}{cidjml} +\else + \if@bold + \Declare@FontShape{utfj}{bx}{0123456789abcdef}{utfjgb\nlck@sfx@} + \Declare@FontShape{cidj}{bx}{012345}{cidjgb} + \else + \Declare@FontShape{utfj}{bx}{0123456789abcdef}{utfjgr\nlck@sfx@} + \Declare@FontShape{cidj}{bx}{012345}{cidjgr} + \fi +\fi +\if@macro + %input ajmacros.sty + \IfFileExists{ajmacros.sty}{\RequirePackage{ajmacros}}{\PackageError{otf}{No File ajmacros.sty!}{}}%2003/03/12 + %for literature + \DeclareRobustCommand\ajKunoji{\iftdir\mbox{\UTF{3033}\UTF{3035}}\else + \PackageError{otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12 + \fi} + \DeclareRobustCommand\ajKunojiwithBou{\iftdir\mbox{\bou{\mbox{\UTF{3033}}}\bou{\mbox{\UTF{3035}}}}\else + \PackageError{otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12 + \fi} + \DeclareRobustCommand\ajDKunoji{\iftdir\mbox{\UTF{3034}\UTF{3035}}\else + \PackageError{otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12 + \fi} + \DeclareRobustCommand\ajDKunojiwithBou{\iftdir\mbox{\bou{\mbox{\UTF{3034}}}\bou{\mbox{\UTF{3035}}}}\else + \PackageError{otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12 + \fi} + \newcommand\ajNinoji{\CID{12106}} + \newcommand\ajvarNinoji{\iftdir\CID{12107}\else + \PackageError{otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12 + \fi} + \newcommand\ajYusuriten{\iftdir\CID{16193}\else + \PackageError{otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12 + \fi} + \newcommand\ajMasu{\UTF{303c}} + \newcommand\ajYori{\UTF{309f}} + \newcommand\ajKoto{\UTF{30ff}} + \newcommand\ajUta{\UTF{303d}} + %dingbats + \newcommand\ajCommandKey{\UTF{2318}} + \newcommand\ajReturnKey{\UTF{23ce}} + \newcommand\ajCheckmark{\UTF{2713}} + \newcommand\ajVisibleSpace{\UTF{2423}} + \newcommand\ajSenteMark{\UTF{2617}} + \newcommand\ajGoteMark{\UTF{2616}} + \newcommand\ajClub{\UTF{2663}} + \newcommand\ajHeart{\UTF{2661}} + \newcommand\ajSpade{\UTF{2660}} + \newcommand\ajDiamond{\UTF{2662}} + \newcommand\ajvarClub{\UTF{2667}} + \newcommand\ajvarHeart{\UTF{2665}} + \newcommand\ajvarSpade{\UTF{2664}} + \newcommand\ajvarDiamond{\UTF{2666}} + \newcommand\ajPhone{\UTF{260e}} + \newcommand\ajPostal{\UTF{3020}} + \newcommand\ajvarPostal{\UTF{3036}} + \newcommand\ajSun{\UTF{2600}} + \newcommand\ajCloud{\UTF{2601}} + \newcommand\ajUmbrella{\UTF{2602}} + \newcommand\ajSnowman{\UTF{2603}} + \newcommand\ajJIS{\UTF{3004}} + \newcommand\ajJAS{\CID{12088}} + \newcommand\ajBall{\CID{12097}} + \newcommand\ajHotSpring{\UTF{2668}} + \newcommand\ajWhiteSesame{\UTF{fe46}} + \newcommand\ajBlackSesame{\UTF{fe45}} + \newcommand\ajWhiteFlorette{\UTF{2740}} + \newcommand\ajBlackFlorette{\UTF{273f}} + \newcommand\ajRightBArrow{\CID{8206}} + \newcommand\ajLeftBArrow{\CID{8207}} + \newcommand\ajUpBArrow{\CID{8208}} + \newcommand\ajDownBArrow{\CID{8209}} + \newcommand\ajRightHand{\CID{8219}} + \newcommand\ajLeftHand{\CID{8220}} + \newcommand\ajUpHand{\CID{8221}} + \newcommand\ajDownHand{\CID{8222}} + \newcommand\ajRightScissors{\CID{12176}} + \newcommand\ajLeftScissors{\CID{12175}} + \newcommand\ajUpScissors{\CID{12177}} + \newcommand\ajDownScissors{\CID{12178}} + \newcommand\ajRightWArrow{\CID{12197}} + \newcommand\ajLeftWArrow{\CID{12196}} + \newcommand\ajUpWArrow{\CID{12198}} + \newcommand\ajDownWArrow{\CID{12199}} + \newcommand\ajRightDownArrow{\CID{12202}} + \newcommand\ajLeftDownArrow{\CID{12203}} + \newcommand\ajLeftUpArrow{\CID{12204}} + \newcommand\ajRightUpArrow{\CID{12205}} +\fi +\endinput diff --git a/Master/texmf-dist/tex/platex/japanese-otf/redeffont.sty b/Master/texmf-dist/tex/platex/japanese-otf/redeffont.sty new file mode 100644 index 00000000000..99ef3b0caea --- /dev/null +++ b/Master/texmf-dist/tex/platex/japanese-otf/redeffont.sty @@ -0,0 +1,211 @@ +\NeedsTeXFormat{pLaTeX2e} +\ProvidesPackage{redeffont}[2004/01/19 v1.2.2 psitau] + +\newif\if@asciiclasses \@asciiclassesfalse +\newif\if@articleclass \@articleclassfalse +\newif\if@bookclass \@bookclassfalse +\@ifclassloaded{jarticle}{\@asciiclassestrue\@articleclasstrue}{} +\@ifclassloaded{jbook}{\@asciiclassestrue\@bookclasstrue}{} +\@ifclassloaded{jreport}{\@asciiclassestrue}{} +\@ifclassloaded{tarticle}{\@asciiclassestrue\@articleclasstrue}{} +\@ifclassloaded{tbook}{\@asciiclassestrue\@bookclasstrue}{} +\@ifclassloaded{treport}{\@asciiclassestrue}{} + +\if@asciiclasses \else \endinput\fi +\def\otf@tmp{\newif\if@mainmatter} +\if@articleclass\otf@tmp\fi + +\def\headfont{\gtfamily\bfseries} +\def\part@head@font{\headfont} +\def\chapter@head@font{\headfont} +\def\section@head@font{\headfont} +\def\subsection@head@font{\headfont} +\def\subsubsection@head@font{\headfont} +\def\paragraph@head@font{\headfont} +\def\subparagraph@head@font{\headfont} +\def\abstract@head@font{\headfont} +\def\description@label@font{\headfont} +\def\toc@part@font{\headfont} +\def\toc@chapter@font{\headfont} +\def\toc@section@font{\headfont} +\renewcommand{\section}{\@startsection{section}{1}{\z@}% + {1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}% + {.5\Cvs \@plus.3\Cdp}% + {\reset@font\Large\section@head@font}}%changed +\renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}% + {1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}% + {.5\Cvs \@plus.3\Cdp}% + {\reset@font\large\subsection@head@font}}%changed +\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}% + {1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}% + {.5\Cvs \@plus.3\Cdp}% + {\reset@font\normalsize\subsubsection@head@font}}%changed +\renewcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% + {3.25ex \@plus 1ex \@minus .2ex}% + {-1em}% + {\reset@font\normalsize\paragraph@head@font}}%changed +\renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}% + {3.25ex \@plus 1ex \@minus .2ex}% + {-1em}% + {\reset@font\normalsize\subparagraph@head@font}}%changed +\renewcommand{\descriptionlabel}[1]{% + \hspace\labelsep\normalfont\description@label@font#1}%changed + +\if@bookclass \relax\else + \if@titlepage + \renewenvironment{abstract}{% + \titlepage + \null\vfil + \@beginparpenalty\@lowpenalty + \begin{center}% + {\abstract@head@font\abstractname}%changed + \@endparpenalty\@M + \end{center}}% + {\par\vfil\null\endtitlepage} + \else + \renewenvironment{abstract}{% + \if@twocolumn + \section*{\abstractname}% + \else + \small + \begin{center}% + {\abstract@head@font\abstractname\vspace{-.5em}\vspace{\z@}}%changed + \end{center}% + \quotation + \fi}{\if@twocolumn\else\endquotation\fi} + \fi +\fi%end of \if@bookclass + +\if@articleclass +\def\@part[#1]#2{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{part}% + \addcontentsline{toc}{part}{% + \prepartname\thepart\postpartname\hspace{1zw}#1}% + \else + \addcontentsline{toc}{part}{#1}% + \fi + \markboth{}{}% + {\parindent\z@\raggedright + \interlinepenalty\@M\reset@font + \ifnum \c@secnumdepth >\m@ne + \Large\part@head@font\prepartname\thepart\postpartname%changed + \par\nobreak + \fi + \huge\part@head@font#2\par}%changed + \nobreak\vskip3ex\@afterheading} +\def\@spart#1{{% + \parindent\z@\raggedright + \interlinepenalty\@M\reset@font + \huge\part@head@font#1\par}%changed + \nobreak\vskip3ex\@afterheading} +\renewcommand*{\l@part}[2]{% + \ifnum \c@tocdepth >-2\relax + \addpenalty{\@secpenalty}% + \addvspace{2.25em \@plus\p@}% + \begingroup + \parindent\z@\rightskip\@pnumwidth + \parfillskip-\@pnumwidth + {\leavevmode\large\toc@part@font%changed + \setlength\@lnumwidth{4zw}% + #1\hfil\nobreak + \hbox to\@pnumwidth{\hss#2}}\par + \nobreak + \if@compatibility + \global\@nobreaktrue + \everypar{\global\@nobreakfalse\everypar{}}% + \fi + \endgroup + \fi} +\renewcommand*{\l@section}[2]{% + \ifnum \c@tocdepth >\z@ + \addpenalty{\@secpenalty}% + \addvspace{1.0em \@plus\p@}% + \begingroup + \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip + \leavevmode\toc@section@font%changed + \setlength\@lnumwidth{1.5em}% + \advance\leftskip\@lnumwidth \hskip-\leftskip + #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par + \endgroup + \fi} + +\else%\if@articleclass-->false + +\def\@part[#1]#2{% + \ifnum \c@secnumdepth >-2\relax + \refstepcounter{part}% + \addcontentsline{toc}{part}{% + \prepartname\thepart\postpartname\hspace{1em}#1}% + \else + \addcontentsline{toc}{part}{#1}% + \fi + \markboth{}{}% + {\centering + \interlinepenalty\@M\reset@font + \ifnum \c@secnumdepth >-2\relax + \huge\part@head@font\prepartname\thepart\postpartname%changed + \par\vskip20\p@ + \fi + \Hugepart@head@font#2\par}%changed + \@endpart} +\def\@spart#1{{% + \centering + \interlinepenalty\@M\reset@font + \Huge\part@head@font#1\par}%changed + \@endpart} +\renewcommand*{\l@part}[2]{% + \ifnum \c@tocdepth >-2\relax + \addpenalty{-\@highpenalty}% + \addvspace{2.25em \@plus\p@}% + \begingroup + \parindent\z@\rightskip\@pnumwidth + \parfillskip-\@pnumwidth + {\leavevmode\large\toc@part@font%changed + \setlength\@lnumwidth{4zw}% + #1\hfil\nobreak + \hbox to\@pnumwidth{\hss#2}}\par + \nobreak + \global\@nobreaktrue + \everypar{\global\@nobreakfalse\everypar{}}% + \endgroup + \fi} +\renewcommand*{\l@chapter}[2]{% + \ifnum \c@tocdepth >\m@ne + \addpenalty{-\@highpenalty}% + \addvspace{1.0em \@plus\p@}% + \begingroup + \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip + \leavevmode\toc@chapter@font%changed + \setlength\@lnumwidth{4zw}% + \advance\leftskip\@lnumwidth \hskip-\leftskip + #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par + \penalty\@highpenalty + \endgroup + \fi} +\def\@makechapterhead#1{\hbox{}% + \vskip2\Cvs + {\parindent\z@ + \raggedright + \reset@font\huge\chapter@head@font%changed + \leavevmode + \ifnum \c@secnumdepth >\m@ne + \setlength\@tempdima{\linewidth}% + \if@mainmatter + \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1zw}% + \addtolength\@tempdima{-\wd\z@}% + \unhbox\z@\nobreak + \fi + \vtop{\hsize\@tempdima#1}% + \else + #1\relax + \fi}\nobreak\vskip3\Cvs} +\def\@makeschapterhead#1{\hbox{}% + \vskip2\Cvs + {\parindent\z@ + \raggedright + \reset@font\huge\chapter@head@font%changed + \leavevmode + \setlength\@tempdima{\linewidth}% + \vtop{\hsize\@tempdima#1}}\vskip3\Cvs} +\fi%end of \if@articleclass |