Bug 143356 - UI: Default setting autocorrect and replacement not in sync with the active document language
Summary: UI: Default setting autocorrect and replacement not in sync with the active d...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
: 109106 157656 (view as bug list)
Depends on:
Blocks: AutoCorrect-Complete Options-Dialog-Language
  Show dependency treegraph
 
Reported: 2021-07-14 13:01 UTC by Telesto
Modified: 2023-10-26 23:27 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-07-14 13:01:34 UTC
Description:
UI: Default setting autocorrect and replacement not in sync with the active document language

Steps to Reproduce:
1. Open Writer. Assumption of locale VS)
2. Tools -> Autocorrect -> Autocorrect options
3. Replacement is set to USA (fine0
4. Cancel dialog
5. Change document language in the status bar to German/Dutch or whatever
6. Tools -> Autocorrect -> Autocorrect options (still set USA)
7. Sidebar -> Default page style -> Change language to German/Dutch or whatever
8. Tools -> Autocorrect -> Autocorrect options (still set to usa)
9. Pick some random language in the Autocorrect option dialog
10. press Cancel
11.  Tools -> Autocorrect -> Autocorrect options -> Notice the random language being stored 

Actual Results:
Well the Autocorrect options is totally async with active language. And mostly you open the Autocorrect options while editing (and wanting a change to language you're working on.

[I even considered that the Dutch replacement table would work in USA document language, if the 'Dutch' was selected in the replacement table] Not the case

Expected Results:
The Paragraph language (DF/PS) of the position of the cursor should be picked up when opening the Tools -> Autocorrect -> Autocorrect options. The autocorrect should show the active language by default

Secondly it shouldn't store the last activated language. 

At least I find it a particular workflow. Going to 'Autocorrect' the change things for a different language to the one you're working with in document

However could be overlooking reasonable workflow here.. 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4e0a7df2dfa10bc52d5dbda34f43e0bc0df22ae7
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: de-DE (nl_NL); UI: en-US
Calc: CL
Comment 1 Heiko Tietze 2021-07-14 13:47:23 UTC
It apparently takes the value from tools > options > language settings > locale setting; the change requires an app restart to become effective.

User expectation is to follow the document language, which is not necessarily the same as on the current paragraph/character set per status bar. I would also not change the autocorrection on every paragraph, at worst, but use what is defined as default language for documents in tools > options > language.
Comment 2 Telesto 2021-07-14 17:38:28 UTC
(In reply to Heiko Tietze from comment #1)
> It apparently takes the value from tools > options > language settings >
> locale setting; the change requires an app restart to become effective.
> 
> User expectation is to follow the document language, which is not
> necessarily the same as on the current paragraph/character set per status
> bar. I would also not change the autocorrection on every paragraph, at
> worst, but use what is defined as default language for documents in tools >
> options > language.

Not saying that my proposal being 'the magic bullet' only a suggestion. Not agreeing with your interpretation either ;-). Maybe having different persona in mind.. 

Tools > options > language settings >  locale setting
* This is not intended as setting you change everyday (where it located suggests that already; buried deeply) 
* It's configured based on you're system locale at installation by default (so not something that important to be controlled at installation) [fine]
* The Locale setting is not simply 'picking a language for your document' setting. Aside from the default document language, it controls currency/ Data patterns and even page format (letter for US English)

This is about someone who edits (or creates) documents in different languages (once in a while). So if you write a thesis you might do that in English. However you do live in Netherlands/Germany. You don't change the locale. You want the document to be in English (and having A4)

So you change the language of Default PS style or activate DF language

And if you start writing in English, you want Autocorrect adjust to that (automatically). Having the replacement list/ Exception list English active. 

And if you open the Autocorrect -> Options dialog you except some sensible language being active (pressing Cancel doesn't discard!). Which surely odd. see step 9-11

Another idea: the search for "search for proper language' can be reduced by 'setting the in document languages on top? Similar to default locale: Tools > options > language settings >  locale setting (system locale is the first entry in the list)

Note: the main problem is that Autocorrect doesn't really adapt to context. So wrong replacement tables being active. Or doesn't Autocorrect list adapt while typing? With different PS/DF language set?]. If that's case it's even more logical to open the Autocorrect options dialog with language (replacement list) based on cursor position (language setting).
Comment 3 Telesto 2021-07-14 20:13:41 UTC Comment hidden (obsolete)
Comment 4 Telesto 2021-07-14 20:24:44 UTC Comment hidden (obsolete)
Comment 5 Telesto 2021-07-15 18:22:40 UTC Comment hidden (obsolete)
Comment 6 Sophie Sipasseuth 2023-07-04 07:28:38 UTC
Repro, I can write in French with an auto-correction in English as well as a default language in German (in default page style options), without anything happening.

Version: 7.3.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 229123ccc6f90ebf66b3e659bebbd53f8a9bdd3a
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: CL
Comment 7 Sophie Sipasseuth 2023-07-04 07:42:22 UTC
Repro, the setting autocorrect is not synchronized with the active document.

Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: c94961c6869c34b3874d21cfaa5ec1488609acfe
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: CL
Comment 8 Sophie Sipasseuth 2023-07-04 07:48:16 UTC
Idem

Version: 7.6.0.0.beta1+ (X86_64) / LibreOffice Community
Build ID: 1b5cee822e0bc15ddbdfc86926678ca35ab3e082
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: CL threaded
Comment 9 Stéphane Guillou (stragu) 2023-10-22 08:34:26 UTC
*** Bug 109106 has been marked as a duplicate of this bug. ***
Comment 10 Stéphane Guillou (stragu) 2023-10-22 08:35:49 UTC
*** Bug 157656 has been marked as a duplicate of this bug. ***
Comment 11 Stéphane Guillou (stragu) 2023-10-22 08:42:02 UTC
OOo 3.3 was also not picking the (default) document language when opening the AutoCorrect dialog, so marking as inherited.

Hossein, wondering if this qualifies for an easyHack?