Solved Texworks, unable to use spell check

Using Texworks 0.6.7_8 with much satisfaction, but cannot find away to configure spelling. This seemed a question for Texworks so I've searched their lists and messages, but nothing suggested works. I have hunspell and other dictionaries installed and working in LibreOffice and Thunderbird. Created a dictionaries directory in the Texworks resources directory and added the .dic and .aff files but cannot get Texworks preferences to reference them. The current version of Texworks is 0.6.10. Spell checking isn't essential, but nice to have. Has anyone suffered the same problem or solved it? Thanks
 
Maybe you check if all packages consist to be from the same version.
As far as I understand the TeX-installation on FreeBSD (almost) everything according to (La)TeX is installed. But it's a common problem (not only with TeX) when you run e.g. FreeBSD 14.3, but packages vary over different versions, that some things stop working after updates.
 
Using Texworks 0.6.7_8 with much satisfaction, but cannot find away to configure spelling.
The current version of Texworks is 0.6.10.
Which version have you installed?

If it's a non-FreeBSD port built 0.6.10, see TeXworks-manual-en.pdf , chapter 4.3 Spell-checking, "TW_DICPATH environment variable", or try to compile with a dictionary path make argument.

The FreeBSD (0.6.7_8) port has a hunspell dictionary path set as build argument (which is also incorporated into the packaged version):

ports/editors/texworks/Makefile
Rich (BB code):
30 CMAKE_ARGS=     -DTeXworks_DIC_DIR:PATH=${LOCALBASE}/share/hunspell \
LOCALBASE = /usr/local


As for 0.6.7_8 port/package, it works for me, without any special dictionaries directory created, from the "Edit, Spelling" drop down menu, or "Edit, Preferences, Editor, Spell-check language" settings:
Code:
% pkg info -g '*hunspell*' texworks
en-hunspell-2020.12.07
hunspell-1.7.2_1
texworks-0.6.7_8

Code:
/usr/local/share/hunspell/en_AG.aff
/usr/local/share/hunspell/en_AG.dic
/usr/local/share/hunspell/en_AU.aff
/usr/local/share/hunspell/en_AU.dic
/usr/local/share/hunspell/en_BS.aff
/usr/local/share/hunspell/en_BS.dic
/usr/local/share/hunspell/en_BW.aff
/usr/local/share/hunspell/en_BW.dic
/usr/local/share/hunspell/en_BZ.aff
/usr/local/share/hunspell/en_BZ.dic
/usr/local/share/hunspell/en_CA.aff
/usr/local/share/hunspell/en_CA.dic
/usr/local/share/hunspell/en_DK.aff
/usr/local/share/hunspell/en_DK.dic
/usr/local/share/hunspell/en_GB-ise.aff
/usr/local/share/hunspell/en_GB-ise.dic
/usr/local/share/hunspell/en_GB.aff
/usr/local/share/hunspell/en_GB.dic
/usr/local/share/hunspell/en_GH.aff
/usr/local/share/hunspell/en_GH.dic
/usr/local/share/hunspell/en_HK.aff
/usr/local/share/hunspell/en_HK.dic
/usr/local/share/hunspell/en_IE.aff
/usr/local/share/hunspell/en_IE.dic
/usr/local/share/hunspell/en_IN.aff
/usr/local/share/hunspell/en_IN.dic
/usr/local/share/hunspell/en_JM.aff
/usr/local/share/hunspell/en_JM.dic
/usr/local/share/hunspell/en_NA.aff
/usr/local/share/hunspell/en_NA.dic
/usr/local/share/hunspell/en_NG.aff
/usr/local/share/hunspell/en_NG.dic
/usr/local/share/hunspell/en_NZ.aff
/usr/local/share/hunspell/en_NZ.dic
/usr/local/share/hunspell/en_PH.aff
/usr/local/share/hunspell/en_PH.dic
/usr/local/share/hunspell/en_SG.aff
/usr/local/share/hunspell/en_SG.dic
/usr/local/share/hunspell/en_TT.aff
/usr/local/share/hunspell/en_TT.dic
/usr/local/share/hunspell/en_US.aff
/usr/local/share/hunspell/en_US.dic
/usr/local/share/hunspell/en_ZA.aff
/usr/local/share/hunspell/en_ZA.dic
/usr/local/share/hunspell/en_ZW.aff
/usr/local/share/hunspell/en_ZW.dic

texworks0.png texworks1.png
 
Other exigencies required my attention, but finally returning to the question:

$ pkg info -g '*hunspell*' texworks
hunspell-1.7.2_1
texworks-0.6.7_8

the dictonary is missing.

$ hunspell -d
Can't open affix or dictionary files for dictionary named "en_US".

Tried to find it,
$ locate en_US.dic
/home/benedict/.eclipse/org.eclipse.platform_4.35.0_1591644777_freebsd_gtk_x86_64/configuration/org.eclipse.osgi/207/0/.cp/dictionaries/en_US.dictionary
/usr/local/share/hyphen/hyph_en_US.dic
Trying to install hunspell returns that every thing is up to date. That led me to try removing and reinstalling, but as so much would be affected I didn't.
$ sudo pkg remove hunspell
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 10 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
eclipse: 4.35
enchant2: 2.8.10
hunspell: 1.7.2_1
kf6-ktextwidgets: 6.16.0
kf6-sonnet: 6.16.0
libreoffice: 25.2.4.3_1
mythes: 1.2.4_7
okular: 25.04.3
texworks: 0.6.7_8
webkit2-gtk_41: 2.46.6_1

Number of packages to be removed: 10

The operation will free 918 MiB.

Proceed with deinstalling packages? [y/N]: N

I install Texlive by downloading install-tl-unx.tar.gz from
tug.org/texlive/quickinstall.html, unpacking and running tl-install. Don't know if the problem is related to that.
 
hunspell dictionaries are not included in the hunspell package, you need to install the en-hunspell dictionary package.

Edit: Sorry for the double post (from smaryphone). I didn't notice my first draft.
 
  • Thanks
Reactions: bga
Back
Top