bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 887 in lilypond: PDF point-and-click URI links with special ch


From: lilypond
Subject: Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS
Date: Mon, 16 Nov 2009 09:42:39 +0000


Comment #6 on issue 887 by harmathdenes: PDF point-and-click URI links with special chars wrongly encoded depending on the OS
http://code.google.com/p/lilypond/issues/detail?id=887

Thanks for the research! There are at least two ways to easily reproduce this: 1. Using LilyPond.app 2.13.7 on OS X, save and typeset a file with ASCII and another with non-ASCII filename. Point-and-click works in the former, does not work in the
latter case, either with Preview.app or with Skim.app.
2. I process the resulting PDFs in Java with the JPedal library.

PdfObject anchor = formObject.getDictionary(PdfDictionary.A);
byte[] uriDecodedBytes =
anchor.getTextStreamValue(PdfDictionary.URI).getBytes("ISO-8859-1");
URI uri = new URI(new String(uriDecodedBytes));

Depending on the filename, I get the following URIs:
a/á.ly -> textedit:///Users/thsoft/Development/.runtime/a/á.ly:6:2:2
á/á.ly -> textedit:///Users/thsoft/Development/.runtime/a�?/á.ly:1:2:2
a/ő.ly -> textedit:///Users/thsoft/Development/.runtime/a/�?.ly:1:2:2

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

reply via email to

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