[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-28 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

Stéphane Guillou (stragu)  changed:

   What|Removed |Added

 Resolution|INVALID |DUPLICATE

--- Comment #10 from Stéphane Guillou (stragu) 
 ---
(In reply to daniel.schaaaf from comment #9)
> Alright, I marked this as "resolved, invalid" and will open a new bug report
> soon. Thanks for your time and a helpful discussion.
Thank you for your contribution!
Actually, I think we can mark as duplicate of bug 103036, as it captures a
number of frustrations with the Language menu.
That way, the description of your experience can still be found easily and be
taken into account.
Cheers!

*** This bug has been marked as a duplicate of bug 103036 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-28 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

daniel.scha...@gmail.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |INVALID

--- Comment #9 from daniel.scha...@gmail.com ---
Alright, I marked this as "resolved, invalid" and will open a new bug report
soon. Thanks for your time and a helpful discussion.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-28 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

--- Comment #8 from Stéphane Guillou (stragu) 
 ---
(In reply to daniel.schaaaf from comment #7)
> I reopened this bug report for now. Should I open a new bug report for the
> behaviour in the current comment? In a way, it is the opposite of my
> original bug report. What I crave most from a UI is consistency. So, either
> show recently used languages in the language lists, or show only currently
> used languages.
Because we have both been going through a lot of figuring out throughout this
report's comments, I'd say yes: the best would be to open a fresh report, in
which you'll have a concise description of the issue, and precise steps with
actual results and expected results.
Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-28 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

daniel.scha...@gmail.com changed:

   What|Removed |Added

 Resolution|DUPLICATE   |---
 Status|RESOLVED|REOPENED

--- Comment #7 from daniel.scha...@gmail.com ---
Thanks for looking into this, Stéphane.

I think you are right in that "the list shows the languages used currently in
the document, not what was recently selected". Somehow, I expected these lists
tho show "recently used languages". Although ...

1) Open/create a new Writer document.
2) Write "test text", and select the word "test".
3) Change the language "For Selection" to several different languages.

Expected result: The language lists should only contain the default language
and the last selected language.

Actual results: The language lists contain all recently chosen languages, up to
a maximum of seven different languages. Even changing the language "For All
Text" does not remove unused languages from the list(s).


I reopened this bug report for now. Should I open a new bug report for the
behaviour in the current comment? In a way, it is the opposite of my original
bug report. What I crave most from a UI is consistency. So, either show
recently used languages in the language lists, or show only currently used
languages.

In addition, only the language list "For Selection" correctly indicates the
used language with a check mark. This is either not implemented or not working
"For Paragraph" and "For All Text".

Maybe someone liked the idea of "recently used languages" and a check mark to
indicate the currently used language, but it was only implemented "For
Selection", causing the other language lists to behave inconsistently?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-28 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

Stéphane Guillou (stragu)  changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #6 from Stéphane Guillou (stragu) 
 ---
Right, now I have been pointed to libexttextcat being the library that does the
language guessing.
And I now see bug 95274, which is about the same issue. The list I came up with
in comment 5 is similar to what others have pulled out of the code in bug 95274
comment 45 and bug 139185 comment 4.

As it would be impractical to list "all installed languages" in the menu, and
the logic of language listing is explained in the comment linked above, I
suggest closing as duplicate of bug 95274.

Also, I realise I forgot to comment on:

(In reply to daniel.schaaaf from comment #4)
> From a user's perspective, it seems weird that selecting ("More...") a
> language "For All Text" brings up the LO options dialogue to set the
> "Default Languages for Documents", while selecting ("More...") a language
> for a "Selection/Paragraph" opens the "Character" dialogue.
> Could this be the root cause of the weird behaviour. The "Default Languages
> for Documents" (sometimes) overwrites/clears any choices that were made
> through the "Character" dialogue.
This is indeed confusing, has been mentioned in bug 95274 and elsewhere, and
parts of the solution are tracked in reports like bug 103036 and bug 151290.

*** This bug has been marked as a duplicate of bug 95274 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

--- Comment #5 from Stéphane Guillou (stragu) 
 ---
(In reply to daniel.schaaaf from comment #4)
> As soon as I select a language "For All Text", LO resets the recently used
> languages to the default English (UK) and the newly selected language for
> all three language selection modes (Selection, Paragraph, and All Text).
I tried these steps:
1. Delete user profile
2. Open Writer
3. Write some text
4. Change paragraph language to e.g. Catalan. Now, all 3 submenus list
"Catalan".
5. Go to Tools > Language > For all text > More, change the Default Language
for Documents to e.g. Aranese, click OK. (It doesn't matter if the setting is
changed for all documents or only this document.)

Result: Catalan is gone from the list.

My understanding then is that the list shows the languages used currently in
the document, not what was recently selected.

(In reply to daniel.schaaaf from comment #3)
> When entering text into a new Writer document, the list of available
> languages for the spell checker gets extended by a random language.
I can reproduce this, but testing with writing some text in other languages,
you'll find that it is not random and tries to guess a good suggestion for the
paragraph you are currently in. For example, typing "Bonjour" will suggest
French, and "Vielleicht" will suggest German, and "Teclado" will suggest
Spanish. Of course, many words will be found in many dictionaries.
But I am surprised it does detect languages I don't have a dictionary for...
I think this feature should limit itself to installed dictionaries.

For populating of the list with languages, I think it makes sense to:
- always have the user locale's language listed
- always have the UI language listed
- always have the default document language listed
- always show the languages used in the document
- show a guessed language for the current paragraph

And therefore, listing languages just because they were picked recently (but
are not currently used) is not a priority and shouldn't be done.

Does the list above make sense to you?

Maybe this report can focus on the language suggestion that picks languages
that don't have a dictionary?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

--- Comment #4 from daniel.scha...@gmail.com ---
Sorry for the mess with two uploaded GIFs and this additional comment. I found
this bug to be very messy to replicate or make sens out of.

I reset my user profile and tried again. When I open LO and create a new Writer
document, I get the reported behaviour when I chose "Language > For All Text".

Only when I select "Language > For Selection" or "Language > For Paragraph",
does LO actually remember the languages selected with "More...".

As soon as I select a language "For All Text", LO resets the recently used
languages to the default English (UK) and the newly selected language for all
three language selection modes (Selection, Paragraph, and All Text).


To make things worse, having text in the Writer document screws up the language
selection more. When I write "test", Writer lets me chose from "English (UK)"
and "Estonian" (not installed) by default. When I write "car", I get "English
(UK)" and "Romanian (Romania)" (not installed).


>From a user's perspective, it seems weird that selecting ("More...") a language
"For All Text" brings up the LO options dialogue to set the "Default Languages
for Documents", while selecting ("More...") a language for a
"Selection/Paragraph" opens the "Character" dialogue.
Could this be the root cause of the weird behaviour. The "Default Languages for
Documents" (sometimes) overwrites/clears any choices that were made through the
"Character" dialogue.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

--- Comment #3 from daniel.scha...@gmail.com ---
Created attachment 194385
  --> https://bugs.documentfoundation.org/attachment.cgi?id=194385=edit
Language changes get screwed up in Writer with text present

When entering text into a new Writer document, the list of available languages
for the spell checker gets extended by a random language.

Writing "test" adds Estonian (not installed!) to the default language (English
UK).
Writing "car" adds Romanian Romania (not installed!) to the default language
(English UK).



Language changes "For Selection" (as well as "For Paragraph" and "For All
Text"; not shown) only remembers the default language (English UK) and one
additional language.

At 00:26, I change the language "For All Text" once, and suddenly, Writer
remembers three languages "For Selection"(as well as "For Paragraph" and "For
All Text"; not shown), but not more than three.

Then, I change the language "For Selection" two times, and Writer remembers
five languages.

At 01:15, I change the language "For All Text" again, and Writer continues to
remember only five languages (replacing Norwegian Bokmål with Spanish Panama).
A consecutive language change "For All Text" replaces the last chosen language
"For All Text" (from Spanish Panama to Spanish Paraguay).

At 01:36, I change the language "For Selection", and Writer suddenly remembers
up to seven languages.

At 01:56, I change the language "For All Text" again, and Writer continues to
remember seven languages.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

--- Comment #2 from daniel.scha...@gmail.com ---
Created attachment 194384
  --> https://bugs.documentfoundation.org/attachment.cgi?id=194384=edit
Language changes in Writer don't get remembered

Language changes "For Selection" (as well as "For Paragraph" and "For All
Text"; not shown) only remembers the default language (English UK) and one
additional language.

At 00:36, I change the language "For All Text" once, and suddenly, Writer
remembers three languages "For Selection"(as well as "For Paragraph" and "For
All Text"; not shown), but not more than three.

At 01:15, I change the language "For All Text" again, and the remembered
languages "For Selection" (as well as "For Paragraph" and "For All Text"; not
shown) reset to the default language (English UK) and the last manually
selected language.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

Stéphane Guillou (stragu)  changed:

   What|Removed |Added

 Whiteboard| QA:needsComment|
 CC||stephane.guillou@libreoffic
   ||e.org
 Status|UNCONFIRMED |NEEDINFO
 Ever confirmed|0   |1

--- Comment #1 from Stéphane Guillou (stragu) 
 ---
I can't reproduce on Linux nor macOS:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 101b08fe1ec77ffe8c1a9b2b8f9f20884269a1ed
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 4; OS: macOS 10.15.7; UI render: default; VCL: osx
Locale: en-AU (en_AU.UTF-8); UI: en-US

When going to "Tools > Language > For all text", there is a shortlist of
recently used languages in the menu. I am able to use those for the whole
document. If it is not listed, I use "More", pick one from the list, and select
"For the current document only" to make sure it doesn't become a default.
Or I use "For paragraph / For selection" if there are different languages
throughout the document.

That doesn't work for you?

Please share the full version information copied from Help > About LibreOffice

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 161033] Installed languages not available for automatic spell checking until user changes locale setting

2024-05-24 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=161033

QA Administrators  changed:

   What|Removed |Added

 Whiteboard|| QA:needsComment

-- 
You are receiving this mail because:
You are the assignee for the bug.