On 8 Feb 2004 12:57:07 -0800,
pr***********@yahoo.com (Amit) wrote:
i have a site with a huge number of pages which uses pure html with
font tag etc.
i plan to migrate the whole thing into xhtml/css and i am looking for
some automated tool for this
i used tidy, but tidy makes inline css for everypage and i want a
single external css file.
It is most unlikely that this can be done automatically. Your external
CSS file will in any case have to be created manually: for example no
tool can create meaningful class names for you. And no tool can
determine whether two very similar <font> elements differ for a reason
or not.
You can then speed up the conversion of individual files with a good
macro-editor, but it remains a basically manual process. Concentrate on
doing new pages correctly, and tidy up old pages when they need to be
updated anyway.
Based on my experience with converting a few tag-soup pages, it's often
easier not to convert them as such (by which I mean writing a macro
which tries to convert a particular font definition to a particular
class), but to start by simply stripping out all the <font> junk
completely, and then add the classes back in manually.
--
Stephen Poley
http://www.xs4all.nl/~sbpoley/webmatters/