Just looked at source of this PI and I think you could hi-jack the smarten-punctuation function, in modify.py - line 497 calls the smarten routine for each of the raw html files, so if you called a 'span-trim' function instead, that should manage it.
Edit: Backup your existing PI, and any testing epubs beforehand.
Last edited by Perkin; 04-03-2014 at 12:43 PM.
|