diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/kotex-utf/ChangeLog | 9 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty | 16 |
2 files changed, 23 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/kotex-utf/ChangeLog b/Master/texmf-dist/doc/latex/kotex-utf/ChangeLog index 36f8dc8c4c4..95fb0ac10fb 100644 --- a/Master/texmf-dist/doc/latex/kotex-utf/ChangeLog +++ b/Master/texmf-dist/doc/latex/kotex-utf/ChangeLog @@ -1,4 +1,11 @@ -2015-04-19 Dohyun Kim <nomos at ktug org> +2015-07-18 Dohyun Kim <nomos at ktug org> + + Version 2.1.1 + + * kotexutf.sty: unprotect protected chars for hyperref solving the bug + reported at http://www.ktug.org/xe/index.php?document_srl=210907 + +2015-04-19 Dohyun Kim <nomos at ktug org> Version 2.1.0 diff --git a/Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty b/Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty index 3b73417d50b..7b784a770ce 100644 --- a/Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty +++ b/Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty @@ -12,7 +12,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{kotexutf} - [2013/10/20 v1.5 typesetting UTF-8 Korean documents] + [2015/07/18 v2.1.1 typesetting UTF-8 Korean documents] \newif\if@nonfrench \newif\if@hangul @@ -496,10 +496,24 @@ }{}% } +% for pdfstring, we should unprotect protected characters +\def\unihangul@unprotect@range#1#2#3{% #1: begin range + \count@ "#1\relax % #2: end range + \loop % #3: two/three/four + \begingroup + \lccode`\~\count@ + \lowercase{\endgroup + \def~{\csname unihangul@#3@octets\endcsname~}}% + \ifnum\count@<"#2\relax \advance\count@\@ne + \repeat +} %% use hyperref's unichar support \unless\ifdefined\pdfstringdefPreHook \let\pdfstringdefPreHook\@empty\fi \g@addto@macro\pdfstringdefPreHook{% + \unihangul@unprotect@range{C2}{DF}{two}% + \unihangul@unprotect@range{E0}{EF}{three}% + \unihangul@unprotect@range{F0}{F4}{four}% \let\unihangulchar\HyPsd@unichar \let\makejosa\@secondoftwo \let\dotemph\@firstofone |