Ticket #388: ALT attribute for images

2 views
Skip to first unread message

FND

unread,
Oct 10, 2007, 6:28:56 AM10/10/07
to TiddlyWikiDev
Ticket URL: http://trac.tiddlywiki.org/ticket/388

Images generated from TiddlyWiki markup currently do not have an ALT
attribute.

This means that when the respective image file is not
available/accessible, there will be no placeholder, just an invisible
element. (Not to mention that the resulting HTML code is invalid.)

That in turn can easily lead to confusion, so there should always be an
''ALT'' attribute (either using the specified title, or the filename as
a fallback value).

The fix is easy too:
http://trac.tiddlywiki.org/attachment/ticket/388/imgAlt.patch

Note that there's some odd behavior that I haven't looked into yet; when
a link has been specified, the text disappears on mouse-over/hover.


-- F.

FND

unread,
Oct 10, 2007, 8:52:20 AM10/10/07
to Tiddly...@googlegroups.com
> The fix is easy too

Actually, wouldn't it make sense to add optional parameters for size and
height? They're can be very useful (even essential).
However, I'm not sure what the syntax for that should be (MediaWiki uses
"[[FILENAME|WIDTHxHEIGHTpx|TITLE]]").


-- F.

schilke

unread,
Oct 10, 2007, 11:21:51 AM10/10/07
to TiddlyWikiDev
> Actually, wouldn't it make sense to add optional parameters for size and
> height? They're can be very useful (even essential).

just as a side note:

<!ELEMENT img EMPTY>
<!ATTLIST img
%attrs;
src %URI; #REQUIRED
alt %Text; #REQUIRED
longdesc %URI; #IMPLIED
height %Length; #IMPLIED
width %Length; #IMPLIED
usemap %URI; #IMPLIED
ismap (ismap) #IMPLIED
>

http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict

--s

Ken Girard

unread,
Oct 10, 2007, 11:25:23 AM10/10/07
to TiddlyWikiDev
I agree with the need for width height options. (Some of my writing
just doesn't look right with out the picture.)
And since we are installing a new standard, following the MediaWiki
guide now makes sense and should make it easiest for cross users.

Ken Girard

Daniel Baird

unread,
Oct 10, 2007, 8:38:08 PM10/10/07
to Tiddly...@googlegroups.com
On 11/10/2007, Ken Girard <ken.g...@gmail.com> wrote:
>
> I agree with the need for width height options. (Some of my writing
> just doesn't look right with out the picture.)
> And since we are installing a new standard, following the MediaWiki
> guide now makes sense and should make it easiest for cross users.
>
> Ken Girard

Anyone familiar with what WikiCreole does for image sizes? I think
generally we should follow WikiCreole for new stuff (they've already
done the thinking about what users might already know)

--
Daniel Baird
"In teh beginnin Invisible Man was invisible, and he maded the skiez
and da earths, but he did not eated it." -- Genesis 1:1,
lolcatbible.com

FND

unread,
Oct 11, 2007, 2:19:10 AM10/11/07
to Tiddly...@googlegroups.com
> Anyone familiar with what WikiCreole does for image sizes?

I'd already checked that - unfortunately, they have no specs for this:
http://tinyurl.com/yqf4cn
(http://www.wikicreole.org/wiki/Creole1.0#section-Creole1.0-ImageInline)


-- F.

Xavier Verges

unread,
Oct 11, 2007, 2:53:35 AM10/11/07
to TiddlyWikiDev
> Actually, wouldn't it make sense to add optional parameters for size and
> height? They're can be very useful (even essential).

Just for completeness while this remains an open ticket, a reminder
that images can be sized with styles and then use the usual
{{class{ }}} syntax

.narrowImage img
{
width: 160px;
}

{{narrowImage{[img[BlahBlah|blah.png]]}}}

-Xv

FND

unread,
Oct 11, 2007, 2:58:42 AM10/11/07
to Tiddly...@googlegroups.com
> Just for completeness while this remains an open ticket, a reminder
> that images can be sized with styles and then use the usual
> {{class{ }}} syntax

I know, but that can quickly become cumbersome, and not newbie-friendly
(few TW users know about CSS descendant selectors).

Nevertheless, the ALT attribute is definitely much more important.


-- F.

Reply all
Reply to author
Forward
0 new messages