Qownnotes: Spellchecker dictionary download manager

Created on 8 Nov 2019  路  19Comments  路  Source: pbek/QOwnNotes

There will be a dialog for downloading dictionaries.
The dictionaries will be stored in the application's data path so they also will be available in portable mode.

Feature

Most helpful comment

ERROR: Failure while downloading https://download.tuxfamily.org/qownnotes/src/qownnotes-19.11.8.tar.xz

lately there are more and more troubles with uploading to tuxfamily :cry:
should work now

All 19 comments

@Waqar144, does our spellchecker currently store some data locally? If yes, we need to make it so that it does it in the data path, so the rest of the system doesn't get "polluted" in portable mode.

@Waqar144, does our spellchecker currently store some data locally? If yes, we need to make it so that it does it in the data path, so the rest of the system doesn't get "polluted" in portable mode.

I guess personal dictionary is stored locally at ~/.hunspell_langCode
it could be stored anywhere else

Good question, are those shared with other applications like LibreOffice?

I guess at least in portable mode (Utils::Misc::isInPortableMode()) they must reside in a directory in Utils::Misc::appDataPath().

Good question, are those shared with other applications like LibreOffice?

  • LibreOffice stores its personal dictionary data in ~/.config/libreoffice on linux. On windows/Mac it will be something similar.
  • Chrome/ Firefox also store their data in separate places. I just tried and they are not detecting the words I added to my personal hunspell dict created using QOwnNotes/Kde apps
  • In KDE land, since everything is using sonnet(i think), the personal dictionary is shared between all kde apps, as well as QOwnNotes.
  • In Gnome land, I can't be sure, since I haven't tested it. I think it doesn't use hunspell, maybe enchant or something else. So I am 90% sure, QOwnNotes's personal dicts aren't shared there, unless of course you install some kde app.

I guess at least in portable mode (Utils::Misc::isInPortableMode()) they must reside in a directory in Utils::Misc::appDataPath().

Sounds good. Because what's the use of personal dict if you are not going to carry it with you. So, yeah I agree, in portable mode the path for personal dict should be set using portableDataPath()

Sounds good. Because what's the use of personal dict if you are not going to carry it with you. So, yeah I agree, in portable mode the path for personal dict should be set using portableDataPath()

Could you do that please? :smile_cat:

Sounds good. Because what's the use of personal dict if you are not going to carry it with you. So, yeah I agree, in portable mode the path for personal dict should be set using portableDataPath()

Could you do that please? smile_cat

Okay let's do this. :wink:

19.11.8

  • there now is a new menu entry Manage dictionaries in the Edit menu to download
    and remove spellchecker dictionaries (for #1378)
  • personal dictionary will now be stored in the portable data path when using QOwnNotes
    in portable mode (for #1378, thank you @Waqar144)

There now is a new release, could you please test it and report if it works for you?

Working great!

Awesome. It was a lot of work. 馃槄
But OBS is still broken from a PR 馃檨馃榿

19.11.8-1

Broken in AUR? :(

@data-man
@pbek
Just fixed it. Should build without any problems.

19.11.8-1

Broken in AUR? :(

It shouldn't be broken in AUR, which distro are you on? Arch? Manjaro?

Awesome. It was a lot of work. sweat_smile
But OBS is still broken from a PR slightly_frowning_facegrin

I will send in a PR with more dictionaries later. The list is too small for a big program like QON :stuck_out_tongue_winking_eye:

@Waqar144

which distro are you on?

Arch with yay.

Can be PKGBUILD changed for obtaining sources from Github?

Arch with yay.

Can be PKGBUILD changed for obtaining sources from Github?

Can you tell me the error you get when compiling?
I am on Manjaro, this can't possibly fail to build on Arch.

Can you tell me the error you get when compiling?

No, error isn't during compiling!

yay qownnotes

2 aur/qownnotes 19.11.8-1 (+88 4.04%) (Installed: 19.11.7-1)

ERROR: Failure while downloading https://download.tuxfamily.org/qownnotes/src/qownnotes-19.11.8.tar.xz

The list is too small for a big program like QON

I even updated http://docs.qownnotes.org/en/develop/spellchecking.html to encourage people to do pull requests with languages. :smile:

ERROR: Failure while downloading https://download.tuxfamily.org/qownnotes/src/qownnotes-19.11.8.tar.xz

lately there are more and more troubles with uploading to tuxfamily :cry:
should work now

Was this page helpful?
0 / 5 - 0 ratings