From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Crandall Subject: Testing: org-export-e-html (was: Drupal syntax on html-export) Date: Tue, 29 May 2012 23:27:19 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93997df1517a404c13b0b62 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZcNU-0000eX-Lg for emacs-orgmode@gnu.org; Wed, 30 May 2012 02:27:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZcNP-0005zc-8h for emacs-orgmode@gnu.org; Wed, 30 May 2012 02:27:28 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:32964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZcNO-0005z9-UR for emacs-orgmode@gnu.org; Wed, 30 May 2012 02:27:23 -0400 Received: by obbwd18 with SMTP id wd18so9929223obb.0 for ; Tue, 29 May 2012 23:27:20 -0700 (PDT) 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 , Nicolas Goaziou Cc: emacs-orgmode@gnu.org --14dae93997df1517a404c13b0b62 Content-Type: text/plain; charset=ISO-8859-1 Hello Nicolas and Jambunathan, Thanks again for your responses to my questions. I report some success and some "in process." 1. Stylesheet attachment (with #+STYLE:) works fine now. 2. Your special string example (replace-regexp-in-string), Nicolas, as well as the better entity solution (\trade), both work splendidly. I'm looking now at three issues. Please let me know what I can/should change. Thanks again for this new export engine! Cheers, -BC Testing: "M-x org-export-dispatch h" Org-mode: 7.8.11 (release_7.8.11-18-g244331) Emacs: 24.1.50.1 Windows 7 -------------------------------------------------- 1. UTF-8 XML Encoding In my init.el: (setq org-e-html-coding-system 'utf-8) But first line of test.html: In test.org: org-e-html-coding-system is a variable defined in `org-e-html.el'. Its value is utf-8 Original value was nil Documentation: Coding system for HTML export. Use `org-export-coding-system' as the default value. And: buffer-file-coding-system is a variable defined in `C source code'. Its value is utf-8-dos Local in buffer 6-test.org; global value is utf-8-dos -------------------------------------------------- 2a. Internal HTML links (#) Neither links nor destinations make it into the html. This: "an internal section link [[#directors][Directors]]." becomes: "an internal section link: Directors. Was expecting (without italics): ""an internal section link: Directors" -------------------- 2b. This target: # <> * A First Section becomes:

A First Section

Was expecting:

A First Section

-------------------------------------------------- 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.) ------------------[end]--------------------------- On Sun, May 27, 2012 at 9:00 AM, William Crandall wrote: > Hello Nicolas and Jambunathan, > > Many thanks, to you both, for such quick and detailed responses! > > --14dae93997df1517a404c13b0b62 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello Nicolas and Jambu= nathan,

Thanks again for your r= esponses to my questions.
I report some success a= nd some "in process."

1. Stylesheet attachmen= t (with #+STYLE:) works fine now.

2. Your special string = example (replace-regexp-in-string),
Nicolas, as well as the= better entity solution (\trade),
both work splendidly.

I'm looking now at = three issues. Please let me know
what I can/should chang= e.

Thanks again for this n= ew export engine!

Cheers,

-BC

Testing: "M-x org-= export-dispatch h"
Org-mode: 7.8.11 (relea= se_7.8.11-18-g244331)
Emacs: 24.1.50.1
Windows 7




-----------------------= ---------------------------

1. UTF-8 XML Encoding

In my init.el:
=A0=A0 (setq org-e-html= -coding-system 'utf-8)

But first line of test.= html:

=A0 <?xml version=3D= "1.0" encoding=3D"iso-8859-1"?>

In test.org:

=A0=A0 org-e-html-codin= g-system is a variable defined in `org-e-html.el'.
=A0=A0 Its value is utf= -8
=A0=A0 Original value w= as nil

=A0=A0 Documentation:
=A0=A0 Coding system fo= r HTML export.
=A0=A0 Use `org-export-= coding-system' as the default value.

And:

=A0=A0 buffer-file-codi= ng-system is a variable defined in `C source code'.
=A0=A0 Its value is utf= -8-dos
=A0=A0 Local in buffer = 6-test.org; global valu= e is utf-8-dos

-----------------------= ---------------------------

2a. Internal HTML links= (#)

Neither links nor desti= nations make it into the html.

This:

=A0=A0=A0 "an inte= rnal section link [[#directors][Directors]]."

becomes:

=A0=A0 "an interna= l section link: <i>Directors</i>.

Was expecting (without = italics):

=A0=A0 ""an i= nternal section link: <a href=3D"#directors">Directors</= a>"

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

2b. This target:=

=A0=A0 # <<direct= ors>>
=A0=A0 * A First Sectio= n

becomes:

=A0=A0 <div id=3D&qu= ot;outline-container-1" class=3D"outline-2">
=A0=A0 <h2 id=3D&quo= t;sec-1">A First Section</h2>
=A0=A0 <div class=3D= "outline-text-2" id=3D"text-1">

Was expecting:
=A0=A0 <div id=3D&qu= ot;outline-container-1" class=3D"outline-2">
=A0=A0 <h2 id=3D&quo= t;sec-1"><a name=3D"directors" id=3D"directors&qu= ot;></a>A First Section</h2>
=A0=A0 <div class=3D= "outline-text-2" id=3D"text-1">

-----------------------= ---------------------------

3. Image and file prefi= xes are as they were.

This (image):
=A0=A0 [[/sites/a.png]]=

becomes:

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

And this (file):=

=A0=A0 [[/sites/my-file= ][My link]]

becomes:

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


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.)

------------------[end]= ---------------------------




On Sun, May 27, 2012 at 9:00 AM, William Crandall <bc3141592@gm= ail.com> wrote:
Hello Nicola= s and Jambunathan,

Many thanks, to you both, for such quick and deta= iled responses!


--14dae93997df1517a404c13b0b62--