From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Drupal syntax on html-export for image links Date: Sun, 27 May 2012 18:07:41 +0530 Message-ID: <814nr1hka2.fsf@gmail.com> References: <87wr42j6l6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYcjK-0005f0-1P for emacs-orgmode@gnu.org; Sun, 27 May 2012 08:37:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYcjI-0008FH-8C for emacs-orgmode@gnu.org; Sun, 27 May 2012 08:37:53 -0400 In-Reply-To: (William Crandall's message of "Sat, 26 May 2012 21:43:23 -0700") 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: William Crandall Cc: Bastien , emacs-orgmode@gnu.org 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 > =C2=A0=C2=A0 has been created, describing for example, how to link > =C2=A0=C2=A0 to an external CSS file (as #+STYLE used to work). This is fixed now.=20=20 > 8. "The Manual" does not (yet) document the org-export package: > =C2=A0=C2=A0 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,=20 M-x customize-group RET org-export-e-html RET=20 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: > > =C2=A0=C2=A0 #+STYLE: about.css" /> > > What syntax works now? This is fixed. > 5. Removing Pre- and Postamble > > What now works like: > > =C2=A0=C2=A0 (setq org-export-html-preamble nil) > =C2=A0=C2=A0 (setq org-export-html-postamble nil) > > Now, there is no preamble. > > The postamble is: > > =C2=A0=C2=A0
> =C2=A0=C2=A0

Date: 2012-05-26 20:59:51 Pacific Dayligh= t Time >

> =C2=A0=C2=A0

Author : William BC Crandall

> =C2=A0=C2=A0

Generated by Org mode 7.8.11 in Emacs > 24.1.50.1.

> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Validate > XHTML 1.0 > =C2=A0=C2=A0
> > 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" > =C2=A0 '(setq org-export-html-special-string-regexps > =C2=A0=C2=A0=C2=A0 =C2=A0(append org-export-html-special-string-regexps > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0'(("-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 > > =C2=A0=C2=A0 #+ATTR_HTML: alt=3D"BC Crandall" > =C2=A0=C2=A0 [[/sites/a.png]] > > Exports to: > > =C2=A0=C2=A0 3D"BC

> > One win; one fail. > > #+ATTR_HTML: works fine! > > But I'd like the path to be=C2=A0 without=C2=A0 "g:" > > > -------------------------------------------------- > > 4. Paths to files > > =C2=A0=C2=A0 [[/sites/my-file][My link]] > > Exports to: > > =C2=A0=C2=A0 My link > > How can I keep the path "as it was", and get this: > > =C2=A0=C2=A0 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.