From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Escaping links Date: Mon, 14 Aug 2017 18:35:54 +0200 Message-ID: References: <87zib65e93.fsf@nicolasgoaziou.fr> <871soh5amk.fsf@nicolasgoaziou.fr> <66cadfb9-5b38-03fb-cde0-090b1dfd7c66@ossau.homelinux.net> Reply-To: fabrice.popineau@centralesupelec.fr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114fef34e9be520556b94261" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhILz-0000Iq-Uk for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 12:36:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhILu-0007N6-Ud for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 12:36:35 -0400 Received: from smtp2.supelec.fr ([160.228.120.31]:54794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhILu-0006sB-K4 for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 12:36:30 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.supelec.fr (Postfix) with ESMTP id 5600180422 for ; Mon, 14 Aug 2017 18:36:17 +0200 (CEST) Received: from smtp2.supelec.fr ([127.0.0.1]) by localhost (smtp2.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cgjfkt4VXJ-z for ; Mon, 14 Aug 2017 18:36:16 +0200 (CEST) Received: from mail-qk0-f176.google.com (mail-qk0-f176.google.com [209.85.220.176]) by smtp2.supelec.fr (Postfix) with ESMTPSA id C1E4780402 for ; Mon, 14 Aug 2017 18:36:15 +0200 (CEST) Received: by mail-qk0-f176.google.com with SMTP id a77so53160714qkb.0 for ; Mon, 14 Aug 2017 09:36:15 -0700 (PDT) In-Reply-To: <66cadfb9-5b38-03fb-cde0-090b1dfd7c66@ossau.homelinux.net> 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" To: Neil Jerram Cc: "emacs-orgmode@gnu.org" --001a114fef34e9be520556b94261 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You could also prefix the link by a string holding (in ascii) the number of bytes of the unencoded link. But that makes raw/manual editing of an org file much harder. 2017-08-14 18:26 GMT+02:00 Neil Jerram : > Except if your original string was "%org-9.0"... > > For this kind of approach to work, you generally need to prefix > everything; specifically included the cases that are _not_ encoded. > > Regards - Neil > > > > On 12/08/17 16:01, John Kitchin wrote: > >> I was thinking of something like how all PDF files start with something >> like %PDF-1.3. So any string that started with %org-9.0, for example >> would be certain to be encoded, whereas any other beginning would not be >> certain. >> >> Nicolas Goaziou writes: >> >> Hello, >>> >>> John Kitchin writes: >>> >>> Could you put some magic at the beginning of the string that indicates = it >>>> is encoded? >>>> >>> I don't know. Could you elaborate a bit? >>> >>> Regards, >>> >> >> > > --=20 Fabrice Popineau ----------------------------- SUPELEC D=C3=A9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --001a114fef34e9be520556b94261 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You could also prefix the link by a string holding (in asc= ii) the number of bytes of the unencoded link.

But that makes = raw/manual editing of an org file much harder.


2017-08-14 18= :26 GMT+02:00 Neil Jerram <neil@ossau.homelinux.net>:=
Except if your original string was "= ;%org-9.0"...

For this kind of approach to work, you generally need to prefix everything;= specifically included the cases that are _not_ encoded.

Regards - Neil



On 12/08/17 16:01, John Kitchin wrote:
I was thinking of something like how all PDF files start with something
like %PDF-1.3. So any string that started with %org-9.0, for example
would be certain to be encoded, whereas any other beginning would not be certain.

Nicolas Goaziou writes:

Hello,

John Kitchin <jkitchin@andrew.cmu.edu> writes:

Could you put some magic at the beginning of the string that indicates it is encoded?
I don't know. Could you elaborate a bit?

Regards,






--
=
Fabrice P= opineau
-----------------------------
SUPELEC
D=C3= =A9partement Informatique
3, rue Joliot Curie
91192 Gif= /Yvette Cedex
Tel direct : +33 (0) 169851950
Standard := +33 (0) 169851212
------------------------------

<= /div>
--001a114fef34e9be520556b94261--