From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erwin Panen Subject: Re: file link format question - How to format link when square brackets [ ] are already in filename? Date: Tue, 02 Feb 2010 20:43:27 +0100 Message-ID: <4B68805F.9000605@fastmail.fm> References: <4B680377.30601@fastmail.fm> <877hqvfue9.wl%maus.david@gmail.com> Reply-To: erwinpanen@fastmail.fm Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1771648618==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcP8Z-0005Tv-KP for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:14:15 -0500 Received: from [140.186.70.92] (port=34916 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcP8W-0005SG-2l for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 15:14:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NcOi8-0005LH-5A for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 14:46:57 -0500 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:55596) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NcOi7-0005LC-PQ for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 14:46:55 -0500 In-Reply-To: <877hqvfue9.wl%maus.david@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --===============1771648618== Content-Type: multipart/alternative; boundary="------------070408070403000704060208" This is a multi-part message in MIME format. --------------070408070403000704060208 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi David, Thanks for replying; I don't understand what you mean. I was not aware off url-encoding, but=20 found help here:=20 http://www.eskimo.com/~bloo/indexdot/html/topics/urlencoding.htm=20 So far so good. The way I interpret this is that I can 'replace' [square brackets] in=20 orgmode with %5Bsquare brackets%5D However when I try this, org does not 'convert' to a link...? What am I=20 missing? Perhaps for clarification: The link I used in my example may be confusing, it is a long UNC path to=20 a file on a network server that has somewhere [32] in it's name. It's the [32] that seems to confuse org's linking. I also noticed when hovering over [32] that org seems to recognize this=20 as a footnote?? Thanks, Erwin David Maus wrote: > At Tue, 02 Feb 2010 11:50:31 +0100, > Erwin Panen wrote: > =20 >> Hi everyone, >> >> I guess this is a minor question, but it has puzzled me already more=20 >> than once. >> My example: The below example is normally all on one line. >> ---------------Begin code---------------------------------------------= - >> ** Action: started to play video=20 >> [[\\Dcerouter\public\videos\STORY_Station (sdb1)-CORE [32]\Les Rivi=C3= =A8res=20 >> Pourpres 720x304\The Crimson Rivers.mkv][The Crimson Rivers.mkv]] >> ---------------End code-----------------------------------------------= - >> >> The problem is that the file location already contains a number betwee= n=20 >> square brackets [32] which renders Org to treat the link in an=20 >> unsuspected way. >> >> Is there any way to circumvent this behaviour e.g. by inserting specia= l=20 >> characters to avoid Org to look inbetween the special characters? >> =20 > > You can url-encode the square brackets with %5B ("[") and %5D ("]") -- > orgmode does this when calling `org-store-link' (C-c l) for a place > that contains square brackets and opens the links fine. > > HTH > -- David > > =20 --------------070408070403000704060208 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi David,

Thanks for replying;
I don't understand what you mean. I was not aware off url-encoding, but found help here: http://www.eskimo.com/~bloo/indexdot/html/topics/urlencoding.htm<= br> So far so good.
The way I interpret this is that I can 'replace' [square brackets] in orgmode=C2=A0 with %5Bsquare brackets%5D
However when I try this, org does not 'convert' to a link...? What am I missing?

Perhaps for clarification:
The link I used in my example may be confusing, it is a long UNC path to a file on a network server that has somewhere [32] in it's name.
It's the [32] that seems to confuse org's linking.
I also noticed when hovering over [32] that org seems to recognize this as a footnote??

Thanks,

Erwin

David Maus wrote:
At Tue, 02 Feb 2010 11:50:31 +0100,
Erwin Panen wrote:
  
Hi everyone,

I guess this is a minor question, but it has puzzled me already more=20
than once.
My example: The below example is normally all on one line.
---------------Begin code----------------------------------------------
** Action: started to play video=20
[[\\Dcerouter\public\videos\STORY_Station (sdb1)-CORE [32]\Les Rivi=C3=A8=
res=20
Pourpres 720x304\The Crimson Rivers.mkv][The Crimson Rivers.mkv]]
---------------End code------------------------------------------------

The problem is that the file location already contains a number between=20
square brackets [32] which renders Org to treat the link in an=20
unsuspected way.

Is there any way to circumvent this behaviour e.g. by inserting special=20
characters to avoid Org to look inbetween the special characters?
    

You can url-encode the square brackets with %5B ("[") and %5D ("]") --
orgmode does this when calling `org-store-link' (C-c l) for a place
that contains square brackets and opens the links fine.

HTH
 -- David

  
--------------070408070403000704060208-- --===============1771648618== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1771648618==--