emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Crandall <bc3141592@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org, Jambunathan K <kjambunathan@gmail.com>
Subject: Re: org-e-html: Including ATTR_HTML: title="hover text"
Date: Sat, 9 Jun 2012 18:43:48 -0700	[thread overview]
Message-ID: <CAENLK5VJqvgDOjkEmG69e37C-2r6WTFHF1PNJT47F7OtO=OLdg@mail.gmail.com> (raw)
In-Reply-To: <87ipf0egkz.fsf@gmail.com>

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:
--------------------------------------------------
<p>
A paragraph with three papers, and an image:
<a href="./local/01.html" title="Paper #1">a first paper</a>
followed by
<a href="./local/02.html" title="Paper #2">a second paper</a>
which describe stuff. It then offers a cat
<img src="./local/cats.png" title="Some cats" alt="Cat image" />
and finally a third, PDF paper
<a href="./local/03.pdf" title="Paper #3">a third paper</a>
</p>
--------------------------------------------------


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

  reply	other threads:[~2012-06-10  1:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-07  2:08 org-e-html: Including ATTR_HTML: title="hover text" William Crandall
2012-06-07  2:59 ` William Crandall
2012-06-07 19:28 ` Nicolas Goaziou
2012-06-07 22:26   ` William Crandall
2012-06-08 13:28     ` Nicolas Goaziou
2012-06-08 17:03       ` William Crandall
2012-06-08 22:37         ` Nicolas Goaziou
2012-06-08 23:53           ` William Crandall
2012-06-09 13:54             ` Nicolas Goaziou
2012-06-10  1:43               ` William Crandall [this message]
2012-06-14  9:51                 ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAENLK5VJqvgDOjkEmG69e37C-2r6WTFHF1PNJT47F7OtO=OLdg@mail.gmail.com' \
    --to=bc3141592@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).