View Single Post
Old 04-01-2009, 09:34 AM   #14
Sweetpea
Grand Sorcerer
Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.
 
Sweetpea's Avatar
 
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
I generally use regular expression search and replace...

To take your example (replaced your weird characters with the quotes for readability):

Code:
<div style="margin-top: 6"/>
<div style="text-indent: 1em"><font size="3">"What I was going to ask your boss, Charley, is if there is some good reason you can't go to Buenos Aires right now."</font></div>
<div style="margin-top: 6"/>
in my style:

.emptyLine { margin-top: 6em; }
p { text-indent: 1em; font-size: normal; }


<div style="margin-top: 6" /> would be replaced with <div class="emptyLine" />
<div style="text-indent: 1em"><font size="3"> would be replaced with <p>
</font></div> would be replaced by </p>



I generally start with headers and other exceptions (there are less headers than paragraphs, generally ). Then I create an epub out of it, check it, fix any errors and repeat the checking process until it's clean.
Sweetpea is offline   Reply With Quote