summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-12-06 22:13:16 +0000
committerKarl Berry <karl@freefriends.org>2013-12-06 22:13:16 +0000
commit12667237913177a3776303787aaea92ded17cdd0 (patch)
treea4edd3e567825a1ebf504e5faecf89bad027e7c3 /Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-josa.sty
parentcfbdc127e742f1a0758482a6e7c5f00985127ff6 (diff)
cjk-ko (6dec13)
git-svn-id: svn://tug.org/texlive/trunk@32342 c570f23f-e606-0410-a88d-b1316a301751
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.sty25
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}