From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Encoding Problem in export? Date: Sun, 28 Jul 2013 13:16:35 +0200 Message-ID: <8761vv2auk.wl%dmaus@ictsoc.de> References: <87bo5s27ey.fsf@sachwertpartner.de> <877ggg7suh.fsf@gmail.com> <51EF32F4.9030309@gmx.de> <87txjk5s2q.fsf@gmail.com> <87a9lcfg9g.fsf@gmail.com> <877ggg5i5q.fsf@gmail.com> <87y58vp9mj.wl%dmaus@ictsoc.de> <87li4u48jp.fsf@gmail.com> <87r4emdl2a.wl%dmaus@ictsoc.de> <87d2q54o7e.fsf@gmail.com> <87k3kc1n6f.wl%dmaus@ictsoc.de> <87iozwmf87.fsf@gmail.com> <87bo5n84ih.fsf@gmail.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3Oxu-0004tf-Um for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 07:16:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3Oxp-0000Go-RJ for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 07:16:42 -0400 Received: from mail.xlhost.de ([213.202.242.118]:39095 helo=app1b.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3Oxp-0000Gg-LZ for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 07:16:37 -0400 In-Reply-To: <87bo5n84ih.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: David Maus , emacs-orgmode@gnu.org, Nicolas Goaziou , Nick Dokos At Sun, 28 Jul 2013 14:06:54 +0530, Jambunathan K wrote: > > > If Org links are escaped by Org will the URLs be functional outside of > Org? > > i.e., If I am on some machine, that has no Emacs or Org or if I am using > a version of Org that uses "new unescape" algorithm but the original > link was encoded with the "old escape" algorithm, will Copy-pasting the > link to a browser still work. I think this is a good point or rather two good points: One is BC. If we change the escaping algorithm we still have to deal with possibly tons of old-style-links in user files. The other one is that leaving the edge cases aside it is possible to just copy a link and paste it into the target application -- a percent sign signifies percent encoding and the target application knows what to do. > If Org is a MUST to unescape the link then it would be a good decision > to re-look at the link syntax so that the questions of escape and > un-escape is dealt with squarely and have no reasons to arise in future. > I'm not sure if it is worth the effort but, in theory, we could do define our own URI schema `org' that disallows square brackets. If a link is created programmatically (org-store-link et al.) we do not store the URI as-is but as an "Orgmode-Link": Escape the square brackets and prefix the link with `org:'. If we open a link we check for the `org:'-prefix, reverse the escaping and handle the link to the registered module. If the prefix is absent we skip the unescaping step. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de