From: William Crandall <bc3141592@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>,
Jambunathan K <kjambunathan@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Testing: org-export-e-html
Date: Fri, 1 Jun 2012 19:56:28 -0700 [thread overview]
Message-ID: <CAENLK5W7ZBkyB-r-fdoRG0u+SLsX9rAUywcRsCXu+BygJi_bZQ@mail.gmail.com> (raw)
In-Reply-To: <87d35j2dir.fsf@gmail.com>
Hello Jambunathan and Nicolas,
Thanks for your recent updates!
Links are proving to be quite a challenge.
Here is my new test file, and "new" and "old" HTML output,
comparing the two engines:
"old": C-c C-e h (org-export, in org-exp.el)
"new": M-x org-export-dispatch h (in org-export.el)
The entire content of test.org:
----------------------------------------------------------------------
--------------------------------------------------------- Org (input):
Link and description, to anchor in headline: [[#directors][Directors]]
Link and description, to anchor in paragraph: [[#bc][BC]]
* <<directors>>Directors
Paragraph with a /dedicated target/: <<bc>>
-----------------------------------------------------------------[end]
----------------------------------------------------------------------
Reading the Manual (7.8.11), Section 4.2, this org code should,
I think, export exactly as the "old" engine does it, with anchor
href's linking to two targets (Firefox renders it perfectly):
----------------------------------------------------------------------
------------------------------------------------- "Old" HTML (output):
<p>
Link and description, to anchor in headline: <a href="#directors">Directors</a>
</p>
<p>
Link and description, to anchor in paragraph: <a href="#bc">BC</a>
</p>
<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><a name="directors" class="target">directors</a> Directors</h2>
<div class="outline-text-2" id="text-1">
<p>
Paragraph with a <i>dedicated target</i>: <a name="bc" class="target">bc</a> BC
</p>
</div>
</div>
-----------------------------------------------------------------[end]
----------------------------------------------------------------------
The "old" engine is fine (if attuned to HTML4 more than HTML5).
Here is the "new" output (Org-mode release_7.8.11-32-g02f3ee).
----------------------------------------------------------------------
------------------------------------------------- "New" HTML (output):
<p>
Link and description, to anchor in headline: <i>Directors</i>
</p>
<p>
Link and description, to anchor in paragraph: <i>BC</i>
</p>
<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><a id="directors" name="directors"/>Directors</h2>
<div class="outline-text-2" id="text-1">
<p>
Paragraph with a <i>dedicated target</i>: <a id="bc" name="bc"/>BC
</p>
</div>
</div>
-----------------------------------------------------------------[end]
----------------------------------------------------------------------
I see four discrepancies, in two groups:
1. Both links out (first two p's), to id's in an <h> and a <p>,
do not generate links (<a href="#foo">foo</a>).
2. At both anchors, <a>, in the <h2> and the <p>, the <a> tag
is not closed with an </a>. This may be related to the errors
noted in point one, as the HTML is malformed without them.
I *really like* the direction the new engine is heading,
with id attributes in <a> tags, and making the <<target>>
non-visible. And tighter spacing. All good stuff!
Many thanks for doing the heavy lifting!
I look forward to your next commits.
-BC
Org-mode: 7.8.11 (release_7.8.11-32-g02f3ee)
Emacs: 24.1.50.1
Windows 7
On Fri, Jun 1, 2012 at 9:38 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>
> Hello,
>
> William Crandall <bc3141592@gmail.com> writes:
>
>
next prev parent reply other threads:[~2012-06-02 2:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-30 6:27 Testing: org-export-e-html (was: Drupal syntax on html-export) William Crandall
2012-05-30 7:08 ` Testing: org-export-e-html Sebastien Vauban
2012-05-30 11:07 ` Nicolas Goaziou
2012-05-30 23:50 ` William Crandall
2012-05-30 23:53 ` William Crandall
2012-05-31 4:28 ` Jambunathan K
2012-05-31 12:08 ` Nicolas Goaziou
2012-06-01 3:56 ` William Crandall
2012-06-01 6:42 ` William Crandall
2012-06-01 16:38 ` Nicolas Goaziou
2012-06-02 2:56 ` William Crandall [this message]
2012-06-02 5:04 ` Jambunathan K
2012-06-02 7:40 ` William Crandall
2012-06-02 10:26 ` Jambunathan K
2012-05-31 6:42 ` Jambunathan K
2012-06-01 3:44 ` William Crandall
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=CAENLK5W7ZBkyB-r-fdoRG0u+SLsX9rAUywcRsCXu+BygJi_bZQ@mail.gmail.com \
--to=bc3141592@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=kjambunathan@gmail.com \
--cc=n.goaziou@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).