Thread: LRF output
View Single Post
Old 04-05-2010, 11:44 PM   #868
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Quote:
Originally Posted by Amalthia View Post
Yeah, I was trying to avoid that option. I have over 150 stories I'd have to edit the HTML in order to fix the spacing issue. Currently the EPUB and Mobi do not display the same problem...
Just get a good editor and run a correct regexp (regular expression search and replace):

1) For moving the punctuation inside the emphasis:
search = (</em>)([.,!?;:]+)
replace = $2$1

2) For moving the punctuation outside the emphasis:
search = ([.,!?;:]+)(</em>)
replace = $2$1
pepak is offline   Reply With Quote