diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty b/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty index ab84e0daf32..617a3b8589d 100644 --- a/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty +++ b/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty @@ -17,7 +17,7 @@ % Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, % MA 02110-1301 USA -\ProvidesPackage{cjkutf8-josa}[2013/02/23 v1.0 Auto-Josa for CJKutf8] +\ProvidesPackage{cjkutf8-josa}[2013/12/06 v1.3 Automatic Josa selection for cjk-ko] \AtBeginDocument{ \ifx\use@josa\undefined\else @@ -26,10 +26,10 @@ \def\@setref#1#2#3{\CJKKO@orig@setref{#1}{#2}{#3}% \bgroup \ifx#1\relax\else - \ifx\protect\relax % not from kotexutf - \let\protect\noexpand % not from kotexutf - \xdef\josa@str{\expandafter#2#1}% - \fi + \ifx\protect\relax % not from kotexutf + \let\protect\noexpand % not from kotexutf + \xdef\josa@str{\expandafter#2#1}% + \fi \fi \egroup} % redefine \@cite@ofmt @@ -54,18 +54,14 @@ }}{} } -\let\josa@str\empty - %%% user commands: \jong \jung \rieul -\DeclareRobustCommand*\jong {\chardef\@josa\z@} -\DeclareRobustCommand*\rieul{\chardef\@josa\@ne} -\DeclareRobustCommand*\jung {\chardef\@josa\tw@} +\protected\def\jong {\let\josa@str\empty\chardef\@josa\z@ } +\protected\def\rieul{\let\josa@str\empty\chardef\@josa\@ne} +\protected\def\jung {\let\josa@str\empty\chardef\@josa\tw@} \jung \def\makejosa#1#2{% \bgroup - % \jong etc in \josa@str is now unprotected - \def\jong{\chardef\@josa\z@}\def\rieul{\chardef\@josa\@ne}% \expandafter\make@josa\josa@str\@nil{#1}{#2}% \egroup} @@ -86,8 +82,9 @@ \ifx\@let@token L\rieul\else \ifx\@let@token M\jong \else \ifx\@let@token N\jong \else - \ifx\@let@token\jong \jong\else - \ifx\@let@token\rieul\rieul + \ifx\@let@token\jong \jong \else + \ifx\@let@token\rieul\rieul\else + \jung \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi \expandafter\make@josa \fi} |