Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spellchecker forgets selected language #1059

Open
ShantySuffisance opened this issue Aug 26, 2024 · 2 comments
Open

spellchecker forgets selected language #1059

ShantySuffisance opened this issue Aug 26, 2024 · 2 comments
Labels

Comments

@ShantySuffisance
Copy link

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
Copy link
Member

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:

  • What does ls -lisa ~/.config/TUG/TeXworks.conf give initially
  • What does grep language ~/.config/TUG/TeXworks.conf give initially?
  • Now change the preferences and click "OK".
  • What do the two commands listed above give now?

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

@ShantySuffisance
Copy link
Author

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!

stloeffler added a commit that referenced this issue Sep 8, 2024
instead of just one (more or less arbitrary) "representative" in case of
symlinked dicts (i.e., several language variants using the same
underlying .dict file).
This new list matches what is shown in the "Edit > Spelling" menu for
some time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants