Code Monkey home page Code Monkey logo

obsidian-languagetool-plugin's People

Contributors

ankaju avatar brandones avatar clemens-e avatar danielnaber avatar hpr1999 avatar jeansordes avatar kometenstaub avatar lukeleppan avatar mgmeyers avatar nocona71 avatar p2635 avatar patrickroethlisberger avatar phibr0 avatar ruohki avatar wakanayuki avatar wrenger avatar wyatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

obsidian-languagetool-plugin's Issues

Cannot install plugin from community plugins page

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.

Ignore suggestion does not work

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

Can't click on suggestions in Obsidians Callouts

Hi,
I have a problem with texts in Obsidian native Callout structure.
When I try to click on the suggestion in the pop-up (here I want to click on 'Important'), the pop-up vanish while the Callout is rendered.

image

Premium Account support and synonyms

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:

  • Have the premium feature hooked in your plugin?
  • Have access to synonyms?

This is a fantastic integration and a lifesaver for me.
Thank you

How to change de spellcheck to another language?

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.

How to use the plugin?

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!

The plugin does not report errors anymore when the server is unreacheable

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.

Feature suggestion: status display

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.
image

(Semi)automatic Language selection

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:

  1. Add a command to change from dynamic to a specific static language.
    1. Add a setting to select the languages one can select with the command (to make switching languages faster).
  2. Use a configurable YAML key-value to define the static language for the file/note (e.g., lang: dynamic, or lang: de).
  3. After the user selects a language for the file/note (e.g., with the command), store it with the settings.

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.
Example why language auto-detection isn't useful, sometimes.

Thank you very much for considering it!
Kind regards
Mick

Personal Dictionary

Is there a way to access the Personal Dictionary, I tried looking for it and didn't find it

Suggestions don't disappear

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.

more robust endpoint configuration

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).

LanguageTool Premium fails (v2 APIs?)

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?

image

Option to automatically start LT locally

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.

spell check is not set to English, how can I set it to English?

Thanks for making this plugin.

I'm not sure what's going on with my set up
I just installed it, however the spellcheck is not in English
image

This is what I have by default in the plugin settings
https://api.languagetool.org/v2/check

Any idea on how to change it to English thank you!

Language variants

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.

Clipboard Image

It detects spaces and code blocks as mistakes

The first example is tables. Here is an example:

image

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.
Animation
I believe generally stuff inside the code block should be ignored, unless the user specifically selects this text.

Failed to install update

Tried to update the LanguageTool Plugin, and it didn't work.
(The plugin itself is in perfect functioning, just this minor detail is bugged)

image

Text not legible

Hey, I was just testing version 0.0.2. For me, it looks like this... The information text is not legible due to missing background:

Bildschirmfoto 2021-03-11 um 16 37 30

Show more than one suggestion (Enhancement)

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?

Question regarding API endpoint

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!

Better instructions for using LanguageTool Premium

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.

Add support for mother tongue option

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!

Wrong Recommendation(s)

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.

image

Before I go ahead and report this to LanguageTool, I was wondering whether this was an issue your side or theirs.

Thanks in advance!

Add more different types of suggestions

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.

Suggestion based on words at end of line & beginning of next

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.

Here's a screenshot:
2021-12-28_17-43-30

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.

Any chance to get languagetool pro service

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?

CodeMirror Dependencies

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)

Context specific Rules

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)

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.