From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Crandall Subject: Re: Testing: org-export-e-html Date: Wed, 30 May 2012 16:50:22 -0700 Message-ID: References: <87396i3p1w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93997df4ce85e04c1499d4f Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZseo-00004w-Jw for emacs-orgmode@gnu.org; Wed, 30 May 2012 19:50:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZsem-0001q7-QL for emacs-orgmode@gnu.org; Wed, 30 May 2012 19:50:26 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:51968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZsem-0001q1-HP for emacs-orgmode@gnu.org; Wed, 30 May 2012 19:50:24 -0400 Received: by obbwd18 with SMTP id wd18so576718obb.0 for ; Wed, 30 May 2012 16:50:22 -0700 (PDT) In-Reply-To: <87396i3p1w.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: emacs-orgmode@gnu.org --14dae93997df4ce85e04c1499d4f Content-Type: text/plain; charset=ISO-8859-1 Thanks Sebastien! Sometimes its the smallest things; in this case >.< A single point, and figures work in my setup. That is: [[./sites/a.png]] becomes: a.png ------------------------------ Alas, FILES do not now behave the same way. Using M-x org-export-dispatch h this: [[./sites/my-file][My link]] becomes: My link So, org-export-dispatch (on Windows), adds "file://" if the first char is ".", and it adds "file://g:" if the first char is "/". (With "g:" the root drive letter.) Still hoping for a switch that will add [nothing]. +1 for solving the img challenge! -BC > Hi William, > > William Crandall wrote: > >* 3. Image and file prefixes are as they were.* > > > >* This (image):* > > > >* [[/sites/a.png]]* > > > >* becomes:* > > > >* * > > > >* And this (file):* > > > >* [[/sites/my-file][My link]]* > > > >* becomes:* > > > >* My link* > > > > > >* I'd love an option to "change it not" for both, so that* > >* neither "g:" nor "file://g:" is added to "/...".* > > > >* I could strip them out, after exporting, but I think* > >* this is an option that others would also value.* > > > > > >* (External links, to an "http://...";, work fine.)* > > A quick note on this one: > > I think adding "." does work, so use "./sites/a.png" instead. > > Dunno if that suits your need, though. > > Best regards, > Seb > > -- > Sebastien Vauban > > --14dae93997df4ce85e04c1499d4f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks Se= bastien!

Sometimes its the smallest things; in this case >.<A single point, and figures work in my setup.

That is: [[./sites/= a.png]]

becomes: <img src=3D"./sites/a.png"=A0 alt=3D"a.png&q= uot;/>

------------------------------

Alas, FILES do not n= ow behave the same way.

Using M-x org-export-dispatch h
this:
= =A0=A0=A0 [[./sites/my-file][My link]]

becomes:
=A0=A0=A0 <a href=3D"file://./sites/my-file"&g= t;My link</a>


So, org-export-dispatch (on Windows), adds <= br>"file://"=A0=A0 if the first char is ".", and it add= s
"file://g:" if the first char is "/".

(With "g:" the root drive letter.)

Still hoping for a = switch that will add [nothing].

+1 for solving the img challenge!
-BC

=A0
Hi William,

William Crandall wrote:
> 3. Image and file prefixes are as they were.
>
> This (image):
>
>    [[/sites/a.png]]
>
> becomes:
>
>    <img src=3D"g:/sites/a.png"/>
>
> And this (file):
>
>    [[/sites/my-file][My link]]
>
> becomes:
>
>    <a href=3D"file://g:/sites/my-file">My link</=
a>
>
>
> I'd love an option to "change it not" for both, so th=
at
> neither "g:" nor "file://g:" is added to "=
/...".
>
> I could strip them out, after exporting, but I think
> this is an option that others would also value.
>
>
> (External links, to an "http://...";, work fine.)

A quick note on this one:

I think adding "." does work, so use "./sites/a.png" in=
stead.

Dunno if that suits your need, though.

Best regards,
  Seb

--=20
Sebastien Vauban
--14dae93997df4ce85e04c1499d4f--