View Single Post
Old 02-29-2016, 06:11 AM   #8
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by KevinH View Post
I looked at what calibre does. For every single word they spellcheck they use a regular expression replacement of the regular and short hyphens with nothing. If that shortens the word, they then spellcheck the shortened version first as a new word, if it passes they add it first to the suggestions, and then go and spellcheck the original word, and then test each new suggestion to prevent duplication with the no hyphen suggestion.
KevinH
How it works for calibre. Take a look on the attached picture. It is part of user dictionaries and an example how it works with German words (we have a lot of bla-bla-bla hyphens )
The discussion around for implementation you can find here: https://www.mobileread.com/forums/sho...d.php?t=237869

I use this functionality very often in different situations.
Attached Thumbnails
Click image for larger version

Name:	User_dictioneries.JPG
Views:	304
Size:	286.8 KB
ID:	146778  

Last edited by Divingduck; 02-29-2016 at 06:21 AM.
Divingduck is offline   Reply With Quote