I'll admit I don't actually program in realbasic yet (my comp is too old to
run it) but I'll see what I can do to help.
Rendering or 'parsing' HTML will require you to search for the characters
< (open angle bracket) and & (ampersand). Each time you find one of these,
you need to pick out the first word following the character as the type of
operation to do. You can then call a subroutine with that name (I'm assuming
this is supported straightforwardly as in Hypercard), which takes the rest
of the tag as its parameter. You would then have to remove quotation marks
and spaces on either side of equal signs, giving you a set of labelled
parameters. You will then need a default set of parameters, or a default
method for determining them, to cover parameters not given in the original
HTML. For ampersands this business would be easier, just read the text up
until the next semi-colon and look it up in a table.
Taking care of tags that mark-up rather than including (eg <a></a>) will
probably require a bit more work - I would expect this involves putting in
some sort of marker where the opening tag was found.
At any rate, make sure you're not outputting the text within the tags at
the end!
Overall this sounds like a huge amount of work, but I wish you well with it.
HTH,
Karl Knechtel {:-#>
da728 at torfree dot net
: I want the program to look at the headers and make the text look right
: (links work right, headings look right, etc.)
: Robert
: >
: > Can you explain more precisely what you mean by "rendering" HTML??
: > Mike
: >
: > Robert Goodwin:
: >
: > > I desperately need some help. I'm thisclose to having a web browser with
: > > an interface I actually like, but I need to know how to render HTML. If
: > > anyone has a clue how to do this, please post it here!!!
: > >
: > > TIA,
: > > Robert