bug-lilypond
[Top][All Lists]
Advanced

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

Re: Unicode PDF titles garbled


From: Reinhold Kainhofer
Subject: Re: Unicode PDF titles garbled
Date: Sun, 6 Feb 2011 14:25:38 +0100
User-agent: KMail/1.13.5 (Linux/2.6.35-25-generic; KDE/4.6.0; i686; ; )

Am Sonntag, 6. Februar 2011, um 06:28:42 schrieb Jay Anderson:
> An example:
> 
> \version "2.13.48"
> \header
> {
>   title = "Non Lo Farò Più"
>   composer = "Johann Baptist Strauß"
> }
> 
> When viewing the pdf the title shows as "Non Lo Farò Più". I've only
> tested this with Evince and Okular. In searching about the problem
> people suggest that the text encoding should be utf-16be and include
> the BOM

Thanks for spotting that bug (Bug squad, can you please open a bug report for 
this!). 

It's actually simpler than using utf-16be. All that is needed is to use escape 
sequences instead of the accented characters. E.g. I would need to use "\362" 
instead of "ò". 

Unfortunately, I haven't found a scheme/guile method to create those escape 
sequences from a utf8 string (I don't even know exactly which escape sequences 
these are! At least they are none of the usual utf8 representations).

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]