From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-e-html: Including ATTR_HTML: title="hover text" Date: Thu, 14 Jun 2012 11:51:14 +0200 Message-ID: <87d3529q7h.fsf@gmail.com> 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 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf6l7-0003hB-JE for emacs-orgmode@gnu.org; Thu, 14 Jun 2012 05:54:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sf6l1-0003ak-AK for emacs-orgmode@gnu.org; Thu, 14 Jun 2012 05:54:33 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:56592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf6l1-0003aa-1p for emacs-orgmode@gnu.org; Thu, 14 Jun 2012 05:54:27 -0400 Received: by wgbds1 with SMTP id ds1so6004895wgb.0 for ; Thu, 14 Jun 2012 02:54:23 -0700 (PDT) In-Reply-To: (William Crandall's message of "Sat, 9 Jun 2012 18:43:48 -0700") 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: William Crandall Cc: emacs-orgmode@gnu.org, Jambunathan K Hello, William Crandall writes: > I confess I am puzzled by the choice to drop the ability > to apply attributes to links. That's not a choice /per se/, merely an annoying side-effect of moving to an overall better paradigm. > 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. I understand your problem, but inserting ATTR_HTML keywords in a paragraph isn't possible anymore. I cannot allow that as it would defeat a fundamental change in the new Org syntax. Though, I'm open to any other suggestion. For example, link's syntax could be extended to allow attributes, much like Babel's inline source blocks or calls. It would probably require many changes to core, though. ATTR_HTML could also accept a list of properties that would be applied in order to each link in the paragraph. But it wouldn't scale well with a large number of links. I'm certain there are better solutions out there. Regards, -- Nicolas Goaziou