Many thanks.
Am I right in thinking that edit book will be getting saved Find and Replace? If so, then another way to achieve a configurable smarten punctuation would be executing a previously saved Find & Replace, something like this:
The saved Find & Replace would need to include all the parameters in the Find and Replace GUI, including Mode, the files to be affected, case sensitivity etc, the action to be performed when executed (Find, Replace, Replace all etc).
The user could automatically execute the saved Find & Replace, without having to first load it into the Find and Replace dialog and execute it from there.
Multiple saved Find & Replaces could be chained together, or executed as children of a parent container.
The overall effect is that a single menu/button click would execute multiple, previously configured regexes. This would be a very powerful feature to enable the user to make a lot of bespoke, automated changes, and goes beyond what Sigil supports. It also solves the problem of the currently hard coded regexes in smartyPants.
Any thoughts on this?
|