[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#367842: tetex-extra: hyperref handles some characters incorrectly when unicode bookmarks are used



Package: tetex-extra
Version: 3.0-17
Severity: normal
Tags: patch

 hyperref handles some characters (mainly those that are not letters) incorrectly
when unicode bookmarks are used, as in attached example. You can compile it
with pdflatex and than look at it in acroread or evince (compare text on
document pages and in bookmars).
 Attached patch fixes this problem for all symbols listed in example, it
also removes one of entries for /textbeta (there is another one in the
same file).

-- Package-specific info:
##################################
minimal input file
  attached

##################################
other files

######################################
 List of ls-R files

-rw-r--r-- 1 root users 1129 2006-05-18 14:57 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root staff 25 2005-12-10 19:49 /usr/local/share/texmf/ls-R -> /var/lib/texmf/ls-R-LOCAL
lrwxrwxrwx 1 root root 29 2006-05-18 04:22 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 35 2006-03-25 19:01 /usr/share/texmf-tetex/ls-R -> /var/lib/texmf/ls-R-TEXMFDIST-TETEX

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-rc4-me
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8)

Versions of packages tetex-extra depends on:
ii  dpkg                          1.13.19    package maintenance system for Deb
ii  tetex-base                    3.0-17     Basic library files of teTeX
ii  tetex-bin                     3.0-16     The teTeX binary files
ii  ucf                           2.0010     Update Configuration File: preserv

tetex-extra recommends no packages.

-- no debconf information
diff -urN tetex-base-3.0/tex/latex/hyperref/puenc.def tetex-base-3.0-fixes/tex/latex/hyperref/puenc.def
--- tetex-base-3.0/tex/latex/hyperref/puenc.def	2004-03-14 13:00:23.000000000 +0200
+++ tetex-base-3.0-fixes/tex/latex/hyperref/puenc.def	2006-05-18 15:44:42.000000000 +0300
@@ -81,29 +81,29 @@
 \DeclareTextCommand{\textbar}{PU}{|} % bar
 \DeclareTextCommand{\textbraceright}{PU}{\80\175} % braceright
 \DeclareTextCommand{\textasciitilde}{PU}{\80\176} % asciitilde
-\DeclareTextCommand{\textbullet}{PU}{\80\200} % bullet
-\DeclareTextCommand{\textdagger}{PU}{\80\201} % dagger
-\DeclareTextCommand{\textdaggerdbl}{PU}{\80\202} % daggerdbl
-\DeclareTextCommand{\textellipsis}{PU}{\80\203} % ellipsis
-\DeclareTextCommand{\textemdash}{PU}{\80\204} % emdash
-\DeclareTextCommand{\textendash}{PU}{\80\205} % endash
-\DeclareTextCommand{\textflorin}{PU}{\80\206} % florin
+\DeclareTextCommand{\textbullet}{PU}{\9040\042} % bullet
+\DeclareTextCommand{\textdagger}{PU}{\9040\040} % dagger
+\DeclareTextCommand{\textdaggerdbl}{PU}{\9040\041} % daggerdbl
+\DeclareTextCommand{\textellipsis}{PU}{\9040\046} % ellipsis
+\DeclareTextCommand{\textemdash}{PU}{\9040\024} % emdash
+\DeclareTextCommand{\textendash}{PU}{\9040\023} % endash
+\DeclareTextCommand{\textflorin}{PU}{\81\222} % florin
 \DeclareTextCommand{\textfractionmark}{PU}{/} % fraction, \80\207
-\DeclareTextCommand{\guilsinglleft}{PU}{\80\210} % guilsinglleft
-\DeclareTextCommand{\guilsinglright}{PU}{\80\211} % guilsinglright
+\DeclareTextCommand{\guilsinglleft}{PU}{\9040\071} % guilsinglleft
+\DeclareTextCommand{\guilsinglright}{PU}{\9040\072} % guilsinglright
 \DeclareTextCommand{\textminus}{PU}{-} % minus, \80\212
-\DeclareTextCommand{\textperthousand}{PU}{\80\213} % perthousand
-\DeclareTextCommand{\quotedblbase}{PU}{\80\214} % quotedblbase
-\DeclareTextCommand{\textquotedblleft}{PU}{\80\215} % quotedblleft
-\DeclareTextCommand{\textquotedblright}{PU}{\80\216} % quotedblright
-\DeclareTextCommand{\textquoteleft}{PU}{\80\217} % quoteleft
-\DeclareTextCommand{\textquoteright}{PU}{\80\220} % quoteright
-\DeclareTextCommand{\quotesinglbase}{PU}{\80\221} % quotesinglbase
-\DeclareTextCommand{\texttrademark}{PU}{\80\222} % trademark
+\DeclareTextCommand{\textperthousand}{PU}{\9040\060} % perthousand
+\DeclareTextCommand{\quotedblbase}{PU}{\9040\036} % quotedblbase
+\DeclareTextCommand{\textquotedblleft}{PU}{\9040\034} % quotedblleft
+\DeclareTextCommand{\textquotedblright}{PU}{\9040\035} % quotedblright
+\DeclareTextCommand{\textquoteleft}{PU}{\9040\030} % quoteleft
+\DeclareTextCommand{\textquoteright}{PU}{\9040\031} % quoteright
+\DeclareTextCommand{\quotesinglbase}{PU}{\9040\032} % quotesinglbase
+\DeclareTextCommand{\texttrademark}{PU}{\9041\042} % trademark
 \DeclareTextCommand{\textfi}{PU}{fi} % fi ?? \80\223
 \DeclareTextCommand{\textfl}{PU}{fl} % fl ?? \80\224
-\DeclareTextCommand{\OE}{PU}{\80\226} % OE
-\DeclareTextCommand{\oe}{PU}{\80\234} % oe
+\DeclareTextCommand{\OE}{PU}{\81\122} % OE
+\DeclareTextCommand{\oe}{PU}{\81\123} % oe
 \DeclareTextCommand{\textexclamdown}{PU}{\80\241} % exclamdown
 \DeclareTextCommand{\textcent}{PU}{\80\242} % cent
 \DeclareTextCommand{\textsterling}{PU}{\80\243} % sterling
@@ -204,7 +204,7 @@
 \DeclareTextCompositeCommand{\"}{PU}{y}{\80\377} % ydieresis
 \DeclareTextCommand{\ij}{PU}{\80\377}
 \DeclareTextCommand{\SS}{PU}{SS}
-\DeclareTextCommand{\textcelsius}{PU}{\textdegree C}
+\DeclareTextCommand{\textcelsius}{PU}{\9041\003}
 \DeclareTextCommand{\textglqq}{PU}{\quotedblbase}
 \DeclareTextCommand{\textgrqq}{PU}{\textquotedblleft}
 \DeclareTextCommand{\textglq}{PU}{\quotesinglbase}
@@ -218,7 +218,6 @@
 \DeclareTextCommand{\textdiv}{PU}{\textdivide}
 \DeclareTextCommand{\textpm}{PU}{\textplusminus}
 \DeclareTextCommand{\textcdot}{PU}{\textperiodcentered}
-\DeclareTextCommand{\textbeta}{PU}{\ss}
 \DeclareTextCompositeCommand{\=}{PU}{A}{\81\000}% Amacron
 \DeclareTextCompositeCommand{\=}{PU}{a}{\81\001}% amacron
 \DeclareTextCompositeCommand{\u}{PU}{A}{\81\002}% Abreve
@@ -292,8 +291,8 @@
 \DeclareTextCompositeCommand{\c}{PU}{n}{\81\106} % ncedilla
 \DeclareTextCompositeCommand{\v}{PU}{N}{\81\107} % Ncaron
 \DeclareTextCompositeCommand{\v}{PU}{n}{\81\110} % ncaron
-\DeclareTextCommand{\NG}{PU}{NG} % \81\112
-\DeclareTextCommand{\ng}{PU}{ng} % \81\113
+\DeclareTextCommand{\NG}{PU}{\81\112} % NG
+\DeclareTextCommand{\ng}{PU}{\81\113} % ng
 \DeclareTextCompositeCommand{\=}{PU}{O}{\81\114} % Omacron
 \DeclareTextCompositeCommand{\=}{PU}{o}{\81\115} % omacron
 \DeclareTextCompositeCommand{\u}{PU}{O}{\81\116} % Obreve
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[force]{textcomp}
\usepackage[T1]{fontenc}
\usepackage[unicode]{hyperref}

\begin{document}
\section{bullet \textbullet}
\section{dagger \textdagger}
\section{daggerdbl \textdaggerdbl}
\section{ellipsis \textellipsis}
\section{emdash \textemdash}
\section{endash \textendash}
\section{florin \textflorin}
\section{guilsinglleft \guilsinglleft}
\section{guilsinglright \guilsinglright}
\section{perthousand \textperthousand}
\section{quotedblbase \quotedblbase}
\section{quotedblleft \textquotedblleft}
\section{quotedblright \textquotedblright}
\section{quoteleft \textquoteleft}
\section{quoteright \textquoteright}
\section{quotesinglbase \quotesinglbase}
\section{trademark \texttrademark}
\section{OE \OE}
\section{oe \oe}
\section{celsius \textcelsius} %℃
\section{NG \NG, ng \ng}
\end{document}

Reply to: