From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Crandall Subject: Re: Testing: org-export-e-html Date: Fri, 1 Jun 2012 19:56:28 -0700 Message-ID: References: <87396i3p1w.fsf@gmail.com> <87y5o8365b.fsf@gmail.com> <87d35j2dir.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaeW0-0007L2-Ll for emacs-orgmode@gnu.org; Fri, 01 Jun 2012 22:56:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SaeVy-0007ik-ME for emacs-orgmode@gnu.org; Fri, 01 Jun 2012 22:56:32 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:53883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaeVy-0007hG-Dx for emacs-orgmode@gnu.org; Fri, 01 Jun 2012 22:56:30 -0400 Received: by obbwd18 with SMTP id wd18so4577317obb.0 for ; Fri, 01 Jun 2012 19:56:28 -0700 (PDT) In-Reply-To: <87d35j2dir.fsf@gmail.com> 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: Nicolas Goaziou , Jambunathan K Cc: emacs-orgmode@gnu.org 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: =A0=A0 "old": C-c C-e h=A0=A0=A0=A0=A0 (org-export, in org-exp.el) =A0=A0 "new": M-x org-export-dispatch h=A0 (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 Paragraph with a /dedicated target/: <> -----------------------------------------------------------------[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):

Link and description, to anchor in headline: Directo= rs

Link and description, to anchor in paragraph: BC

directors Direc= tors

Paragraph with a dedicated target: b= c BC

-----------------------------------------------------------------[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):

Link and description, to anchor in headline: Directors

Link and description, to anchor in paragraph: BC

-----------------------------------------------------------------[end] ---------------------------------------------------------------------- I see four discrepancies, in two groups: 1. Both links out (first two p's), to id's in an and a

, do not generate links (foo). 2. At both anchors, , in the

and the

, the tag is not closed with an . 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 tags, and making the <> 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 wrote= : > > Hello, > > William Crandall writes: > >