View Single Post
Old 07-23-2019, 11:39 AM   #24
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,883
Karma: 6120478
Join Date: Nov 2009
Device: many
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.

Last edited by KevinH; 07-23-2019 at 03:42 PM.
KevinH is offline   Reply With Quote