Sent by andy m on 14 December 2003 20:08
well i had 1720 something pages to do and i used the MSHTML Filter 2
available from their site. It can be automated using batch scripts, my boss
wrote alittle prog using winBatch that will select all .htm files within a
folder(including subfolders) and will run the ms filter on them with a load
o flags. It basically removes all inline css, classes, span, font, and
doesnt create any backup files (ive got them all on a cd so it didn't matter
if it messed up. all those files took about 10 mins to go through although
any filenames with punctuation in (you know: commas brackets fullstpos etc.)
it will stop the programme. He dosen't want me to give it to anybody untill
he has made it a bit nicer (its real crude at the moment) and youll have to
go through and apply all the formatting to the pages (make the headings h1,
h2, h3... make lists into lists as word doesn't always do it and people
don't use the style dropdown box in word to format their pages...grrrrr) but
with a few short cuts in DW (ctrl+1, 2, 3... for the relevant heading,
Ctrl+Shift+P for a paragraph) pages can be formatted in seconds. then if you
use DW to find and replace </head> with <link href="whatever.css"
rel="stylesheet" type="text/css"></head> you can get all the pages to get
the styles in the time it takes to make a coffee, which is nice :)
Anyway, just email me off list and ill send you the batch prog with
instructions (make sure you've got backups of your files on a disk, floppy
or cd) tomorrow (monday).
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://www.msn.co.uk/messenger
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/