From 850af31b5b6243e004ca278cf1714adda71653cc Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 19 Jul 2015 21:38:03 +0000 Subject: kotex-utf (19jul15) git-svn-id: svn://tug.org/texlive/trunk@37900 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/tex/latex/kotex-utf') 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 -- cgit v1.2.3