Attached is a patch to the HTML output coder of 6.3.4/SVN, to make it 
generate valid XHTML 1.0 Strict. I believe most folks generating HTML today 
will want it conformant to this more modern spec; for those who need 
old-school HTML4, postprocessing XHTML->HTML4 is a lot easier than 
HTML4->XHTML. (Plus, having valid XML means you can use XSL et al.)

You'll notice that this patch adds alt="" attributes to the <area> elements 
(required by the spec). I wanted to put the image filename in there, but 
couldn't figure out what was going on between the "url" and 
"image->filename" variables.

An aside: If I could make one request for this coder, it would be to allow 
selecting the image map format (with the -format option?), instead of 
hard-coding it to GIF. My application makes JPEG format mandatory, and the 
only current workaround is to generate the image map and HTML separately.


--Daniel


-- 
NAME   = Daniel Richard G.       ##  Remember, skunks       _\|/_  meef?
EMAIL1 = [EMAIL PROTECTED]        ##  don't smell bad---    (/o|o\) /
EMAIL2 = [EMAIL PROTECTED]      ##  it's the people who   < (^),>
WWW    = http://www.******.org/  ##  annoy them that do!    /   \
--
(****** = site not yet online)
_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to