From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Crandall Subject: Re: Drupal syntax on html-export for image links Date: Sun, 27 May 2012 09:00:06 -0700 Message-ID: References: <87wr42j6l6.fsf@gnu.org> <814nr1hka2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff1c5e6f56c4f04c106b13d Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYft6-00026m-3Z for emacs-orgmode@gnu.org; Sun, 27 May 2012 12:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYft3-0005sM-Do for emacs-orgmode@gnu.org; Sun, 27 May 2012 12:00:11 -0400 In-Reply-To: <814nr1hka2.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: Bastien , emacs-orgmode@gnu.org --e89a8ff1c5e6f56c4f04c106b13d Content-Type: text/plain; charset=ISO-8859-1 Hello Nicolas and Jambunathan, Many thanks, to you both, for such quick and detailed responses! I look forward to checking things out later today. And yes, +1 to Bastien for recommending! Regarding your notes on image and file paths: JK> I will respond to 3 and 4 separately. I need to look at JK> this area closely. (I know nothing about HTML or HTML exporter.) JK> What is "g:/" here. Is it the publishing directory or JK> the current directory. Given that, does removing the leading JK> "g:/" a specific requirement of yours or is it generally useful JK> to anyone. The "g:/" is a Windows artifact, indicating the drive. On Unix systems, root "/" is unique; on Windows there can be many drives indicated by letters at the root (c:/, d:/, .. z:/). The most common default for first hard disk is "c:/", but other letters are often used. http://en.wikipedia.org/wiki/Drive_letter_assignment I think that it would be generally useful to be able to remove the drive letter, so that c:/ or g:/ is transposed into just / so that when the link-string is passed to a publishing system, such as Drupal, it can easily digest it for further processing. Thanks again for all your work on this! -BC On Sun, May 27, 2012 at 5:37 AM, Jambunathan K wrote: > > The exporter is new. Needless to say there are bugs, known and > unknown. (Think, "Rome wasn't built in a day") > [. . .] > > 3. Configuring paths to images > > > > #+ATTR_HTML: alt="BC Crandall" > > [[/sites/a.png]] > > > > Exports to: > > > > BC Crandall

> > > > One win; one fail. > > > > #+ATTR_HTML: works fine! > > > > But I'd like the path to be > without "g:" > > > > > > -------------------------------------------------- > > > > 4. Paths to files > > > > [[/sites/my-file][My link]] > > > > Exports to: > > > > My link > > > > How can I keep the path "as it was", and get this: > > > > My link > > > > without "file://g:" > > > > > > -------------------------------------------------- > > > > I will respond to 3 and 4 separately. I need to look at this area > closely. (I know nothing about HTML or HTML exporter.) > > What is "g:/" here. Is it the publishing directory or the current > directory. Given that, does removing the leading "g:/" a specific > requirement of yours or is it generally useful to anyone. > --e89a8ff1c5e6f56c4f04c106b13d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Nicolas and J= ambunathan,

Many thanks, to you both, for such quick and detailed respons= es!

I look forward to checking things out later today. <= /span>

And yes, +1 to Bastien fo= r recommending!


Regarding your notes on i= mage and file paths:
=
JK> I will respond to 3 and 4 separately.=A0 I ne= ed to look at
JK> this area closely.= (I know nothing about HTML or HTML exporter.)

<= span style=3D"font-family:courier new,monospace">JK> What is "g:/&q= uot; here.=A0 Is it the publishing directory or

JK> the current direct= ory.=A0 Given that, does removing the leading
= JK> "g:/" a specific requirement of yours or is it generally u= seful
JK> to anyone.<= br style=3D"font-family:courier new,monospace">
The &= quot;g:/" is a Windows artifact, indicating the=A0 drive. On Unix
systems, root "/&quo= t; is unique; on Windows there can be many drives
indicated by letters at the root (c:/, d:/, .. z:/). The most common
default for first hard di= sk is "c:/", but other letters are often used.
http://en.wikipedia.org/wiki/Drive_letter_assignment

I think that it would be generally useful to = be able to remove
the drive letter, so that c:= / or g:/ is transposed into just /

so that when the link-str= ing is passed to a publishing system,
such as = Drupal, it can easily digest it for further processing.

Thanks again for all your work on this!

-BC


On Sun, May 27, 2012 at 5:37 AM, Jambunathan K <= kjambunathan@gm= ail.com> wrote:

The exporter is new. =A0Needless to say there are bugs, known and
unknown. (Think, "Rome wasn't built in a day")

[. . .]


> 3. Configuring paths to images
>
> =A0=A0 #+ATTR_HTML: alt=3D"BC Crandall"
> =A0=A0 [[/sites/a.png]]
>
> Exports to:
>
> =A0=A0 <img src=3D"g:/sites/a.png" alt=3D"BC Crandal= l"/></p>
>
> One win; one fail.
>
> #+ATTR_HTML: works fine!
>
> But I'd like the path to be=A0 <img src=3D"/sites/a.png&qu= ot; ..
> without=A0 "g:"
>
>
> ------------------------------
--------------------
>
> 4. Paths to files
>
> =A0=A0 [[/sites/my-file][My link]]
>
> Exports to:
>
> =A0=A0 <a href=3D"file://g:/sites/my-file"
&g= t;My link</a>
>
> How can I keep the path "as it was", and get this:
>
> =A0=A0 <a href=3D"/sites/my-file">My link</a> >
> without "file://g:"
>
>
> ------------------------------
--------------------
>

I will respond to 3 and 4 separately. =A0I need to look at this= area
closely. (I know nothing about HTML or HTML exporter.)

What is "g:/" here. =A0Is it the publishing directory or the curr= ent

directory. =A0Given that, does removing the leading "g:/" a speci= fic
requirement of yours or is it generally useful to anyone.

--e89a8ff1c5e6f56c4f04c106b13d--