[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Drupal syntax on html-export for image links
From: |
Jambunathan K |
Subject: |
Re: [O] Drupal syntax on html-export for image links |
Date: |
Sun, 27 May 2012 18:07:41 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (windows-nt) |
The exporter is new. Needless to say there are bugs, known and
unknown. (Think, "Rome wasn't built in a day")
I have fixed few things. I will respond later for unresolved other
things in your list.
> 7. No end-user documentation for the org-export package
> has been created, describing for example, how to link
> to an external CSS file (as #+STYLE used to work).
This is fixed now.
> 8. "The Manual" does not (yet) document the org-export package:
> http://orgmode.org/manual/index.html
The new exporter should behave exactly the same way as the old one.
Otherwise, it is a bug.
For all practical purposes,
M-x customize-group RET org-export-e-html RET
should suffice.
Note that the defcustoms have `org-e-html-' as prefix. (Note the "e" in
"e-html")
> 1. UTF-8
>
> How can I change the encoding, which defaults to:
Use `org-e-html-coding-system'.
> --------------------------------------------------
>
> 2. CSS
>
> I used to link to an external style file thus:
>
> #+STYLE: <link rel="stylesheet" type="text/css" href="css/
> about.css" />
>
> What syntax works now?
This is fixed.
> 5. Removing Pre- and Postamble
>
> What now works like:
>
> (setq org-export-html-preamble nil)
> (setq org-export-html-postamble nil)
>
> Now, there is no preamble.
>
> The postamble is:
>
> <div id="postamble">
> <p class="date"> Date: 2012-05-26 20:59:51 Pacific Daylight Time
> </p>
> <p class="author"> Author : William BC Crandall</p>
> <p class="creator"> Generated by Org mode 7.8.11 in Emacs
> 24.1.50.1. </p>
> <a href="http://validator.w3.org/check?uri=referer">Validate
> XHTML 1.0</a>
> </div>
>
> I'd like to remove both.
Use `org-e-html-preamble' and `org-e-html-postamble'.
> --------------------------------------------------
>
>
> 6. Special strings
>
> I was able to get a TM (&trade) in the old system with:
>
> (eval-after-load "org"
> '(setq org-export-html-special-string-regexps
> (append org-export-html-special-string-regexps
> '(("-TM-" . "™")))))
>
> How now?
Nicolas has responded to this question.
FYI, `org-export-html-special-string-regexps' becomes
`org-e-html-special-string-regexps'.
> 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.