All I can think of at present (not in a programming frame of mind at moment) is...
Either look through and see if you can 'piggy-back' one of this (or other) plug-in functions, or add your own function, or do the same to one of the editor functions, or wait for Kovid to add PI functionality into editor.
I suppose it will need to be a function that receives the raw html file(s) that need to be worked on, unless you can adapt it yourself.
I haven't done much programming over the last 6+ months, switched over to a mac and haven't got into coding on it yet, and am not currently 'with it'.
Hope this gives you an idea, and it's work/do-able.
|