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

Bug#367842: marked as forwarded (tetex-extra: hyperref handles some characters incorrectly when unicode bookmarks are used)



Your message dated Tue, 23 May 2006 21:34:12 +0200
with message-id <20060523193412.GA26483@thinkpad>
has caused the Debian Bug report #367842,
regarding tetex-extra: hyperref handles some characters incorrectly when unicode bookmarks are used
to be marked as having been forwarded to the upstream software
author(s) Heiko Oberdiek <oberdiek@ruf.uni-freiburg.de>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Hallo Heiko,

down here in the Debian Bug tracking system Eugeniy Meshcheryakov
reported incorrectly handled bookmarks using unicode characters. This is
with hyperref from teTeX 3.0, ie 2003/11/30 v6.74m. The relevant
discussion is at <URL:http://bugs.debian.org/367842/>. The sample file
and the patch provided by Eugeniy are attached. The bug report looks
valid to me and the proposed patch works (modolo some font issues) on
various systems. After applying this patch, pdflatex and latex+dvips+
ps2pdf (with gs > v8) produce PDF files where most of the symbols in the
bookmarks window are correctly displayed in AR 7. Thanks for
considering. 

cheerio
ralf

\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}
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

--- End Message ---

Reply to: