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: Sat, 9 Jun 2012 18:43:48 -0700 Message-ID: References: <87aa0egbvy.fsf@gmail.com> <87wr3ic4pz.fsf@gmail.com> <87r4tpwhul.fsf@gmail.com> <87ipf0egkz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdXC5-0001WA-JJ for emacs-orgmode@gnu.org; Sat, 09 Jun 2012 21:43:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdXC3-00080E-Q7 for emacs-orgmode@gnu.org; Sat, 09 Jun 2012 21:43:53 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:42128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdXC3-000802-HM for emacs-orgmode@gnu.org; Sat, 09 Jun 2012 21:43:51 -0400 Received: by obbwd18 with SMTP id wd18so6633277obb.0 for ; Sat, 09 Jun 2012 18:43:48 -0700 (PDT) In-Reply-To: <87ipf0egkz.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, Many thanks for explaining the logic and functionality of the new exporter. I confess I am puzzled by the choice to drop the ability to apply attributes to links. The use case I'm aiming for is a standard HTML feature: 3.2.3.2 The 'title' attribute The title attribute represents advisory information for the element, such as would be appropriate for a tooltip. On a link, this could be the title or a description of the target resource; on an image, it could be the image credit or a description of the image; on a paragraph, it could be a footnote or commentary on the text; on a citation, it could be further information about the source; and so forth. http://www.w3.org/TR/html5/global-attributes.html#the-title-attribute In org-e-html today, it is only possible to attach a unique attribute to a paragraph; all links within that paragraph inherit its attributes. If a paragraph contains two links, they are both forced to show the same tooltip. The old exporter allowed this specificity, correctly interleaving link and image titles in one paragraph: Org input: -------------------------------------------------- A paragraph with three papers, and an image: #+ATTR_HTML: title="Paper #1" [[./local/01.html][a first paper]] followed by #+ATTR_HTML: title="Paper #2" [[./local/02.html][a second paper]] which describe stuff. It then offers a cat #+ATTR_HTML: title="Some cats" alt="Cat image" [[./local/cats.png]] and finally a third, PDF paper #+ATTR_HTML: title="Paper #3" [[./local/03.pdf][a third paper]] -------------------------------------------------- Old exporter: --------------------------------------------------

A paragraph with three papers, and an image: a first paper followed by a second paper which describe stuff. It then offers a cat Cat image and finally a third, PDF paper a third paper

-------------------------------------------------- I believe that this ability, this specificity within paragraphs, is generally quite useful, and I hope that you will consider it for the new exporter. If I'm missing something, if there /is/ a way to add individual link attributes, please let me know. It doesn't sound like filters allow that. Thanks again, for building and explaining. -BC Org-mode version 7.8.11 (release_7.8.11-64-g168c83) GNU Emacs 24.1.50.1 (i386-mingw-nt6.1.7601) Windows 7