This tool performs some basic formatting checks on Dreamweaver documents pasted from Word. Before using the tool, make sure that:
you have accepted all tracked changes and removed all comments in the Word document.
the pasted HTML document has proper indentation (in Dreamweaver, Edit -> Code -> Apply Source Formatting).
the pasted HTML document uses double quotes (e.g. "x") instead of single quotes (e.g. 'x') for tag attributes.
if required, superscripts/subscripts have been converted to fake tags (see the readme for details).
if required, math equations have been converted to MathML.
File to format:
Format Dreamweaver footnotes (use the footnote formatter if the footnotes don't use Dreamweaver's formatting):
Remove Dreamweaver-generated links:
Clean up spacing for coding style:
Replace Word-formatted characters/html entities:
Join consecutive tags of the same type:
Replace/remove/format <br> tags:
Remove formatting around punctuation:
Replace em/strong with other tags for italics/bold:
Add/fix/remove tag attributes:
Translate structure for French documents:
Convert manually inserted fake tags to actual tags (see this readme section for details):
Refer to the readme for an explanation of what this is for.
Steps to mark superscripts and subscripts in word:
Open the "replace" box in Word (ctrl+h).
Select "More >>" for additional options.
Check "Use wildcards".
In the "Find what" box, enter ([!(^2)]).
While in the "Find what" box, select "Format", then "Font".
Only check the "Superscript" box. Leave the "Subscript" box unchecked; all other boxes should be filled in, but not checked.
Click "OK". You are now searching for superscript text.
In the "Replace with" box, enter <sup>\1</sup>.
While in the "Replace with" box, select "Format", then "Font".
Only check the "Superscript" box. Leave the "Subscript" box unchecked; all other boxes should be filled in, but not checked.
Click "OK". You are now replacing superscript text.
Click "Replace All" to surround all superscripts with <sup> and </sup>.
Afterwards, repeat these steps for subscripts, but use <sub>\1</sub> for step 8 instead.
A few of these checks assume Dreamweaver formatting when searching for values, and may not be useful if the document has already been partially converted to WET formatting.
The checks that explicitly search for strings that Dreamweaver formatting generates (e.g. links beginning in _Ref) have been marked with *. These have no effect if the document has already been manually formatted, and can be left checked or unchecked.
A few checks assume Dreamweaver formatting by design (e.g. removing attributes from ol tags because, when generated by Dreamweaver, they generally aren't useful), and may remove manually inserted WET formatting. These have been marked with ** and coloured red, and should be unchecked if the document has already been manually formatted.
This tool removes indentation, so be sure to apply source formatting with Dreamweaver afterwards to fix it.
Check the console (ctrl+shift+i) for any errors if nothing is loading.
More in-depth information, including examples for individual checks, can be found in the readme.