Thread: font sizes ?
View Single Post
Old 07-21-2010, 10:45 AM   #18
Dellaster
本の虫
Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.
 
Dellaster's Avatar
 
Posts: 242
Karma: 344
Join Date: May 2008
Location: USA
Device: Kindle3, DXG, Fire · iPad, iPod
Quote:
Originally Posted by Jellby View Post
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
Dellaster is offline   Reply With Quote