diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty b/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty index ab91a456616..8d3e9436381 100644 --- a/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty +++ b/Master/texmf-dist/tex/latex/cjk-ko/cjkutf8-ko.sty @@ -1,6 +1,6 @@ % cjkutf8-ko.sty % -% Copyright (c) 2015 Dohyun Kim <nomos at ktug org> +% Copyright (c) 2016 Dohyun Kim <nomos at ktug org> % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ % Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, % MA 02110-1301 USA -\ProvidesPackage{cjkutf8-ko}[2015/07/18 v1.7 Hangul typesetting on CJKutf8] +\ProvidesPackage{cjkutf8-ko}[2016/04/04 v1.8 Hangul typesetting on CJKutf8] \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname eTeXversion\endcsname\relax @@ -35,10 +35,11 @@ \DeclareOption{usecjkt1font}{\let\usecjk@@font\empty\@hangultrue} \DeclareOption{usedotemph}{\let\usedot@mph\empty} \DeclareOption{nojosa}{\let\use@josa\undefined} +\DeclareOption{truetype}{\let\use@cjk@cmap@\relax} \DeclareOption*{\expandafter\CJKKO@userfont@option\CurrentOption=\end} \def\CJKKO@userfont@option#1=#2\end{% \ifx\empty#2\empty - \PackageError{cjkutf8-ko}{Option not used: #1}{} + \PassOptionsToPackage{#1}{CJKutf8} \else \def\reserved@a{mj}\def\reserved@b{gt}\def\reserved@c{#1} \ifx\reserved@a\reserved@c @@ -81,7 +82,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%% % font settings \ifx\usecjk@@font\undefined\else - \RequirePackage[T1]{fontenc} + \PassOptionsToPackage{T1}{CJKutf8} \RequirePackage{textcomp} \IfFileExists{t1\CJKKO@mjfont.fd}{\let\rmdefault\CJKKO@mjfont}{} \IfFileExists{t1\CJKKO@gtfont.fd}{\let\sfdefault\CJKKO@gtfont}{} @@ -409,13 +410,15 @@ %\fi %%%%%%%%%%%%%%%%%%%%%%%%% -%%% disable cmap by CJK. -%%% instead try to use pdftex's pdfgentounicode +%%% use pdftex's pdfgentounicode \ifpdf - \let\CJK@addcmap\@gobble \ifx\pdfgentounicode\undefined\else - \pdfgentounicode\@ne - \InputIfFileExists{glyphtounicode}{}{} + \ifx\use@cjk@cmap@\relax\else + \InputIfFileExists{glyphtounicode}{% + \let\CJK@addcmap\@gobble + \pdfgentounicode\@ne + }{} + \fi \fi \fi @@ -428,8 +431,8 @@ %%% still conflicts with package verbments. %%% so now we make utf8 characters robust. \count@"C2 \loop - \uccode\count@\z@ - \lccode\count@\z@ + \uccode\count@\count@ + \lccode\count@\count@ \begingroup \lccode`\~\count@ \lowercase{\endgroup @@ -449,5 +452,15 @@ % and dotemph as well \let\dotemph\@firstofone } +% protect against lowercase +\count@"80 \loop + \uccode\count@\count@ + \lccode\count@\count@ +\ifnum\count@<"BF \advance\count@\@ne \repeat + +%%% ignore variation selectors for korean hanja +\DeclareUnicodeCharacter{FE00}{} +\DeclareUnicodeCharacter{FE01}{} +\DeclareUnicodeCharacter{FE02}{} \endinput |