View Single Post
Old 06-16-2016, 04:32 AM   #189
jbacelar
Interested in the matter
jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.
 
jbacelar's Avatar
 
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
With Calibre editor:
For example for the character ?.
Remove all non-break spaces or narrow-no-break spaces before ?.
Run this search with regex-function:

Search:
Code:
>[^\n<]*?<
Function:
Code:
def replace (match, number, file_name, metadata, dictionaries, data, functions, * args, ** kwargs):
     return match.group().replace ("?","@?")
Where @ would be a no-break space or narrow-no-break space.
jbacelar is offline   Reply With Quote