Code Monkey home page Code Monkey logo

Comments (3)

rdiaz02 avatar rdiaz02 commented on May 30, 2024

I think the above is, if I am understanding the documentation correctly, a bug. However, it is simple to have LTeX ignore those rules, as explained in the documentation. For anyone stumbling on this, the following would do (no spell checks for Spanish or US English):

echo '{"ltex.disabledRules": {"en-US": ["MORFOLOGIK_RULE_EN_US"], "es": ["MORFOLOGIK_RULE_ES"]}}' > config; ./ltex-cli --client-configuration=config /home/ramon/tmp/minimal.tex

(For the sake of completeness: if you are using Emacs' lsp-ltex, https://github.com/emacs-languagetool/lsp-ltex, you can do

(setq lsp-ltex-disabled-rules 
              #s(hash-table size 30 data 
                        ("en-US" ["MORFOLOGIK_RULE_EN_US"]
			  "es" ["MORFOLOGIK_RULE_ES"])
			))

(that 30 is probably unnecessarily large here; adjust as needed ---https://www.gnu.org/software/emacs/manual/html_node/elisp/Creating-Hash.html).

from ltex-ls.

valentjn avatar valentjn commented on May 30, 2024

From a strict logical point of view, the sentence Use a specific variant like "en-US" or "de-DE" instead of the generic language code like "en" or "de" to obtain spelling corrections (in addition to grammar corrections). doesn't imply that there are no spelling corrections if you use a generic language code. It just says that there are spelling corrections if you use a specific variant.

However, as that was the intention behind the sentence, and also what I thought would be true, I'll rephrase that. Setting to confirmed as this seems to cause confusion.

from ltex-ls.

github-actions avatar github-actions commented on May 30, 2024

This issue is now fixed on develop. The fix will be included in the next release of LTEX.

If you don't want to wait, you can try out the nightly pre-release tomorrow. Nightly pre-releases are published every morning at around 4am UTC.

from ltex-ls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.