View Single Post
Old 09-24-2015, 01:47 AM   #65
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,741
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
@gipsy: Since you rely so much on the PCRE regex flavor used by Sigil, you may want to look into Saved Searches (Tools > Saved Searches), if you can live with the fact that Saved Searches won't give you detailed feedback.

Create a group, e.g. Greek and add all the regexes that you need. Later on simply open the Saved Searches dialog box, select the group heading and click Replace All.

@CalibUser: You may want to look into porting the regular expressions in your plugin to the new Python regex library, which offers some features that even PCRE lacks. Among them Levenshtein distance based fuzzy matches and case-insensitive Unicode matches. (The Python regex library will be included in the upcoming Sigil 0.8.9 release.)

You may want to also consider loading all regex expressions from a Saved Search group. This'll allow users to easily customize your plugin. (Saved Searches are stored in sigil_searches.ini.)

Last edited by Doitsu; 09-24-2015 at 01:49 AM.
Doitsu is offline   Reply With Quote