From c315a97c1ef0e0b117ea0e42ab1815a367033107 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Wed, 25 Aug 2010 09:26:33 +0000 Subject: [PATCH] (ucssip): New KanjiFamily and FontShape. (urui6): Use JY2. (\ThaiTIS): Use "{...}" to omit settlement code to reselect T1 encoding. (\CyrillicScript): Likewise. (\GreekScript): Likewise. (\Hook): New command. (\Horn): New command. (\LATINeng): New command. (\IPAepsilon): New command. (\IPAiota): New command. (\IPArevfishhookr): New command. --- uplatex/chiseotf.sty | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/uplatex/chiseotf.sty b/uplatex/chiseotf.sty index 2714350..9c8c747 100644 --- a/uplatex/chiseotf.sty +++ b/uplatex/chiseotf.sty @@ -3,16 +3,16 @@ \RequirePackage[multi]{otf} -\DeclareKanjiFamily{\otf@JYn}{urui6}{} -\DeclareKanjiFamily{\otf@JTn}{urui6}{} -\Declare@FontShape{urui6}{m}{0123456789abcdef}{urui6} -\Declare@FontShape{urui6}{bx}{0123456789abcdef}{urui6} +\DeclareKanjiFamily{JY2}{ucssip}{} +\DeclareFontShape{JY2}{ucssip}{m}{n}{<->s*upucssip-h}{} +\DeclareFontShape{JY2}{ucssip}{bx}{n}{<->ssub*gt/m/n}{} +\DeclareRobustCommand{\UCSsip}[1]{{\kanjifamily{ucssip}\selectfont\kchar"#1}} +\DeclareRobustCommand{\ucsSIP}[1]{{\kanjifamily{ucssip}\selectfont\kchar"2#1}} -\DeclareRobustCommand{\Ruimoku}[1]{\begingroup% - \edef\reserved@a{\gtdefault}\ifx\k@family\reserved@a \kanjiseries{bx}\fi% - \kanjifamily{urui6}\uppercase{\set@character="#1}% - \endgroup% -} +\DeclareKanjiFamily{JY2}{urui6}{} +\DeclareFontShape{JY2}{urui6}{m}{n}{<->s*urui6-h}{} +\DeclareFontShape{JY2}{urui6}{bx}{n}{<->ssub*gt/m/n}{} +\DeclareRobustCommand{\Ruimoku}[1]{{\kanjifamily{urui6}\selectfont\kchar"#1}} \DeclareKanjiFamily{\otf@JYn}{uhzk1}{} \DeclareKanjiFamily{\otf@JTn}{uhzk1}{} @@ -311,6 +311,14 @@ \newcommand{\UCSks}[1]{\UTFK{#1}} \newcommand{\UCScns}[1]{\UTFT{#1}} \newcommand{\AdobeJP}[1]{\CID{#1}} -\newcommand{\ThaiTIS}[1]{\fontencoding{LTH}\selectfont\char"#1\fontencoding{T1}\selectfont} -\newcommand{\CyrillicScript}[1]{\fontencoding{T2A}\selectfont{}#1\fontencoding{T1}\selectfont{}} -\newcommand{\GreekScript}[1]{\fontencoding{LGR}\selectfont{}#1\fontencoding{T1}\selectfont{}} +\newcommand{\ThaiTIS}[1]{{\fontencoding{LTH}\selectfont\char"#1}} +\newcommand{\CyrillicScript}[1]{{\fontencoding{T2A}\selectfont{}#1}} +\newcommand{\GreekScript}[1]{{\fontencoding{LGR}\selectfont{}#1}} + +\newcommand{\Hook}[1]{\foreignlanguage{vietnam}{\h{#1}}} +\newcommand{\Horn}[1]{\foreignlanguage{vietnam}{\horn{#1}}} + +\newcommand{\LATINeng}{{\\usefont{T1}{pxr}{m}{n}\\ng}} +\newcommand{\IPAepsilon}{{\fontencoding{T3}\selectfont{}\char69}} +\newcommand{\IPAiota}{{\fontencoding{T3}\selectfont{}\char204}} +\newcommand{\IPArevfishhookr}{\textlhti} -- 1.7.10.4