From: William Crandall <bc3141592@gmail.com>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: Bastien <bzg@gnu.org>, emacs-orgmode@gnu.org
Subject: Re: Drupal syntax on html-export for image links
Date: Sun, 27 May 2012 09:00:06 -0700 [thread overview]
Message-ID: <CAENLK5Xi=9m3zD6CkOVQexx9tcMdUAFyZSYhdHpW9zqSkN0y+Q@mail.gmail.com> (raw)
In-Reply-To: <814nr1hka2.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2475 bytes --]
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 <kjambunathan@gmail.com>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:
> >
> > <img src="g:/sites/a.png" alt="BC Crandall"/></p>
> >
> > One win; one fail.
> >
> > #+ATTR_HTML: works fine!
> >
> > But I'd like the path to be <img src="/sites/a.png" ..
> > without "g:"
> >
> >
> > --------------------------------------------------
> >
> > 4. Paths to files
> >
> > [[/sites/my-file][My link]]
> >
> > Exports to:
> >
> > <a href="file://g:/sites/my-file">My link</a>
> >
> > How can I keep the path "as it was", and get this:
> >
> > <a href="/sites/my-file">My link</a>
> >
> > 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.
>
[-- Attachment #2: Type: text/html, Size: 6491 bytes --]
prev parent reply other threads:[~2012-05-27 16:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-24 4:55 Drupal syntax on html-export for image links William Crandall
2012-05-24 9:01 ` Bastien
2012-05-27 4:43 ` William Crandall
2012-05-27 7:35 ` Nicolas Goaziou
2012-05-27 12:41 ` Jambunathan K
2012-05-27 12:37 ` Jambunathan K
2012-05-27 16:00 ` William Crandall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAENLK5Xi=9m3zD6CkOVQexx9tcMdUAFyZSYhdHpW9zqSkN0y+Q@mail.gmail.com' \
--to=bc3141592@gmail.com \
--cc=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=kjambunathan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).