writes:
> If org-mode source text is:
>
> --------------------------------------------------
> A paragraph about
> #+ATTR_HTML: title="Link hover text"
> [[http://orgmode.org]]
> exalting new emacs mode...
> --------------------------------------------------
> "M-x org-export-dispatch h" generates:
>
> --------------------------------------------------
>
> A paragraph about
>
>
> http://orgmode.org
> exalting new emacs mode…
>
> --------------------------------------------------
>
> which is less grand.
>
> I see two needed fixes, reading
> http://orgmode.org/org.html#Links-in-HTML-export
>
> 1. A new should not be inserted before
> lines starting #+ATTR_HTML.
It sure should: you're starting a new paragraph containing a link and
"exalting new emacs mode..." text.
ATTR_HTML is an attribute for paragraphs, not links (though it may apply
on links within the paragraph).
You may want to add your title attribute with filters.
Regards,
--
Nicolas Goaziou
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: Thu, 7 Jun 2012 15:26:29 -0700
Message-ID:
References:
<87aa0egbvy.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]:56879)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1SclA2-000558-NR
for emacs-orgmode@gnu.org; Thu, 07 Jun 2012 18:26:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1SclA0-0006wR-3W
for emacs-orgmode@gnu.org; Thu, 07 Jun 2012 18:26:34 -0400
Received: from mail-ob0-f169.google.com ([209.85.214.169]:34783)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1Scl9z-0006wH-SL
for emacs-orgmode@gnu.org; Thu, 07 Jun 2012 18:26:32 -0400
Received: by obbwd18 with SMTP id wd18so1917784obb.0
for ; Thu, 07 Jun 2012 15:26:29 -0700 (PDT)
In-Reply-To: <87aa0egbvy.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,
Thanks for your email. You write:
"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:
12.5.4 Links in HTML export
http://orgmode.org/org.html#Links-in-HTML-export
If you want to specify attributes for links, you can do so using a
special #+ATTR_HTML line to define attributes that will be added to
the or
tags. Here is an example that sets title and style
attributes for a link:
#+ATTR_HTML: title=3D"The Org mode homepage" style=3D"color:red;"
[[http://orgmode.org]]
Thanks for looking at this again!
-BC
On Thu, Jun 7, 2012 at 12:28 PM, Nicolas Goaziou wrot=
e:
> Hello,
>
> William Crandall writes:
>
>> If org-mode source text is:
>>
>> --------------------------------------------------
>> A paragraph about
>> #+ATTR_HTML: title=3D"Link hover text"
>> [[http://orgmode.org]]
>> exalting new emacs mode...
>> --------------------------------------------------
>
>> "M-x org-export-dispatch h" generates:
>>
>> --------------------------------------------------
>>
>> A paragraph about
>>
>>
>> http://orgmode.org
>> exalting new emacs mode…
>>
>> --------------------------------------------------
>>
>> which is less grand.
>>
>> I see two needed fixes, reading
>> http://orgmode.org/org.html#Links-in-HTML-export
>>
>> 1. A new
should not be inserted before
>> =A0 =A0lines starting #+ATTR_HTML.
>
> It sure should: you're starting a new paragraph containing a link and
> "exalting new emacs mode..." text.
>
> ATTR_HTML is an attribute for paragraphs, not links (though it may apply
> on links within the paragraph).
>
> You may want to add your title attribute with filters.
>
>
> Regards,
>
> --
> Nicolas Goaziou
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: Fri, 08 Jun 2012 15:28:56 +0200
Message-ID: <87wr3ic4pz.fsf@gmail.com>
References:
<87aa0egbvy.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
Return-path:
Received: from eggs.gnu.org ([208.118.235.92]:55705)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1SczIW-0001Nt-Li
for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 09:32:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1SczIJ-0001JQ-K4
for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 09:32:16 -0400
Received: from mail-wi0-f171.google.com ([209.85.212.171]:36569)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1SczIJ-0001IA-Bn
for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 09:32:03 -0400
Received: by wibhm14 with SMTP id hm14so433339wib.12
for ; Fri, 08 Jun 2012 06:32:01 -0700 (PDT)
In-Reply-To:
(William Crandall's message of "Thu, 7 Jun 2012 15:26:29 -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:
> "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:
#+attr_latex: something
- item 1
- item 2
or
#+attr_html: something
Some paragraph.
This means that
One paragraph.
#+attr_html: something
[[link]]
Second paragraph
is equivalent to:
One paragraph.
#+attr_html: something
[[link]]
Second paragraph
Now let's have a look at your example.
#+ATTR_HTML: title="The Org mode homepage" style="color:red;"
[[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
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
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: Sat, 09 Jun 2012 00:37:22 +0200
Message-ID: <87r4tpwhul.fsf@gmail.com>
References:
<87aa0egbvy.fsf@gmail.com>
<87wr3ic4pz.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
Return-path:
Received: from eggs.gnu.org ([208.118.235.92]:56555)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1Sd7r9-000717-Fm
for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 18:40:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1Sd7r7-00055A-Uh
for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 18:40:35 -0400
Received: from mail-wi0-f171.google.com ([209.85.212.171]:59753)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1Sd7r7-000556-M0
for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 18:40:33 -0400
Received: by wibhm14 with SMTP id hm14so772648wib.12
for ; Fri, 08 Jun 2012 15:40:30 -0700 (PDT)
In-Reply-To:
(William Crandall's message of "Fri, 8 Jun 2012 10:03:35 -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:
> This is a change; now all links within a paragraph
> are given (inherit) the same ATTR_HTML.
Indeed.
> Is it possible with the new exporter to add ATTR_HTML
> attributes to individual link elements?
No, it isn't possible to control individual link elements with
affiliated keywords.
Regards,
--
Nicolas Goaziou
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 16:53:57 -0700
Message-ID:
References:
<87aa0egbvy.fsf@gmail.com>
<87wr3ic4pz.fsf@gmail.com>
<87r4tpwhul.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]:55634)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1Sd90D-00012c-CA
for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 19:54:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1Sd90B-00027H-KZ
for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 19:54:00 -0400
Received: from mail-ob0-f169.google.com ([209.85.214.169]:61919)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1Sd90B-00027B-Co
for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 19:53:59 -0400
Received: by obbwd18 with SMTP id wd18so3955012obb.0
for ; Fri, 08 Jun 2012 16:53:57 -0700 (PDT)
In-Reply-To: <87r4tpwhul.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
Ah, that is a pity.
Seems like a step back, in allowable specificity.
As it was possible in the old.
You mentioned before using "filters." I take it these
are the ones described in org-export-filters.el (line 1775),
"The Filter System."
Has anyone written up any worked examples of these?
And, is that the best tool for adding attributes to links?
Thanks again,
-BC
On Fri, Jun 8, 2012 at 3:37 PM, Nicolas Goaziou wrote:
> Hello,
>
> William Crandall writes:
>
>> This is a change; now all links within a paragraph
>> are given (inherit) the same ATTR_HTML.
>
> Indeed.
>
>> Is it possible with the new exporter to add ATTR_HTML
>> attributes to individual link elements?
>
> No, it isn't possible to control individual link elements with
> affiliated keywords.
>
>
> Regards,
>
> --
> Nicolas Goaziou
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: Sat, 09 Jun 2012 15:54:20 +0200
Message-ID: <87ipf0egkz.fsf@gmail.com>
References:
<87aa0egbvy.fsf@gmail.com>
<87wr3ic4pz.fsf@gmail.com>
<87r4tpwhul.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
Return-path:
Received: from eggs.gnu.org ([208.118.235.92]:60268)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1SdMAN-0007lN-Gj
for emacs-orgmode@gnu.org; Sat, 09 Jun 2012 09:57:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1SdMAL-0000xr-MZ
for emacs-orgmode@gnu.org; Sat, 09 Jun 2012 09:57:23 -0400
Received: from mail-wi0-f171.google.com ([209.85.212.171]:59909)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1SdMAL-0000xn-Dc
for emacs-orgmode@gnu.org; Sat, 09 Jun 2012 09:57:21 -0400
Received: by wibhm14 with SMTP id hm14so1070410wib.12
for ; Sat, 09 Jun 2012 06:57:19 -0700 (PDT)
In-Reply-To:
(William Crandall's message of "Fri, 8 Jun 2012 16:53:57 -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:
> You mentioned before using "filters." I take it these are the ones
> described in org-export-filters.el (line 1775), "The Filter System."
> Has anyone written up any worked examples of these?
org-e-ascii.el and org-e-html.el both use filters. Also, I posted a few
examples on this list while answering to requests from users.
> And, is that the best tool for adding attributes to links?
Besides your canonical example, I don't know exactly what are your
needs. Hence, it may be, but that's hard to tell.
Filters are meant to modify output from transcoders (so you're working
with HTML, or LaTeX, or... material) before it is concatenated into
global result. They allow the user to have the last word in any
situation.
You can also define your own transcoders if you prefer to work on parsed
data.
Now, if the attributes you want to add have no pattern with regards to
related link, you cannot do much programmatically and you'll have to
insert HTML code manually.
Also, besides code comments, you may have a look at:
http://orgmode.org/worg/dev/org-export-reference.html
Regards,
--
Nicolas Goaziou
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
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
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
>
> 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