View Single Post
Old 05-15-2010, 01:22 PM   #2
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
You should be able to do it all with a single find & replace if you use regular expressions. I don't know the regular expression syntax Word uses.

There are also text editors with such functionality built in, such as Ebook tidy.

For batch mode, I'm sure you could do bulk reg ex find and replaces in something like Notepad++. Or you could do it with a command line search & replaceme tool such as sed.

Don't have access to a Windows computer at the moment, or I'd give more detailed instructions. If you want instructions for linux (or, I think mac), I'd be happy to give them.

And while I could be wrong, I'd be shocked if calibre doesn't have this functionality built in, at least as something that can optionally be activated, as part of its conversion processes.
frabjous is offline   Reply With Quote