giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.45k stars 468 forks source link

Getting Spelling to work on Arch Linux #1982

Open daciwolf opened 2 years ago

daciwolf commented 2 years ago

Version, Operative system Linux **** 5.16.11-arch1-1 #1 x86_64 GNU/Linux

Describe the bug Spell check on Arch Linux doesn't work with the packages that are stated to be needed and require more dependencies. The package python-pyenchant is needed alongside with gtkspell/gtkspell3, aspell-en and python-gtkspellcheck.

To Reproduce

  1. install cherrytree with "sudo pacman -S cherrytree"
  2. install python-gtkspellcheck with "sudo pacman -S python-pyenchant"
  3. open cherrytree ( i am using dwm so just pressing windowskey + p and then typing cherrytree)
  4. go over to "file" and then "preferences"
  5. click on "Rich Text" and you will see a grayed out spellcheck box.

Solution To solve this in step 2 just append "gtkspell aspell-en python-gtkspellcheck" and relaunch cherrytree

(this is my first time ever reporting an issue so it is not up to par please let me know what I need to do to improve on this, I hope that this has helped in someway)

Triffen commented 1 year ago

Thanks, worked for me on Manjaro!

giuspen commented 1 year ago

What is discussed here is a very old version of the package, written in Python. I suspect 0.39.4.

Looking at https://archlinux.org/packages/community/x86_64/cherrytree/ the community repo is only one version behind (latest is 0.99.55) you should use that instead

Triffen commented 1 year ago

I have 0.99.54, and this worked for me.

ventolinmx commented 1 year ago

I have a similar issue on Ubuntu 22.04 and couldn't fix it by installing python3-enchant or python3-gtkspellcheck. Spellcheck is still greyed out.

giuspen commented 1 year ago

@ventolinmx check that you actually have any dictionary installed like in case of spanish either hunspell-es or myspell-es

ventolinmx commented 1 year ago

I have all spanish hunspell dictionaries installed under /usr/share/hunspell. Should I install myspell also?

giuspen commented 1 year ago

@ventolinmx what package have you installed? Try the deb package via PPA (after removing what you have now):

sudo add-apt-repository ppa:giuspen/ppa
sudo apt update
sudo apt install cherrytree
ventolinmx commented 1 year ago

Thank you! It's working now from the deb package. I was using the snap from the Ubuntu store.

ThickBunBun commented 1 year ago

Big thanks, it solved my issue on Manjaro

peter099 commented 1 year ago

I have the same issue on MX Linux. Installed python3-enchant and hunspell-en-us but still can't make it work.