-
Notifications
You must be signed in to change notification settings - Fork 394
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
Textidote: translate localized &spelllang for textidote #1805
Conversation
Thanks, this looks reasonable. I agree it could be useful or interesting to allow a config dictionary to specify the desired language when it is ambivalent. |
Thank you for including this feature! Also, good to see a better way of handling the varying length of |
My pleasure. Let me know if you think we need more possibilities for customisation here. |
Vim supports multiple spell languages in Maybe it should avoid drawing from |
Good point. Could you open a new issue for it, and I can try to make this general purpose enough to work for all grammar/language parsers? |
True, I did not think of multiple A variable to override On another note, I tested the compiler with multiple languages and found a little bug that causes e.g. I used a modified version of the function in this PR for ale. The code of the ale linter can possibly be improved, but it may be helpful as it would cover the exact use case that is talked about here. |
@bratekarate from my experience in vim world (a decade or so), the setting isn't much edge, I've seen lots of vimmers setting two languages in |
@oblitum You are probably right and more experienced than I am with vim. I still think that picking the first spelllang in the list is a reasonable default. Even if more than 50% of the users were to use multiple spelllangs, the others without multiple languages still profit from the default. The vimmers with multiple languages don't lose anything, having the config variable anyway. Even if you use multiple: Isn't it convenient to use the primary language and override the variable only if needed in buffer scope? Anyway, I'm also ok with configuring another variable for my spellchecker if that's the consensus. Not a biggie. |
@bratekarate I don't disagree with that, an override/fallback scheme as you say is just fine, it just not need to be hard-coded, my previous comment was just to point that it isn't much an edge case. |
Maps
&spelllang
to the format that textidote understands. Allows the use of localized languages such asen_gb
. Handles all languages that are supported by textidote as of the current version.