Skip to content
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

Global spelling doesn't work 100% in LibreOffice? — 2024-04-03 #10460

Open
marcoagpinto opened this issue Apr 3, 2024 · 11 comments
Open

Global spelling doesn't work 100% in LibreOffice? — 2024-04-03 #10460

marcoagpinto opened this issue Apr 3, 2024 · 11 comments
Labels
office-integration the LibreOffice/OpenOffice add-on

Comments

@marcoagpinto
Copy link
Member

Heya, @jaumeortola

Screenshot 2024-04-03 083102

Thanks!

@marcoagpinto
Copy link
Member Author

@FredKruse

Fred, maybe it is an issue with the Extension?

Thanks!

@jaumeortola
Copy link
Member

In LibreOffice, the spelling is usually the LibreOffice spelling, not the LanguageTool spelling, right? @FredKruse

We would need to disable the de LibreOffice speller and use the LT spellers. The obstacle to doing that is that the dictionaries files are too large. But I think at some point there was a discussion about this, and it seemed acceptable to add the spelling dictionaries to do the LibreOffice/LanguageTool package.

@FredKruse
Copy link
Contributor

Before LT 6.3, the LT additional LT dictionaries were added as 'private' dictionaries. This led to serious problems in some languages due to its enormous size.
Since LT 6.3 the situation is different. LT is used as a second spell checker. However, only individual words are checked (no strings with spaces). This works perfectly in German (words that LT recognizes as correct are not marked).
If there are mechanisms in other languages that recognize a combination of words as correct, we should make it a project for LT 6.5. I would then need help with examples (ODT files) and if possible a little tutoring on the technique in which LT does the spell check.

@marcoagpinto
Copy link
Member Author

@FredKruse

Here is an example document in Portuguese.

multiwords_marcoagpinto_pt_20240404.odt

@marcoagpinto
Copy link
Member Author

@FredKruse

It works partially, see the video:

Screen.1.mp4

@FredKruse
Copy link
Contributor

Is it correct that the words are only recognized as correct by LT in combination of all three words (i.e. "World Trade" is incorrect? "World Trade Center" is correct).
The problem is that LO spell checkers check a maximum of two words. I can't change that even if I install an LT spell checker. I can do try to have LT check the combination of two words (doesn't work in 6.4 so far). Would that help?

@marcoagpinto
Copy link
Member Author

@FredKruse

Even with two words, they appear as typos.

See the attachment:

multiwords_marcoagpinto_pt_20240405.odt

@FredKruse
Copy link
Contributor

As I wrote before. I've implemented a spell checker in the extension, that uses the internal LT spell checking. But it works only for single words until now. LO supports the checking of two word pairs. This is the maximum I could implement.
This I will do for 6.5 in the next days.

@FredKruse
Copy link
Contributor

The check of two words is added to the Lt spell checker of the extension. More words are not supported by LO. Please test it with tomorrow's snapshot.

@marcoagpinto
Copy link
Member Author

Thank you, @FredKruse

I will test it tomorrow.

@marcoagpinto
Copy link
Member Author

@FredKruse

I can confirm that it is working.

Thanks!

@mikekaganski
Would it be possible to open a ticket in LibreOffice Bugzilla for custom support of the number of words used in spelling or increase it to three (a ton of multiwords for pt-PT use three words)?

Also, Mike, make it possible to change words to italic (for example, foreign words) from the LT Extension?

Thanks!

@danielnaber danielnaber added the office-integration the LibreOffice/OpenOffice add-on label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
office-integration the LibreOffice/OpenOffice add-on
Projects
None yet
Development

No branches or pull requests

4 participants