View Single Post
Old 07-24-2019, 03:06 PM   #28
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,928
Karma: 6361444
Join Date: Nov 2009
Device: many
FWIW, basic spellcheck support for Windows and Mac has now been pushed to PageEdit master for the next release.

Support for Linux is forthcoming once we figure out where the linux distributions will be keeping QtWebEngine shared Hunspell dictionaries that are converted to a binary ".bdic" format.

Hope this helps.

KevinH



Quote:
Originally Posted by KevinH View Post
Spellcheck was disabled in BookView as was replace. We were able to add back "find" capability in PageEdit master. So that will be in the next release. You can actually search using the Inspector in the current release.

I will look into what if anything is possible about spellcheck.

The real issue is replace. In BookView replace was disabled. The reason was (and is) that replacing text found by a search can actually include html tags that would get deleted unknowingly breaking parsing in the document. That is why search and replace should only be done in CodeView.

PageEdit was designed to be used alongside Sigil, so plugins and replace functionality, adding images, etc should be done in Sigil itself, reserving PageEdit for single xhtml editing and cleanups.

Update
I looked into this and QWebEngine does support limited spellcheck capability but this would require converting all of our hunspell dictionaries into some type of QWebEngine "bdic" compatible format and shipping them within PageEdit as well as extensive building and creating of context menus to handle language selection, replacements of a single word with suggestions, etc.

I really do not want to duplicate more of the functionality of Sigil in PageEdit. The user should just choose to save/close the file in PageEdit and run whatever more complicated tools, like find/replace, plugins, spellcheck etc inside Sigil.

That said, support for basic spellchecking without ignore and without additional user wordlists may be possible.
KevinH is offline   Reply With Quote