Hi Donald,

well, yes, thought that, too ... _after_ I sent it, and when
I dindn't have the time to send a followup ...

I originally wanted a stand-alone html-to-text engine, but 
when I created the browser.r script I got a little distracted.

These are the two mainfunctions:

>> help html/read   
Valid subpath "html/read" is function:

USAGE:
    OBJ url /html /text /links 

DESCRIPTION:
     read url and return the page as ... 
     OBJ is a function value.

ARGUMENTS:
     url -- (Type: url file)

REFINEMENTS:
     /html -- html source
     /text -- text
     /links -- link-list

'Read will read a file/url, and return nothing,
because I now see that I don't really return the
assembled return-value ... it _should_ have been
a block containing the string values for 
/html source
/text converted from html
/links found in the source


>> help html/to-text
Valid subpath "html/to-text" is function:

USAGE:
    OBJ url html 

DESCRIPTION:
     Convert html to text, url is needed for handling of relative urls 
     OBJ is a function value.

ARGUMENTS:
     url -- (Type: url file)
     html -- (Type: string)

'to-text returns a block containing the converted text, and a block
         of strings like "cnt http://www.2b1.de/" where cnt is a 
         reference number inserted in the text, where the link has
         been.
(The 'url argument is really only needed to convert relative urls.)         

I hope that helps


kind regards,

Ingo


Once upon a time Donald Dalley spoketh thus:
> 
> On 11-Nov-00, Ingo Hohmann wrote:
> 
> > attached is the html-to-text engine I used in my %browser.r,
> > it's a little rough at some edges, but might keep you going ...
> 
> Thanks, Ingo, but I need some help with usage, especially for locating the
> HTML source.
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to