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

Bug#760751: [okular] Okular shows "[Please insert PrerenderUnicode{??} into preamble]" in the title bar, when the title of the document contains an umlaut



Hi Thomas,

> But now to my problem. If I open an PDF file, which has an German umlaut
> in its title, Okular will replace the umlaut with "Please insert
> PrerenderUnicode{??} into preamble]" (e.g. if its title would be
> "Einführung" it will become "Einf[Please insert PrerenderUnicode{??} into
> preamble]hrung") ... :
> 
> Steps to reproduce:
> 
> 1. Download https://www.bg.bib.de/portale/dab/pdf/einf_dab.pdf
> 2. Open it in Okular
> 3. Look at the title bar
> 
> You will see "Einf[Please insert PrerenderUnicode{ü} into preamble]hrung
> in das Fach Datenbanken" instead of "Einführung in das Fach Datenbanken"
> ... :(
> 
> You could also use "File - Properties" (I hope, this is the right
> translation. In German it is "Datei - Eigenschaften" ... ;) ), where you
> could see its title with this "Please insert..." annotation.

This is a problem with the specific PDF that you have linked to and not with 
okular. What you see in the title bar there is quite literally what is set 
as the title for that PDF in the document metadata:

$ pdfinfo einf_dab.pdf 
[...]
Keywords:       Datenbanken, Einf[Please insert PrerenderUnicode{ü} into 
preamble]hrung, Motivation

The producer of this pdf (pdfeTeX-1.21a by the looks of it) needs to be 
configured to correctly handle non-ASCII characters in the PDF metadata. If 
you had the latex source available, you'd be able to fix this by 
regenerating the PDF... The solution is to either tell pdflatex that the 
input file is encoded in UTF-8 (for example \usepackage[utf8]{inputenc}) or 
to help pdflatex understand how to deal with this character (add 
\PrerenderUnicode{ü} to the preamble.)

cheers
Stuart

-- 
Stuart Prescott    http://www.nanonanonano.net/   stuart@nanonanonano.net
Debian Developer   http://www.debian.org/         stuart@debian.org
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7


Reply to: