View Single Post
Old 07-26-2020, 01:26 PM   #208
democrite
Evangelist
democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.
 
Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
Quote:
Originally Posted by CalibUser View Post
Taking your previous example, "green-yel- low", it seems that you are looking for a plugin that will find this as an error in an ePub and then correct it to "green-yellow" using a dictionary. As there are so many different variations of where the hyphen(s) and space(s) could occur in just this one example (eg "gre -en- yell- ow", etc) - this could slow down my plugin considerably.

You may need a separate plugin for this.
If you could consider only the case of not touching hyphenated words as an option or default, that would be nice. In my current EPUB, on botany as you can tell, I find so many hyphenated words that might occur only once, variations in references (articles or books), regional names, e.g., "sa-ke", and so forth. I can modify the script by changing the regex which is fine, though perhaps others would like it as well.

Last edited by democrite; 07-26-2020 at 01:46 PM.
democrite is offline   Reply With Quote