View Single Post
Old 09-17-2011, 05:25 PM   #9
BillSmithBooks
Padawan Learner
BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.BillSmithBooks ought to be getting tired of karma fortunes by now.
 
BillSmithBooks's Avatar
 
Posts: 243
Karma: 1085815
Join Date: May 2009
Location: www.OutlawGalaxy.com, Foothills of NY's Adirondack mountains
Device: My PC...using Puppy Linux (FBReader, Calibre, Kindle Cloud Reader,
I think this will work for you...

This is what I do when formatting my plain text books to simple HTML.

1) Search for ^p_ and (space)_ and change them to ^p<i> and (space)<i> -- this finds all the beginning italics and the italics that start at the beginning of a paragraph.

2) Then just do a search for any remaining _ and change to </i>

This should work just fine as long as the author didn't do any duplicate _ _ marks. Or, rather than just do an auto-change, you could search for each change one at a time to make sure it is the right type of change.
BillSmithBooks is offline   Reply With Quote