Bug 135472 - Russian Text Language changes to Dutch with Russian locale setting because of system input language
Summary: Russian Text Language changes to Dutch with Russian locale setting because of...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Language-Detection
  Show dependency treegraph
 
Reported: 2020-08-05 18:39 UTC by Telesto
Modified: 2022-06-15 10:24 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot Language settings (13.80 KB, image/png)
2020-08-05 19:14 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-08-05 18:39:30 UTC
Description:
Russian Text Language changes to Dutch with Russian locale setting because of system input language

Steps to Reproduce:
1. Open Writer; I assume the default on first launch isn't Russian
2. Tools -> Options -> Language -> Set locale to Russian
3. Quite LibreOffice and Restart
4. Open Writer
5. Notice Russian shown as text language at the bottom of the screen (also the language in default style) -> Expected
6. Start typing.. say : Hello
7. The language at the bottom suddenly changes to Dutch (I assume because this default language)
8. Check the Default style language -> Russian
(does use default locale; ideally not Russia; or you to adapt)

Tools ->  Options -> Language settings -> Enhanced language support -> Ignore system input language checked solves the problem

Actual Results:
My my case language changes to Dutch without making any change

Expected Results:
Should not happen


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: <buildversion>
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: ru-RU (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-08-05 18:54:10 UTC
This is about "Ignore system input language". It's unchecked by default. I would prefer it visa versa. Checked, expect specified otherwise.

And not sure what the "Enhanced Language support" which you want to ignore. So the label fits my request. Enhancement must be ENABLED. Instead of Ignoring.

"Ignore system input language
Indicates whether changes to the system input language/keyboard will be ignored. If ignored, when new text is typed that text will follow the language of the document or current paragraph, not the current system language."


Why? The current workflow is totally confusing. I open a document. It shows Russian (which is expected), but switches to Dutch as soon I start typing. While actually typing something in English. At the same time the default Style is showing Russian. I surely had no idea what was happening. I looked bit around and found the checkbox by incident.

@Off topic
Not sure who has written the Help, but even reading this 5 times it still gibberish to me. I assume it's based on the Windows system language configuration? Surely not my 'keyboard'; default USA layout. Written with double negatives. Ignore + not current the current system language. 

However that can be adjusted after this is sorted out. Hopefully Ignore will become enable. So help can be written positively to.
Comment 2 Telesto 2020-08-05 19:14:50 UTC
Created attachment 163985 [details]
Screenshot Language settings
Comment 3 Heiko Tietze 2020-08-06 10:48:37 UTC
Привет мир likely keeps the language in Russian. But the question about default for the system language is valid.
Comment 4 Eike Rathke 2020-08-06 14:01:17 UTC
First, the locale selected (here ru-RU) is not the writing language. It determines the number formats used in document content. The writing language is determined by the text/character attribution, which can be set by the default document language (you didn't say if you set that as well), or via a document template or paragraph or text styles or attribution.

On systems that do support switching input languages (e.g. by hotkeys or input methods) the user expects the writing language to follow the input language. This is not related to keyboard layout. IMHO the default setting (not-ignore) should not be changed.

So, what happens if the default document language is set to Russian and not just the locale?
Comment 5 Telesto 2020-08-06 14:26:24 UTC
(In reply to Eike Rathke from comment #4)
> First, the locale selected (here ru-RU) is not the writing language. It
> determines the number formats used in document content. The writing language
> is determined by the text/character attribution, which can be set by the
> default document language (you didn't say if you set that as well), or via a
> document template or paragraph or text styles or attribution.

It's set to Russian default (see the attached screenshot) it did it automatically after changing the locale settings)

> On systems that do support switching input languages (e.g. by hotkeys or
> input methods) the user expects the writing language to follow the input
> language. This is not related to keyboard layout. IMHO the default setting
> (not-ignore) should not be changed.
> 
> So, what happens if the default document language is set to Russian and not
> just the locale?

-> They issue I reported here happened. 

As soon as I start typing the Russian input language is changing to Dutch. It doesn't happen after checking Ignore system input language
Comment 6 Heiko Tietze 2020-08-07 11:22:14 UTC
(In reply to Eike Rathke from comment #4)
> On systems that do support switching input languages (e.g. by hotkeys or
> input methods) the user expects the writing language to follow the input
> language.

That's a very strong argument for keeping the default. => NAB
Comment 7 Telesto 2020-08-07 11:25:47 UTC
(In reply to Heiko Tietze from comment #6)
> (In reply to Eike Rathke from comment #4)
> > On systems that do support switching input languages (e.g. by hotkeys or
> > input methods) the user expects the writing language to follow the input
> > language.
> 
> That's a very strong argument for keeping the default. => NAB

Hold on, I'm still interested in the answer from Eike. As I'm still confused :-). They  "Ignore system input language checked solves the problem" is more a 'side kick. As it solved my issue, but apparently intended for other purposes
Comment 8 Vladislav Kim 2021-07-22 09:13:59 UTC
Not repro in 

Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 6; OS: Windows 10.0 Build 19041; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL
Comment 9 Xisco Faulí 2022-05-02 12:17:16 UTC
Dear Telesto,
Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 10 Mike Kaganski 2022-06-15 10:14:44 UTC
It is indeed expected that typing on systems that support system input language (currently Windows and Qt5) does set the language to the typed text. This is not a bug. And - answering the "This is about "Ignore system input language". It's unchecked by default. I would prefer it visa versa" - there are very few problems with the setting enabled - because it *only* may hurt when:

1. User types in several languages, AND
2. These languages may be typed using the same keyboard layout, so the user didn't bother to set up their keyboard (and input language as side effect) properly.

That is only true for users typing only in languages using Roman scripting system. Any user typing in Cyrillic script, or in Asian languages, or in Arabic, Hindi, etc., will most definitely have everything set up - e.g., setting up Windows, they would already have their national keyboard + English keyboard set up, and will have muscle memory changing the two keyboards when switching from one language to another (e.g., for me that is Ctrl+Alt). Any user who doesn't type in several languages will also be unaffected. So changing the default is not OK.

See also bug 149332.
Comment 11 Mike Kaganski 2022-06-15 10:24:05 UTC
(In reply to Mike Kaganski from comment #10)
> there are very few problems with the setting enabled

I am sorry if my wording was misleading. I was talking about "enabled" is the sense "LibreOffice applies system input language". The wording of the setting is negative, hence I wrote a confusing statement.

To reiterate: system input language must be taken into account by default.