W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 1999

Re: Making Tidy into a library call

From: Dave Raggett <dsr@w3.org>
Date: Tue, 6 Jul 1999 15:51:25 +0100 (GMT Daylight Time)
To: Douglas Cook <cookd@cs.byu.edu>
cc: Tidy <html-tidy@w3.org>
Message-ID: <Pine.WNT.4.10.9907061546240.-267919@hazel.hpl.hp.com>
On Fri, 2 Jul 1999, Douglas Cook wrote:

> I will soon begin work integrating Tidy into a larger program
> that I am working on, using it to convert existing files into
> XHTML for input into a database.  I'm working in MS VC++ 6.0,
> buiding for a multiprocessor Windows NT platform.  Has anyone
> else converted Tidy into a library?  Any recommendations or
> things to be aware of?
> 
> I've only looked over the code for a minute or two; the real
> work won't start until after the holiday.  But I guess the
> obvious questions are these:
> 
> Am I spinning my wheels (i.e. has someone already done this that
> could share some of their experiences with me)?

Yes, more than one person has done this. For instance "Chami" has
wrapped Tidy as a DLL for use in HTML-Kit, see the Tidy home page
for a link.

> Which portions of the initialization/uninitialization are "Init
> once/uninit once" and which are "init before each file is
> parsed/uninit after?"

You can see the details in the code for main().

Let me know if there are any changes that need to be made to the
Tidy code itself to forstall any problems arising from regular
updates to Tidy which otherwise you would have problems from
benefitting from.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Tuesday, 6 July 1999 10:46:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT