DocCleaner V4.0b3
First of all this extension serves as a small cleanup to remove "garbage" attributes from html-files which where somehow exported from dtp-applications, wordprocessors or web-converters. It handles the following cases:
- remove the width- and height-attributes in the table-, tr- or td-tag in mixed situations
- remove the size, face or color attribute of font-tags or remove font-tags at all
- remove numeric entities or non-breaking-spaces
- rewrite source-code
- additional, flexible tag/attribute-rule-system with own attribute-tag- or tag-combinations via internal regular-expression system
Example:
- to remove all span-tags enter span into the second rules-line
- to remove style-attributes in p- and td-tags enter style and p,td in the first rule-line accordingly
- to remove obscure word-2000 xml-tags look at the source-file and enter tags and attributes like this: class,style and p,td,b,body,br and span,![,!--,o:,w: into the three fields
Best of all, these commands can be applied to the current html-file (it asks to switch into layout-mode), to the current site or to a selection of it. You can even execute these conversions automatically upon saving an open html-file - but take care what you do then!!!
To use this extension, copy the folder "DocCleaner" into the folder "Modules/Extended Scripts" inside the Adobe GoLive-folder and restart GoLive. The extension can be called from the bottom of the special-menu and displays an dialog before it runs.
The extension was tested under GL6 under OS-X - it may run under different installations too :)
Copyright:
(c)2002,2003 Oliver Michalak / werk01.de
This extension is a commercial product, keep your key and this licency private.
History:
(2b done):
- font-css-conversion
- wrong apostrophes
- ... (suggestions are welcome)
V4.0:
- added recursive writing of title tags based on folder heirarchy, including translation table
- added modifier for removing tags
V3.1:
- convert double consequitive <br> tags against a <p> tag
- remove <br> entirely
V3:
- redesigned user interface with multiple menus for more features
- removing ALT attribute from images
- assigning the base filename to the ALT attribute of images
- (re)setting the size of images
V2:
- added removal of nbsp
- rewrite-source added
- flexible attribute-tag-rules added
- fixed a bug where upon apply nothing happens
- fixed a bug where not all attributes are removed
V1.2:
- optionally auto-apply settings upon saving a html-file
V1.1:
- remove width and/or height of merged cells
- remove complete font-tag
- remove numeric entities
- selected buttons are now saved as a preference
V1:
- table- and font-attribute-cleanup
Module Definition:
Scripts:
User Interface Tags: