[Top][All Lists]
[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
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS, lilypond, 2009/11/12
- Message not available
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS, lilypond, 2009/11/12
- Message not available
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS, lilypond, 2009/11/15
- Message not available
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS, lilypond, 2009/11/15
- Message not available
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS,
lilypond <=
- Message not available
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS, lilypond, 2009/11/17
- Message not available
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS, lilypond, 2009/11/23
- Message not available
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS, lilypond, 2009/11/23
- Message not available
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS, lilypond, 2009/11/24
- Message not available
- Re: Issue 887 in lilypond: PDF point-and-click URI links with special chars wrongly encoded depending on the OS, lilypond, 2009/11/24