From: "Vladimir Alexiev" <vladimir@sirma.bg>
To: emacs-orgmode@gnu.org
Subject: HTML export should leave IRIs as is
Date: Sun, 8 Feb 2015 16:05:40 +0200 [thread overview]
Message-ID: <056d01d043a8$53f5f8a0$fbe1e9e0$@bg> (raw)
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
reply other threads:[~2015-02-08 14:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='056d01d043a8$53f5f8a0$fbe1e9e0$@bg' \
--to=vladimir@sirma.bg \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).