From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Crandall Subject: Re: org-e-html: Including ATTR_HTML: title="hover text" Date: Fri, 8 Jun 2012 10:03:35 -0700 Message-ID: References: <87aa0egbvy.fsf@gmail.com> <87wr3ic4pz.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]:35313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sd2b7-0000SC-Ed for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 13:03:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sd2b5-0007F0-0E for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 13:03:41 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:56132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sd2b4-0007EU-OJ for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 13:03:38 -0400 Received: by obbwd18 with SMTP id wd18so3422854obb.0 for ; Fri, 08 Jun 2012 10:03:35 -0700 (PDT) In-Reply-To: <87wr3ic4pz.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 Cc: emacs-orgmode@gnu.org, Jambunathan K Hello Nicolas, Yes, thanks for explanation and code update. It works as you describe, as you can see below. This is a change; now all links within a paragraph are given (inherit) the same ATTR_HTML. Is it possible with the new exporter to add ATTR_HTML attributes to individual link elements? Thanks again for all your work on this! -BC Org-mode: 7.8.11 (release_7.8.11-55-g3f0f87) Emacs: 24.1.50.1 Windows 7 Org input: -------------------------------------------------- #+ATTR_HTML: title=3D"The Org mode homepage" style=3D"color:red;" [[http://orgmode.org]] #+ATTR_HTML: title=3D"Link hover text" [[http://www.orgmode.org][This paragraph]] describes how to use orgmode. A paragraph about #+ATTR_HTML: title=3D"Link hover text" [[./orgmode][org-mode]] which describes org-e-html... #+ATTR_HTML: title=3D"Link hover text" Another paragraph about [[./orgmode][org-mode]] which describes org-e-html... -------------------------------------------------- Old: --------------------------------------------------

http://orgmode.org

This paragraph= describes how to use orgmode.

A paragraph about org-mode which describes org-e-html…

Another paragraph about org-mode which describes org-e-html…

-------------------------------------------------- New: --------------------------------------------------

http://orgmode.org

This paragraph= describes how to use orgmode.

A paragraph about

org-mode which describes org-e-html…

Another paragraph about org-mode which describes org-e-html… -------------------------------------------------- On Fri, Jun 8, 2012 at 6:28 AM, Nicolas Goaziou wrote= : > Hello, > > William Crandall writes: > >> "ATTR_HTML is only for paragraphs, not links." >> >> This puzzles me, because (1) the old exporter works fine >> on links that are inside paragraphs, as my example showed, >> and (2) the Manual says ATTR_HTML lines are for links: > > That's a major change from previous exporter. Now, almost every element, > including paragraphs, can have affiliated keywords at their > beginning. Hence you can write: > > =A0#+attr_latex: something > =A0- item 1 > =A0- item 2 > > or > > =A0#+attr_html: something > =A0Some paragraph. > > This means that > > =A0One paragraph. > =A0#+attr_html: something > =A0[[link]] > =A0Second paragraph > > is equivalent to: > > =A0One paragraph. > > =A0#+attr_html: something > =A0[[link]] > =A0Second paragraph > > > Now let's have a look at your example. > > =A0#+ATTR_HTML: title=3D"The Org mode homepage" style=3D"color:red;" > =A0[[http://orgmode.org]] > > In this case, the affiliated keyword is attached to the paragraph > containing the link. But _the link can inherit from paragraph's > attributes_. > > Since this is not the case yet in, I've added into code base. Is it > working as expected? > > > I hope I am clearer now. > > > Regards, > > -- > Nicolas Goaziou