On Mon, 2003-02-03 at 17:52, Bill Janssen wrote: > > Is anyone interested in having WAP support? Should I post a patch of > > what I've done? > > Yes, I'd be very interested in looking at it.
Attached is a patch to add my basic WAP support to the parser. As I mentioned, it is just a hack of the html parser. Some comments: - I don't yet handle do, go, or anchor tags. Most of these I've seen implement the prev/back functions for which plucker has no equivalent anyway. - Didn't look at tables. I imagine the current html code would work fine, but I haven't tried. - card tags act like divs. I don't think there is much need to make separate pages for each card since the palm screen is bigger than a phone :) - Imagemagick can handle the wbmp image format that WAP requires, but the parser is crapping out on the identify command. For some reason, Imagemagick can't identify the tmpfile's format unless it ends in .wbmp - I am creating an icon set which can be included for img tags with the localsrc attribute. (I just finished an i-mode set which I will post shortly.) I'm still reading up on WAP, but the above aside, I don't think there is much else needed to support what is applicable to plucker: no forms, don't need the scripting, etc. > > Which python module should be used: sax, dom, the old xmllib, or sgmllib > > (as sgmllib would still parse invalid xml documents, no?). > > I've been using sax and xmllib at the moment. I'm trying to get an sax implementation for xml data worked out. There really isn't standard mime types for each different dtd, so generic_parser() would call a generic xml parser which would have it's pick from a bunch of ContentHandler classes for each supported type of xml data, but how would it decide which to use? Try to grep a DTD line, and failing that, try to guess based on the root tag? That seems a little hackish to me, is there a feature of the sax lib that I am missing that would help me out with this? Thanks. -- Dave <[EMAIL PROTECTED]>
wap.patch.gz
Description: GNU Zip compressed data
