Quote:
Originally Posted by Jellby
But I don't think there's anything capable of cleaning up useless <span>s, or the proliferation of almost identical classes (one with 9pt indent, one with 10pt indent, etc.)
|
Not if you want to preserve that information, no. The method I described homogenizes the markup and such variations are lost. Most paragraphs are nothing but <p>text</p>. The retained variations include centering, bolds, italics, and headers. A centered paragraph with two font sizes changes like so:
From this -
Code:
<p class=MsoNormal align=center style='text-align:center;text-autospace:none'><span
style='font-size:9.0pt;mso-bidi-font-size:18.0pt;mso-bidi-font-family:Georgia'>All
rights reserved including the right of </span><span style='mso-bidi-font-size:
18.0pt;mso-bidi-font-family:Georgia'>reproduction in whole</span><span
style='font-size:9.0pt;mso-bidi-font-size:18.0pt;mso-bidi-font-family:Georgia'>
or in part in any form.</span></p>
To this -
Code:
<p class="c1">All rights reserved including the right of reproduction in whole or in part in any form.</p>
With the CSS being merely -
Code:
p.c1 {text-align: center}
Which works fine for me with works of fiction but perhaps not for someone who wants to keep that formatting information.
Ted