TeXworks / texworks

Main codebase for TeXworks, a simple interface for working with TeX documents
https://tug.org/texworks/
GNU General Public License v2.0
698 stars 127 forks source link

spellchecker forgets selected language #1059

Open ShantySuffisance opened 2 months ago

ShantySuffisance commented 2 months ago

the choice of languages in Edit→Preferences. . . →Editor→Spell-check language differs from the choice in Edit →Spelling→<language>. Only if i select a language in Edit →Spelling→<language> i get working spellchecking! At every new start of TeXworks the is once again no language selected!

Bildschirmfoto_2024-08-26_12-49-26

i use texworks 0.6.9-3 on Manjaro Linux, installed via the Manjaro-repositories. In the spellchecker-folder ~/.local/share/TUG/TeXworks/dictionaries/ i have the needed *.aff and .dic files as links to /usr/share/hunspell

I'd like to select a default spellchecker language once instead of every time i open TeXworks. btw, i love TeXworks and use it almost daily. thank you

stloeffler commented 1 month ago

Thanks for reporting. Regarding the two dictionary lists being different: probably the one in the prefs dialog "merges" symlinked dicts - I'll have to look into this. Regarding the problem of not saving the language setting:

This should give me some clue as to whether the file exists, is accessible, gets updated, and with what values.

ShantySuffisance commented 1 month ago

at start no spellchecking active

ls -lisa ~/.config/TUG/TeXworks.conf
5561864 48 -rw-r--r-- 1 oliver oliver 46016  7. Sep 11:38 /home/oliver/.config/TUG/TeXworks.conf
grep language ~/.config/TUG/TeXworks.conf
language=None

selected de_DE language with: Edit →Spelling→<language> – spellchecking works

ls -lisa ~/.config/TUG/TeXworks.conf
5561877 48 -rw-r--r-- 1 oliver oliver 46016  7. Sep 16:13 /home/oliver/.config/TUG/TeXworks.conf
grep language ~/.config/TUG/TeXworks.conf
language=None

closed and reopened TeXworks. no spellchecking active

ls -lisa ~/.config/TUG/TeXworks.conf
5561884 48 -rw-r--r-- 1 oliver oliver 46016  7. Sep 16:18 /home/oliver/.config/TUG/TeXworks.conf
grep language ~/.config/TUG/TeXworks.conf
language=None

selected language with: Edit→Preferences. . . →Editor→Spell-check language de_AT spellchecking selected, de_DE is not available in that dropdown menu – no spellchecking active

ls -lisa ~/.config/TUG/TeXworks.conf
5561885 48 -rw-r--r-- 1 oliver oliver 46017  7. Sep 16:19 /home/oliver/.config/TUG/TeXworks.conf
grep language ~/.config/TUG/TeXworks.conf
language=de_AT

after a restart of TeXworks, the de_AT spellchecking is still active. So the problem seems to only occur, when a language is selected in Edit →Spelling→<language> which is not available in Edit→Preferences. . . →Editor→Spell-check language

thank you very much!