From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aankhen Subject: Re: [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images Date: Wed, 20 Apr 2011 14:40:16 +0530 Message-ID: References: <1303202089-27231-1-git-send-email-manuel.giraud@univ-nantes.fr> <87vcyah9y1.fsf@gnu.org> <87y635739o.fsf@univ-nantes.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:32976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCTQj-0006Xy-W3 for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 05:10:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCTQi-0002eu-Ua for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 05:10:37 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:47700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCTQi-0002eq-PQ for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 05:10:36 -0400 Received: by vws4 with SMTP id 4so558023vws.0 for ; Wed, 20 Apr 2011 02:10:36 -0700 (PDT) In-Reply-To: <87y635739o.fsf@univ-nantes.fr> 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: Manuel Giraud , Bastien , Org-mode ml On Wed, Apr 20, 2011 at 13:39, Manuel Giraud wrote: > Aankhen writes: > >> This might not be the best solution. The purpose of the =E2=80=98alt=E2= =80=99 >> attribute is to provide a textual alternative, which the file name >> really isn=E2=80=99t. It would be better to provide an empty value: >> >> [snip] > > I knew it was not the best solution: all i wanted was to validate. But > an empty alt or maybe just "image" is fine by me too. Fair enough. :-) =E2=80=98image=E2=80=99 would be about the same as the fil= e name in terms of useful alt text. >> I took a look at =E2=80=98org-html.el=E2=80=99 and changed the relevant = line, but it >> doesn=E2=80=99t seem to have any effect. > > I've tested my patch only on [[big_image.png][small_image.png]] kind of > link (maybe that's why). Possibly=E2=80=94while I was hacking on it, I couldn=E2=80=99t quite pin do= wn when it had an effect and when it didn=E2=80=99t. >> [snip] > > Ok, those 2 last hunk should complete my patch I guess. But what I'd > really like is a way to set a alt as a user. Maybe something like this: > > [[big_image.png][small_image.png|my picture is cool]] > > What you guys think? I'll look what i can do and try to make it work for > anykind of tag that can be generated. Well, there /is/ a way to do that already, it=E2=80=99s just verbose: ,----[ Org ] | * Foo | #+ATTR_HTML: alt=3D"The elusive foo in its native habitat." | [[file:foo.png]] `---- ,----[ HTML ] |
|

1 Foo

|
| |

3D"The |

|
`---- I=E2=80=99d suggest using the description part of the link as the alt text, but then there=E2=80=99d be no way to provide the actual link text (or imag= e, as the case may be), so that=E2=80=99s a non-starter. Aankhen