summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-07-19 21:38:03 +0000
committerKarl Berry <karl@freefriends.org>2015-07-19 21:38:03 +0000
commit850af31b5b6243e004ca278cf1714adda71653cc (patch)
treeb5ce17de5b182dece965d80bf53890fd7e0222df /Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty
parentc266a6c654046449cd5fe43094cbd0eafd37fc4e (diff)
kotex-utf (19jul15)
git-svn-id: svn://tug.org/texlive/trunk@37900 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty')
-rw-r--r--Master/texmf-dist/tex/latex/kotex-utf/kotexutf.sty16
1 files changed, 15 insertions, 1 deletions
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