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

spellcheck - use 2 languages at the same time #876

Open
toxpal opened this issue Jun 22, 2019 · 4 comments
Open

spellcheck - use 2 languages at the same time #876

toxpal opened this issue Jun 22, 2019 · 4 comments

Comments

@toxpal
Copy link

toxpal commented Jun 22, 2019

Just like many coders, I work with different languages at the same time. For example, there might be 2 opened files at the same time:

translations_en.php
translations_XX.php

Obviously, they will contain text in different languages. So if my spellcheck is set to EN, I will see all the words marked as mistakes right after switching to translations_XX.php, and vice versa. What's more, that file translations_XX.php usually contains extra text in English (especially true for comments, definitions, variable names, etc.), so even if I manually set spellcheck to XX language every time after switching to this file, many parts of text will be marked as incorrect anyways.

This could be easily solved by having an option to use 2 languages at the same time. I'm not sure how easy/difficult it is to implement, but such option exists in Claws Mail and it's amazing - if you set 2nd dictionary, spellcheck will only mark words as incorrect if they don't match both dictionaries.

Hope I explained it clearly enough...

@eht16
Copy link
Member

eht16 commented Jun 29, 2019

Nice feature.
But it would require quite a lot refactoring of the code and implementing the logic to query two dictionaries and merge the results (Claws actually does this).

I won't work on this myself. I guess implementing this would be rather a rewrite of the existing plugin.

@toxpal
Copy link
Author

toxpal commented Jun 29, 2019

Thanks for the input. Yeah, I somehow had a bad feeling it might be very complex :)

@Skif-off
Copy link
Contributor

Skif-off commented Jul 1, 2019

@toxpal, you can try to combine two dictionaries into one (for aspell see dump and create , for hunspell maybe this work).

@toxpal
Copy link
Author

toxpal commented Jul 2, 2019

thank you, will try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants