Crissium / zim-multilingual-spellchecker

Multilingual spellchecking plugin for Zim
GNU General Public License v3.0
2 stars 0 forks source link

configuration of language codes sometimes cleared #4

Closed Simplenuity closed 6 months ago

Simplenuity commented 6 months ago

@Crissium, the following is more a heads-up than a bug report as I'm still not able to reproduce it. When starting Zim and opening one of my notebooks I encountered on several occasions that the field for the language codes (two languages in my case) got cleared and consequentially the plugin is throwing an error message.

Simplenuity commented 6 months ago

update: since I opened the issue it didn't happen again - without me changing any settings or versions...

Simplenuity commented 6 months ago

update2: problem solved!

Note, the error message (see below) only gets triggered by a missing configuration if the menu option >Tools >Check spelling is activated.

Suggestion: Add a comment to README.md to let users know that they need to configure the languages for each notebook - something that is actually a nice feature of flexibility :)


error message:

AttributeError: 'NoneType' object has no attribute'... This could mean you don't have the proper dictionaries installed

Crissium commented 6 months ago

Sorry I didn't get back to you days ago and thanks for debugging it for me!

Yes 'languages' is a notebook property. Checking for multiple languages incurs significant performance penalty and the long list of (mostly irrelevant) suggestions could be annoying, so the user should only set the relevant languages for each notebook, for example I've got a technical notebook where I only write in English and a personal one where I use all languages I know. I'll add a note about that later.