* HTML export should leave IRIs as is
@ 2015-02-08 14:05 Vladimir Alexiev
0 siblings, 0 replies; only message in thread
From: Vladimir Alexiev @ 2015-02-08 14:05 UTC (permalink / raw)
To: emacs-orgmode
I have this in a file:
- [[https://chrome.google.com/webstore/detail/copy-url/mkhnbhdofgaendegcgbmndipmijhbili][CopyURL]] Chrome Plugin
- Many URLs in dbpedia are International Resource Identifiers (IRIs)
- When you copy from the browser's address bar, an IRI is URL-encoded
- Unreadable ugliness like http://bg.dbpedia.org/resource/%D0%9A%D0%BE%D0%BD%D1%81%D1%82%D0%B0%D0%BD%D1%82%D0%B8%D0%BD%D0%B0_%D0%96%D0%B8%D0%B2%D0%BE%D0%B2%D0%B0
- Instead, this plugin allows you to copy & paste IRIs like http://bg.dbpedia.org/resource/Константина_Живова
With default settings, the HTML export made both URLs the same unreadable ugliness.
I see no good reason for ox-html to escape IRIs, I think it should emit them as IRIs.
- I expected (setq org-html-use-unicode-chars t) to fix this, but for some reason (mm-url-decode-entities) doesn't do it
- This fixed the problem: (org-url-hexify-p nil), but I'm afraid it may break something else.
Furthermore, this fix converted BOTH URLs to an IRI. So to illustrate the point, I had to change my org file to:
- Unreadable ugliness like
: http://bg.dbpedia.org/resource/%D0%9A%D0%BE%D0%BD%D1%81%D1%82%D0%B0%D0%BD%D1%82%D0%B8%D0%BD%D0%B0_%D0%96%D0%B8%D0%B2%D0%BE%D0%B2%D0%B0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-08 14:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-08 14:05 HTML export should leave IRIs as is Vladimir Alexiev
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).