[ENH]Html table (very crude version)

Karl Ramberg karl.ramberg at chello.se
Mon Aug 20 18:23:50 UTC 2001


John Hinsley wrote:
> 
> Karl Ramberg wrote:
> 
> > I like to torture my self so I decided to add tables to
> > the html parser, so Scamper would do more justice to all
> > those wonderful web pages out there.
> > A few days later and here is what I got so far.
> > This table version takes no regards to the html attributes
> > the table has, it just puts up some morphs and tries to
> > lay out the stuff inside the table.
> > A gif of the heading table at minnow is attached.
> > I would love to get some feedback to how to proceed and
> > encouragement if this is a worth while PITA.
> >
> 
> Sorry for the .html reply: Netscape seems to believe that a html message needs
> a html answer (or I'll crash, so there!).
> 
> I do think this is really, really, important for Scamper, but I'm not sure this
> is the way to do it: still it's early days, eh?  (And I know nuffink!)
It is still in crude and brutal hack version :-)
> 
> Two things come to mind very early on:
> 
> Why is the background green? I mean, whatever the background really is on the
> html page, your table as morphs always come out as green.
Yup, the table is made up of alignment morphs and they initialize as
green. I have yet to implement use of the attributes to the tags.
> 
> People often put links within tables. Although they'll work in standard Scamper
> mode, they are stone dead with the change set.
This is also broken by some raw cut and paste of code. 
> 
> The alignment is sometimes wierd (I guess it's not reading the tags, but the
> text, and aligning  to suit the text.). But it'll also do wierd alignment stuff
> with images (I can send you some examples off list if you like).
> 
> BTW, some of my most complex tables are generated as .php (through a MySQL
> database): can anyone suggest a quick tweak to convince Scamper (or the HTML
> Parser) to treat .php as .html? These would give a changeset a real workout!
I added support for mp3 a long time ago. I can dig up that code and 
and trace down the essential places to add mimetypes.
> 
> But I really do think this stuff is worthwhile. 

Thanks for the support. 

Karl




More information about the Squeak-dev mailing list