List Info

Thread: HTML coder output




HTML coder output
user name
2007-05-13 21:22:52
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 = skunkiskunk.org        ##  don't smell bad---  
 (/o|o) /
EMAIL2 = skunkalum.mit.edu      ##  it's the people who 
 < (^),>
WWW    = http://www.******.org/  ##
 annoy them that do!    /   
--
(****** = site not yet online)

_______________________________________________
Magick-developers mailing list
Magick-developersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/m
agick-developers

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )