summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-12-22 01:30:06 +0000
committerKarl Berry <karl@freefriends.org>2006-12-22 01:30:06 +0000
commitea061adb20c4ae597923c35fa17dbd1a40874878 (patch)
tree09cb7e4f24cf2c99c9ea6a2d28d1a43cf1946a4d /Master/texmf-dist/tex/latex/hyperref/hyperref.sty
parent495de94e4661ce50b1b7937ec438b604a8c39bf5 (diff)
hyperref update (22dec06)
git-svn-id: svn://tug.org/texlive/trunk@2841 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hyperref.sty65
1 files changed, 41 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index 192a17e954b..594ae40d739 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -23,7 +23,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hyperref}
- [2006/11/30 v6.75h
+ [2006/12/21 v6.75i
Hypertext links for LaTeX]
\begingroup
\@makeother\`%
@@ -1197,33 +1197,50 @@
\number\dimexpr.25\dimexpr #2sp - 32\dimexpr#3sp\relax\relax\relax
% ...
}%
- \def\HyPsd@unichar#1{%
- \expandafter\HyPsd@@unichar\string#1\@empty\@empty\@empty\@nil
- }%
- \def\HyPsd@@unichar #1-#2-#3#4#5#6\@nil{%
- \ifnum#2>191 %
- \ifnum#2<224 %
- \expandafter\HyPsd@UTFviii@@two
- \number\dimexpr.25\dimexpr#2sp\expandafter\relax\expandafter|%
- \number#2\expandafter|%
- \number\dimexpr.125\dimexpr`#3sp\expandafter\relax\expandafter|%
- \number`#3 \@nil
+ \def\HyPsd@unichar#1{%
+ \ifHy@unicode
+ \ifnum#1>"FFFF %
+ \HyPsd@UnicodeReplacementCharacter % unsupported
+ \else
+ \ifnum#1>"7FF %
+ \9%
+ \expandafter\HyPsd@unichar@first@byte\expandafter{%
+ \number
+ \dimexpr.00390625\dimexpr\number#1sp\relax\relax
+ }%
\else
- \ifnum#2<240 %
- \expandafter\HyPsd@UTFviii@@three
- \number\dimexpr.25\dimexpr#2sp\expandafter\relax\expandafter|%
- \number#2\expandafter|%
- \number\ifnum\numexpr`#3-128\relax <32 0\else 1\fi\expandafter|%
- \number\dimexpr.25\dimexpr`#3sp\expandafter\relax\expandafter|%
- \number`#3\expandafter|%
- \number\dimexpr.125\dimexpr`#4sp\expandafter\relax\expandafter|%
- \number`#4 \@nil
- \else
- ?% unsupported
- \fi
+ \8%
+ \number\dimexpr.00390625\dimexpr\number#1sp\relax\relax
\fi
+ \expandafter\HyPsd@unichar@second@byte\expandafter{%
+ \number
+ \numexpr#1-256*\number
+ \dimexpr.00390625\dimexpr\number#1sp\relax\relax\relax
+ }%
\fi
+ \else
+ .% unsupported (Unicode -> PDF Doc Encoding)
+ \fi
+ }%
+ \def\HyPsd@UnicodeReplacementCharacter{\9377\375}
+ \def\HyPsd@unichar@first@byte#1{%
+ \number\dimexpr.015625\dimexpr#1sp\relax\relax
+ \expandafter\HyPsd@unichar@octtwo\expandafter{%
+ \number
+ \numexpr#1-64*\number\dimexpr.015625\dimexpr#1sp\relax\relax\relax
}%
+ }%
+ \def\HyPsd@unichar@second@byte#1{%
+ \csname\number\dimexpr.015625\dimexpr#1sp\relax\relax\endcsname
+ \expandafter\HyPsd@unichar@octtwo\expandafter{%
+ \number
+ \numexpr#1-64*\number\dimexpr.015625\dimexpr#1sp\relax\relax\relax
+ }%
+ }%
+ \def\HyPsd@unichar@octtwo#1{%
+ \number\dimexpr.125\dimexpr#1sp\relax\relax
+ \number\numexpr#1-8*\number\dimexpr.125\dimexpr#1sp\relax\relax\relax
+ }%
\fi
\@ifclassloaded{memoir}{%
\AtEndOfPackage{\RequirePackage{memhfixc}}%