New Macro for formatting books
All:
Over some time during converting some paper books to electronic edition I have developed my own set of macros for repairing book files.
It does the following.....
removes forced CR's (the macro tries to find paragraphs by looking at the end of the proceding line for valid 'end of paragraph patterns' like the full stop for example. Although not infallible I found it works a treat for general documents.)
removes multiple spaces and loops until all gone
set entire doc font
removes multiple rejection characters
fixes lower case ' i ' to ' I '
looks for and highlights (for review) anomolous single lower case letters and numbers.
fixes common ocr punctuation errors
marks for review other common ocr mistakes.
when it finishes it sets the word 'find' field the to (common) ocr rejection characater '~'. so you can start hitting 'find next' to review anything highlighted
various other bits and bats.
This macro will probably break anything with formulas in it and poetry.
It's relatively easy to follow if you read it slowly, you should be able to customise it to your own needs.
If your completely clueless as to macro code and don't want to read through it, backup your file before using! ( in fact, backup your files anyway!)
It will make a little mess of chapter lines - so they will need to be reviewed after running.
I've attached it to this post, I have added comments to it to help clarify what each part does. The file contains a lot of little macros each doing a seperate part, to run them all in order there is a macro called 'main' assign this to a toolbar button and away you go!
|