emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: FR: Display images in org-mode?


From: William Henney
Subject: Re: [Orgmode] Re: FR: Display images in org-mode?
Date: Tue, 8 Jan 2008 08:56:40 -0600

On Jan 8, 2008 8:48 AM, MarkS <address@hidden> wrote:
> Bastien <bzg <at> altern.org> writes:
>
> > For now there is this rule applying to the HTML export: if an image link
> > has no description, or if the description and the link are equal, inline
> > the image in the HTML output:
> >
> >   [[file:/home/me/me.jpg]] => <img src="[img URL]">
> >
> > If there is some informative description
> > then don't inline the image, juste link to it.
> >
> >   [[file:/home/me/me.jpg][Me!]] => <a href="[img URL]">Me!</a>
> >
> > Would this rule be okay for inlining images in the buffer as well?
> >
>
> Is that the rule, or is this the rule (from the documentation):
>
>   If the description is a file name or URL that points to an
>   image, HTML export (*note HTML export::) will inline the image
>   as a clickable button.  If there is no description at all and
>   the link points to an image, that image will be inlined into
>   the exported HTML file.
>
>
> This latter rule would work. One would want the exported HTML to be a 
> clickable
> button so that you could, for example, have a thumbnail on the page that 
> points
> to a higher resolution version in a different directory.
>
> The thing that's missing from either approach is that you can't specify
> attributes -- especially the alt tag for creating w3c compliant, disability
> accessible, search-engine friendly image descriptions.
>

Perhaps a separate link type would be best for that

[[image:/path/to/file.jpg][My description]]

=> <img src="[img URL]" alt="My description">

There could also be "movie:" and "audio:", or even just a general link
type "media"", which automagically Does The Right Thing.

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia




reply via email to

[Prev in Thread] Current Thread [Next in Thread]