Last modified: 2012-05-15 07:32:57 UTC
While this may or may not be combined with bug 1450, i think this is a seperate issue.
== Originally reported on bug 1450 ==
The additional problem appears when you want to make wiki book and opt for
printer friendly version of the article. At the end of the article, a really
long URL in US ASCII appears. I think it need not be in US ASCII, as
international domain names have been approved. Please correct the print
version to a unicode url, so that the page can be accessed easily as well as
understood in the human readable language.
Appreciate higher priority to fix this bug, as we are ready to publish e-books
Example Ubuntu user guide page url as it appears in printer friendly version.
and a shorturl if it were to be used.
http://te.wikibooks.org/wiki/ఉబుంటు వాడుకరి మార్గదర్శని
Have you tried using the PDF export (click on "PDF క్రింద దిగుమతి చేసుకోండి") instead of the "printer friendly version" or creating a book/collection (click on "ఓ పుస్తకాన్ని సృష్టించండి")? Adding some of the PediaPress devs in case there are some concerns with the Collection extension that they could address.
If there is a compelling reason for not using the above methods, then I'll see if we can't get this fixed sooner.
Indic rendering on PDF is not up to mark yet, So thats a bigger problem than this. I think Santhosh is working on it, but may take time. Fixing this will do good for the time being.
Created attachment 9592 [details]
Sample print output from a copy of https://te.wikibooks.org/wiki/%E0%B0%89%E0%B0%AC%E0%B1%81%E0%B0%82%E0%B0%9F%E0%B1%81_%E0%B0%B5%E0%B0%BE%E0%B0%A1%E0%B1%81%E0%B0%95%E0%B0%B0%E0%B0%BF_%E0%B0%AE%E0%B0%
PDF shows the reealllllly long permalink URL broken over 5 lines in the print footer. While possible in principle, it doesn't look very easy to type. :)
Note that the title isn't actually necessary in the permalink, but the 'oldid=1517' at the end is vital to getting that particular version of the page (and would, on its own, be sufficient).
Created attachment 9593 [details]
Test patch: changes print footer to decode Unicode chars as a pretty IRI
Test patch: changes print footer to decode Unicode chars as a pretty IRI (Internationalized Resource Identifier). Only changes the print footer, but adds a wfExpandIRI() function as a sister of wfExpandUrl().
Created attachment 9594 [details]
PDF output with the patch
PDF output with the patch. Several things to note:
* by default, titles will still use underscores instead of spaces here. this may or may not look good with all scripts
* the URL is still longish due to presence of index.php?title= and the oldid=1517 is bumped to the second line.
I might recommend changing permalinks in general to a more compact format that puts the oldid first.
Note the PDF output above is produced by print to file on Firefox 8 on Ubuntu 11.10.
The patch proposed by Brion is submitted here https://gerrit.wikimedia.org/r/3897 - with slight modification.
This is already merged