clemens-e / obsidian-languagetool-plugin Goto Github PK
View Code? Open in Web Editor NEWlanguagetool plugin for obsidian
License: GNU Affero General Public License v3.0
languagetool plugin for obsidian
License: GNU Affero General Public License v3.0
The new live preview mode that was introduced with Obsidian 0.13.0 breaks the plugin, and the spell check can't complete.
When accessing LanguageTool Integration from Community plugins within Obsidian, an alert comes up that states that it has failed to install. Occurring on the latest insider builds of macOS (intel) and iPad mobile app.
Hey,
for some reason "Ignore Suggestion" doesnt work for me.
When i click the button nothing happens, ive appended the electron error message that pops when i press the button.
(It doesnt even close the menu)
Running the latest version of obsidian and the plugin.
Electron console Spits out a nonsaying error:
Uncaught RangeError: Mark decorations may not be empty
at t.range (app.js:1)
at e.update [as updateF] (eval at <anonymous> (app.js:1), <anonymous>:21:14041)
at Object.update (app.js:1)
at e.computeSlot (app.js:1)
at kr (app.js:1)
at new e (app.js:1)
at e.applyTransaction (app.js:1)
at e.get (app.js:1)
at e.update (app.js:1)
at e._dispatch (app.js:1)
t.range @ app.js:1
update @ VM134:21
update @ app.js:1
(anonymous) @ app.js:1
kr @ app.js:1
e @ app.js:1
e.applyTransaction @ app.js:1
get @ app.js:1
e.update @ app.js:1
_dispatch @ app.js:1
e.dispatch @ app.js:1
i.onclick @ VM134:21
Edit: Nailed it down to be an issue with the "new" editor, it works in the legacy editor. But id like to be able to use live view
Perhaps related to #13, Language Tool gives false suggestions for content inside Mathjax blocks
Hello, I love the integration of LanguageTool in Obsidian. I have been a dyslexic how to have to work in 3 different languages and this is the only tool that help me.
I'm a premium user of the tool and I do wonder if there is a way too:
This is a fantastic integration and a lifesaver for me.
Thank you
Hi!
First of all this is a great tool. I'm wondering how do we can change the spellcheck language to Spanish for example? I'm not a programmer so I'm stuck whit the use of this plugin.
I hope you can help me solve this issue. Thanks in advance.
Best Regards.
Hi, I'm not sure how to use the plugin? I installed it but I have no idea how to activate it, or what the shortcut is.
Thanks!
Since v0.0.9, the plugin no longer reports any errors with a popup when it cannot reach a LanguageTool server, thus there is no longer an indication on why the plugin doesn't do anything when a custom URL was not configured correctly. It would be nice if basic error reporting could be added back.
When I check my text and there are some words that I don't want to correct, this word stays highlighted forever. A way to clear this highlighting would be nice 😄
It's better if the syntax like \begin{equation}\end{equation} can be highlighted.
First of all, thanks for making this excellent plugin, it's been very helpful so far.
Whenever you submit your text to the API, there is generally a delay. It would be nice if there is an indicator in the bottom right corner displaying what the plugin is currently doing, as I would often get no feedback at all if LanguageTool did not find any errors in the text. A small icon or text label (checking, error, x issues found, etc.) like the ones you can find in vscode would be very helpful.
Hello everybody,
@Clemens-E, thank you very much for creating and maintaining this LanguageTool plugin for Obsidian. It is extremely useful and helps me a lot in writing better texts.
As someone who is writing in two languages (German and English in my case), I would like to change from dynamic to static language check on the fly so that I get the spell-checking I need for the current file. For an explanation for why neither dynamic nor static language setting doesn't help in that use case, see below.
Any or all of the following options would help with the use case:
lang: dynamic
, or lang: de
).Example use case:
In English, I write anything structural or conceptional, like my templates. When I create a new note for a German text from a template, I have mixed English/German text. I don't need to check the English text (from the template), but I would like to check the newly written German text. LanguageTool's language auto-detection sometimes selects English for the spell check, depending on if I actively write or after loading.
Thank you very much for considering it!
Kind regards
Mick
Hi, thank you for this plugin! It's quite a great job.
I am wondering would it be possible to get some more features of LT? For example, when we type in a browser with LT extension installed, and we select a word, there's a pop-up window shows the alternatives/ synonyms of that selected word. See the screenshot attached below:
Is there a way to access the Personal Dictionary, I tried looking for it and didn't find it
Thanks for making the plugin! As of now, sometimes the suggestions do not disappear at all, sometimes they disappear after some seconds. Would it be possible to make them disappear by clicking somewhere else in the text? Also, they stay present when switching to another file.
We (LanguageTool) get feedback from users who get "request to LanguageTool failed" after having configured their premium API key. From the logs on our side, it looks as if these users might use the wrong endpoint. Could the endpoint configuration be made more robust, so that e.g. you cannot set https://api.languagetoolplus.com
if it needs to be https://api.languagetoolplus.com/v2/check
(or vice versa - I'm not sure what's the right setting).
feature request: Add login for languagetool pro.
thank you so much
The request using the API key fails when selecting “Premium” endpoint—endless check, no results, all values verified multiple times.
So, I noticed the suggested Endpoint is now https://api.languagetoolplus.com/v2 from the LT account dashboard, and I set that up in the Options for the Obsidian plugin by choosing “Custom.”
This also fails, with a different error. Wondering if there are any updates needed for the Premium part to work with v2 APIs and certain recently issued keys?
I was wondering if there was any chance that you would eventually add an option to start a LanguageTool server automatically whenever the plugin is initialized. The LTeX plugin for VSCode does something similar, where it launches a custom LT server when you launch the plugin.
Not only would this help with privacy for the people who want it, but it would also lift the character limit that LT's default API imposes.
Thanks so much for the plugin, either way! It is one of my favorites for Obsidian.
Popups on the edge of the editor get cut off/you need to scroll to view the whole popup.
Maybe this is a way to fix this:
https://codemirror.net/demo/widget.html
https://codemirror.net/doc/manual.html#addLineWidget
I love the tool, but recently notice having to ignore the same suggestion over and over. Has something changed where the ignored suggestions are no longer remembered?
The official LanguageTool browser addon has an option to select what variant of four languages do you use: English, Portuguese, German, and Catalan. Would it be possible to implement it on this plugin?
Without it, it defaults to the Portugal variant of Portuguese, and keeps giving me false flags all over the place when writing on Brazilian Portuguese with auto-detect on. Most of the time I'm setting the language manually, but it's not fun to change it manually all the time when you write in more than one language.
The first example is tables. Here is an example:
It detects the spaces, which makes the table prettier, as an error message. It can easily be ignored by the user, but it would be nice if that could get fixed somehow.
My other example is code blocks, it wants to get rid of them completely.
In the pop-up message, it says there is more than one space.
I believe generally stuff inside the code block should be ignored, unless the user specifically selects this text.
Hello,
May I ask if you could also extend this plugin for antidote?
https://www.antidote.info/en
https://antidote.readthedocs.io/en/stable/reference.html
The v0.0.8 build has the wrong version number in the manifest, the manifest still says v0.0.7. It causes Obsidian to repeatedly prompt for updates.
https://github.com/Clemens-E/obsidian-languagetool-plugin/releases/tag/0.0.8
Is there a way to add a LanguageTool account to the plugin, to be able to use premium features for paying subscribers?
Hey, as of now it only displays the first suggestion to fix a grammar error. Would it be possible to show more (maybe 2)? What would be great is if it would be the same interface as in a text field on a website (allowing to double-click for synonyms etc.). But maybe that's not possible?
Maybe you could an command to toogle the new autocheck feature so that we could activate it trough the command palette or via a hotkey.
Hello,
According to LanguageTool's docs here:
The only public endpoint is the following one - do not send your requests to any other endpoints you might find in the homepage’s HTML code or elsewhere:
https://api.languagetool.org/v2/check
But I can see that this plugin is sending to the endpoint https://api.languagetool.org
, and won't function at all when I manually change the endpoint to the one provided by LT's docs. Is this plugin using an API different from the Public HTTP Proofreading API provided by LT?
Apologies for the clueless question, and thank you for developing this plugin!
Hi @Clemens-E, I'm the founder of LanguageTool. I couldn't find your email address, so I'm opening this issue: We're getting quite a few requests from Premium users asking us to enable API access for them, so they can use LT Premium in Obsidian. I think we could streamline the documentation a bit, to make the process easier for users. Feel free to contact me about it at (firstname).(lastname)@languagetool.org.
Hi! I love this plugin and the features it provides, but I was wondering if you'd consider implementing an additional feature: Support for the LanguageTool API's motherTongue
option, which causes the API to run additional checks related to the selected language in comparison to the mother tongue, for things like false friend terms.
According to the HTTP API docs, it's just an additional option called motherTongue
, and it's described as A language code of the user's native language, enabling false friends checks for some language pairs.
Thanks!
Hey,
First up, very nice tool- I've only been using it a few hours but it's great so far... Nice work!
I know that this extends languagetool, so this may well be an issue for them, but I thought it right to report it here too.
It's happened a few times so far but most of them I'll just click 'ignore suggestion' and not pay any mind. But this particular instance seemed like a pretty grievous grammar mistake.
Before I go ahead and report this to LanguageTool, I was wondering whether this was an issue your side or theirs.
Thanks in advance!
Hi, great plugin thank you for providing this!
Was wondering if there are any plans to incorporate keyboard shortcuts to cycle through the corrections and bring up the correction pane or to auto-correct text based on the top suggestion automatically as you type?
Is there an LanguageTool add-on in Obsidian for iOS?
I am hosting my own LanguageTool. The URL it uses for the plugin is https://plugin.subdomain.tld/v2—but when I put that into the plugin settings it reports "failed". Any insight?
At the moment the plugin only differentiates between minor or major.
Language tools has more suggestion types than typographical and others.
Maybe a cool feature to add.
First, Thanks for the plugin @Clemens-E and for the contribution to update to Live Preview @mgmeyers!
Occasionally (I've not determined the pattern), the checker will make a suggestion based on a merge of the end of one line and the beginning of another.
I tried adding a blank line, then deleting it, and it then made the same suggestion again.
Any ideas? Let me know if I can help with any specific troubleshooting.
Hello and thanks for this plugin (I am writing most of my texts in Deutsch, and this is the only way (till now) to have a spell-checking other than English. Problem is the number of characters allowed (not more than 20k). Is there in the near future an upgrade to the Pro-service?
I set up the LanguageTool server URL as http://localhost:8081
, according to the tutorial given below:
LanguageTool embedded HTTP Server | dev.languagetool.org
With this setting, I got the following error when trying to use this plugin from Obsidian: Request to LanguageTool Server failed.
As a reference, the LanguageTool local server is set up for TeXstudio as follows, and it works for TeXstudio.
Since the changes added in #39 there are now multiple @codemirror
files being imported but they're not rolled up into the plugin. As such, you cannot even enable the plugin.
app.js:1 Plugin failure: obsidian-languagetool-plugin Error: Cannot find module '@codemirror/tooltip'
Require stack:
- electron/js2c/renderer_init
at Module._resolveFilename (internal/modules/cjs/loader.js:887)
at Function.o._resolveFilename (electron/js2c/renderer_init.js:33)
at Module._load (internal/modules/cjs/loader.js:732)
at Function.f._load (electron/js2c/asar_bundle.js:5)
at Function.o._load (electron/js2c/renderer_init.js:33)
at Module.require (internal/modules/cjs/loader.js:959)
at require (internal/modules/cjs/helpers.js:88)
at et (app.js:1)
at r (app.js:1)
at anonymous (eval at <anonymous> (app.js:1), <anonymous>:1:104)
FYI, you can now access your API key in your setting: https://languagetool.org/editor/settings/api No need to email them. Maybe change this in the readme.
Regards,
Fabio
Currently when having bullet point lists the tool thinks that the bullet points are a text paragraph and suggest me to add a comma at the end of each bulletpoint. Further more it expects that a bullet point should not start with a capital letter (since it thinks that it's part of a sentence, not a new sentence)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.