-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to use the ltex-dictionary variable #5
Comments
same question, anyone managed to solve this? |
Sorry for the late reply! (Quite busy) I have only set up these variables but haven't look into the usage. I will response to this thread after I have time to figure this out! 😓 |
You need to set the variables in a form that
That means that in #s(hash-table size 30 data ("en-US" ["quasiparticle"])) You can test this with |
Thanks for your reply. (setq lsp-ltex-dictionary #s(hash-table size 30 data ("en-US" ["quasiparticle"]))) in my init file? Also, can I set the variable from words in a separate file? |
Yes, you should be able to use the command you suggested. I don't know how to make external files work here. Looking at the LTeX Language Server documentation and issues, it seems like external file support might be a feature of the client (LTeX for VS Code, or here lsp-ltex) rather than the server (LTeX LS). Not totally sure, though. All I know is I haven't been able to external files to work and am probably going to stop using lsp-ltex for now. Having to restart every time I add a new word to the dictionary is too much. I do appreciate the effort of the author for providing this package for us. |
Thanks. Could you please explain what I found spell and grammar checking are not a simple issue, according to recent discussions on Reddit. |
I am facing the same issue and as @michaelmhoffman I find it having to restart whenever I add a word too much. So an alternative is to do spellchecking with, say, ispell/flyspell (so you can update dictionaries, etc), and keep grammar checking just for grammar checking, with spellchecking disabled.
That does not always work, for example with Spanish (valentjn/ltex-ls#136) or if using Babel in a document (see https://valentjn.github.io/ltex/advanced-usage.html#multilingual-latex-documents-with-the-babel-package) but the following will disable spell checking for US English and Spanish:
Additional options to use only grammar checking: from this same set of tools, with flycheck-languagetool , https://github.com/emacs-languagetool/flycheck-languagetool ,"LanguageTool’s spellchecking will be disabled if flyspell-mode is active. " Alternatively, you can use textidote , https://github.com/sylvainhalle/textidote , but disable spellchecking. This is what I have in my textidote flycheck checker |
I'm using this syntax for the similar (setq lsp-ltex-disabled-rules
'(:fr ["WHITESPACE" "FRENCH_WHITESPACE" "DEUX_POINTS_ESPACE"]
:en ["WHITESPACE"])) |
I would like to set up a list of technical words for the dictionary used by ltex.
I've tried
and
but none of them works.
Does anyone know how to set up such a list? Thanks.
The text was updated successfully, but these errors were encountered: