Quote:
Originally Posted by nekokami
So do you have a regexp to share for the first algorithm? Some Word macros that people could download to implement these would be nice.
I believe the next version of Calibre is supposed to include my algorithm, but yours might have been a better choice....
|
No. I don't use regexes. I find they are too fragile and their full impact is difficult to accurately foresee. (i.e.: They fail too easily and sometimes change things they weren't intended to by the regex "writer".)
Pacify more or less uses the algorithm described for fixing quotation marks... you are welcome to download it and play with it and/or check out the source. But it is not ready for primetime as yet.
A word macro might be possible... assuming they use VBScript or JScript... but I haven't done that sort of thing in a while. Perhaps you'd like to take a crack at it, based on the description and the code in pacify.py?
- Ahi