Eloquent proofreading assistant 1.1 is out with improved language detection and support for running LanguageTool server in the background 👻

This allows 3rd parties such as LibreOffice and Firefox to connect to a local and offline instance of the LanguageTool server. :libreoffice: :firefox: :thunderbird: :vim:

flathub.org/apps/re.sonny.Eloq…

#GNOME #grammar #Flatpak #Flathub #privacy #offline #Linux

in reply to Gary "grim" Kramlich

@grimmy @pidgin both GtkTextView and LanguageTool make it pretty simple but let me know if I can clarify something.

github.com/sonnyp/Eloquent/blo…

Although I wish instead there was a xdg portal API to add this kind of features system-wide rather than per app (or per toolkit).

in reply to Gary "grim" Kramlich

@pidgin I forgot libspelling requires gtksourceview. I'm not necessarily against that, but that's then another dependency we need to carry for mac and windows.

This could maybe make code blocks easier so it's worth looking into assuming we can get a pango formatted syntax out of it, but I don't think we can or I didn't find it last time I was looking.

We'd need a pango format because our messages are just labels now but we do need to support inline images, so this might work there too.

in reply to Sebastian Wick

@swick @pidgin Blocking what specifically? We're an extremely small development team trying to get a major rewrite out that can support modern chat features because the Pidgin 2 and earlier API was written to support chat networks of the 90's...

See dev.to/grim/what-were-targetin… dev.to/grim/whats-taking-so-lo… and discourse.imfreedom.org/t/pidg… for a "brief" primer.

in reply to Amadeus Maximilian

@amxmln

You need this dev.languagetool.org/finding-e…

Which Eloquent doesn't have yet github.com/sonnyp/Eloquent/iss…

in reply to Sonny

that's awesome!

except...do you know how would one correct those things straight from eloquent itself?

Also, about the accessibility side of it, the application has a very simple interface, which is very good, less things to go wrong! however, as it is now, I have no idea, as a screenreader user, what is wrong in a given piece of text, and how to fix it, looking at the interface itself. So then, here are some suggestions, if you'd like to implement them, I can also make an issue in the project's forge if you think that's better

  • firefox uses text attributes to mark something as a spelling error, perhaps do the same
  • add a tooltip which modifies itself, or use the actions API of gtk, to tell the screenreader additional information provided by language tool, why a bit of text is wrong
  • if language tool allows it, add a keyboard shortcut or a context menu item to correct the word, otherwise the current suggestions are more than enough if implemented
in reply to Sonny

Any idea of ​​why it doesn't work with Thunderbird? The extension also exists for Thunderbird¹, but when I select "Local Server" it finds nothing, and when I manually enter the address as for LibreOffice² I have no more success.

¹ addons.thunderbird.net/fr/thun…
² http://localhost:8081/v2

in reply to Sonny

According to (among others) forum.languagetool.org/t/probl…, and if I compare to github.com/sonnyp/Eloquent/blo…, I have the impression that the solution is not to be found on the side of Thunderbird, what do you think?

I tried to see if I could make the modification directly at the level of the installed flatpak (I don’t even know if it’s really feasible), and thus be able to test my hypothesis, but I don’t find the file languagetool.js.

in reply to lebout2canap ⏚

@lebout2canap I see

Are you able to test this? github.com/sonnyp/Eloquent/pul…

GNOME Builder will let you build/run LanguageTool from git easily.

Make sure to quit the current/stable instance of Eloquent first.

in reply to Sonny

After fighting for a long time with Builder who launched itself without displaying windows, and after waiting for the time necessary to download all the dependances, I came across the following error:

Program ../troll/gjspack/bin/gjspack found: NO

../src/meson.build:21:10: ERROR: Program '../troll/gjspack/bin/gjspack' not found or not executable

Unfortunately I have already devoted too much time to this problem for today.