From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Giraud Subject: Re: [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images Date: Wed, 20 Apr 2011 11:41:36 +0200 Message-ID: <87pqoh6yzz.fsf@univ-nantes.fr> 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]:43192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCTun-0002pB-BY for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 05:41:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCTum-0007KC-FP for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 05:41:41 -0400 Received: from smtp-tls1.univ-nantes.fr ([193.52.101.145]:53393 helo=smtp-tls.univ-nantes.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCTum-0007Jm-Ar for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 05:41:40 -0400 In-Reply-To: (aankhen@gmail.com's message of "Wed, 20 Apr 2011 14:40:16 +0530") 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: Aankhen Cc: Bastien , Org-mode ml Aankhen writes: > On Wed, Apr 20, 2011 at 13:39, Manuel Giraud > wrote: > >> 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 f= ile name in > terms of useful alt text. :-) and as useful as "" which is 5 bytes shorter: I think you've won here. > 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]] > `---- Yes, discovered that in the doc just after posting my reply. But, this doesn't work on [[big.jpg][small.jpg]] links as the alt attribute will be placed in the anchor (which is wrong, AFAICT). > I=E2=80=99d suggest using the description part of the link as the alt tex= t, > but then there=E2=80=99d be no way to provide the actual link text (or im= age, > as the case may be), so that=E2=80=99s a non-starter. Now, I'm looking into using the fragment part: less verbose and hopefully it'll work for all kind of inline image. --=20 Manuel Giraud