[XeTeX] hyperref bookmark problem
nomosnomos at gmail.com
Mon Oct 27 18:36:04 CET 2008
2008/10/28 Peter Dyballa <Peter_Dyballa at web.de>:
> Am 27.10.2008 um 16:51 schrieb Dohyun Kim:
>> See also the ChangeLog of hyperref package:
>> 2008-09-29 6.78l Heiko Oberdiek
>> * 6.78l
>> * Bookmarks: `--' and `---' are automatically replaced by
>> and \textemdash in bookmark strings.
> This does not seem to be true – or XeTeX stops this conversion. You
> should contact Heiko Oberdiek!
I do not think it's a problem caused by hyperref.
If you want to create a pdf file, you should honour pdf specification,
which hyperref conforms to.
Anyway, here's a quick and temporary workaround written in perl:
my $infile = $ARGV or die "usage: $0 <jobname.out>\n";
$pd1file = `kpsewhich pd1enc.def`;
open my $fh,$pd1file or die;
and $PD1[$1] = $2;
my $tmpfile = $infile.".tmp";
open $fh,$infile or die;
open my $tmp,">",$tmpfile or die;
binmode $fh,":utf8" ;
binmode $tmp,":utf8" ;
s/\\(\d\d\d)/chr hex $PD1[$1]/ge;
rename $tmpfile, $infile or die;
Between first and second running of xelatex, issue command as follows:
shell prompt$ perl tempscript.pl test.out
More information about the XeTeX