Description: Would it be possible to change Libre Office Writer in such a way, that once a language has been selected for "All text", the document would always keep that language (unless it is changed later) regardless of Windows' keyboard setting? After that, if there are phrases, sentences etc. in another language, those can still be changed with "Selection" or "Paragraph" language. Steps to Reproduce: 1. The keyboard must first be set in Windows for some other language than what is written (a non-English, Latin letter one). There's no need to change the physical keyboard, because all English letters, numbers and many punctuation marks are still "behind" the same keys. 2. Write some text (in English). 3. Select Tools -> Language -> For all text -> Select the written language ("English (USA)"). 4. Edit or add to the written text in the same language (English), but make a deliberate mistake in it for spelling check. 5. Select the edited part of text. 6. Check Tools -> Language -> Hyphenation -> . The top of "Hyphenation" box does not show the "For all text" language ("English (USA)"), but the language part at top of box is empty. The hyphenation just completes without doing anything, because it doesn't know which language rules to use. 7. Select the edited part of text. 8. Check Tools -> Spelling. The "Text language" box is empty and the spelling check just completes without doing anything, because it doesn't know which language dictionary to use. Actual Results: See steps 1 ... 8 in Steps to Reproduce. Afrter those steps: 9. Select again Tools -> Language -> For all text -> Select the written language ("English (USA)"). 10. Now both spelling check and hyphenation work OK according to English language (USA version, in this case). Expected Results: The language selected for "All text" is held by the document regardless of used keyboard as it is set in Windows. Reproducible: Always User Profile Reset: No Additional Info: Version: 6.3.6.2 (x64) Build ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497 CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; Locale: fi-FI (fi_FI); UI-Language: en-US Calc: CL I am writing all Latin letter based languages with a Nordic (ie. Finland, Sweden) keyboard. I am used to it and it works in many cases better than a keyboard for a language I am writing in. Note that it is impossible to write Nordic (and many other) languages without many extra keystrokes with an English keyboard. I am writing a lot of texts in English or Finnish, but also in several other languages. I could, of course, select the "All text" language after the document is ready, but very often I need to edit the text or continue writing later. In those cases all edited or added text will be in the keyboard language selected in Windows (in my case Finnish), which means that spell checking and hyphenation will not work according to the written language (for instance English). I can, of course, select the "All text" language after every edit and then check the spelling and hyphenation for that part of text, but that requires a few clicks every time. When there are possibly hundreds of edits in a single document, it amounts to a lot of extra work and time.
This is not a bug; it is a feature allowing one to use several system input languages configured in system, and have LibreOffice mark text parts with correct language - given that users use that correctly. When they do, it's just a matter of muscle memory - to switch system input language (maybe together with keyboard layout). There is a way to disable the feature in Options->Language Serrings->Languages (check "Ignore system input language").
(In reply to Jukka Siitari from comment #0) > I am writing all Latin letter based languages with a Nordic (ie. Finland, > Sweden) keyboard. I am used to it and it works in many cases better than a > keyboard for a language I am writing in. Note that it is impossible to write > Nordic (and many other) languages without many extra keystrokes with an > English keyboard. I am writing a lot of texts in English or Finnish, but > also in several other languages. Note that if you wanted, you could set up your Windows to have several input languages, *each* having the same keyboard layout; then you could assign some system keyboard shortcut(s) to either cycling those input languages, or to each specific input language. All that is available in system "Language Preferences" applet. This is the intended way of using several languages with the mentioned Writer feature. That is natural for any user who uses not only Latin scripts; e.g., for a Cyrillic-language user, it would be natural, since there's no keyboard layout having both Cyrillic and Latin characters -> we have at least two keyboard layouts, with respective input languages assigned; and pressing Ctrl+Alt system shortcut to switch between English keyboard and a Cyrillic keyboard, we also tell Writer to mark our text with appropriate language.
(In reply to Mike Kaganski from comment #1) > This is not a bug; it is a feature allowing one to use several system input > languages configured in system, and have LibreOffice mark text parts with > correct language - given that users use that correctly. When they do, it's > just a matter of muscle memory - to switch system input language (maybe > together with keyboard layout). > > There is a way to disable the feature in Options->Language > Serrings->Languages (check "Ignore system input language"). Sorry, that won't work. I still need different input languages for non-Latin text (ie. Cyrillic, Greek).
(In reply to Jukka Siitari from comment #3) Excuse me, I fail to understand then. Your issue is titled "Libre Office Writer does not keep the language selected for "All text" of a document, if some other language keyboard is used for writing", which clearly describes that you want keyboard (and associated language) to *not* affect text language, which in your opinion should stick to what is selected for "all text". That is exactly what would happen if you use the option that I described; but now you tell that you *need* the feature that takes input language into account. Well, your idea is confusing then. You want it, and at the same time you don't want it. As shown in comment 2, there is the way to make it work - by configuring required input languages (each using any keyboard layout, maybe the same for many configured input languages) in system. But there's no mind reading component built into LibreOffice to allow the program to guess correct behavior differently, based on untold intentions.
(In reply to Mike Kaganski from comment #2) > (In reply to Jukka Siitari from comment #0) > > I am writing all Latin letter based languages with a Nordic (ie. Finland, > > Sweden) keyboard. I am used to it and it works in many cases better than a > > keyboard for a language I am writing in. Note that it is impossible to write > > Nordic (and many other) languages without many extra keystrokes with an > > English keyboard. I am writing a lot of texts in English or Finnish, but > > also in several other languages. > > Note that if you wanted, you could set up your Windows to have several input > languages, *each* having the same keyboard layout; then you could assign > some system keyboard shortcut(s) to either cycling those input languages, or > to each specific input language. All that is available in system "Language > Preferences" applet. This is the intended way of using several languages > with the mentioned Writer feature. That is natural for any user who uses not > only Latin scripts; e.g., for a Cyrillic-language user, it would be natural, > since there's no keyboard layout having both Cyrillic and Latin characters > -> we have at least two keyboard layouts, with respective input languages > assigned; and pressing Ctrl+Alt system shortcut to switch between English > keyboard and a Cyrillic keyboard, we also tell Writer to mark our text with > appropriate language. True, but that means I must also change the physical keyboard and I don't want to do that every time I change the Latin letter languages. I have memorized the keyboard layouts for Cyrillic and Greek, but to do that for English, Swedish, French, German, Portuguese etc. doesn't make sense. All those languages are VERY easy to write with a Finnish keyboard without changing the Windows input language. By the way, almost all Cyrillic and Greek keyboards I have seen have letters in one of those scripts AND Latin ones (usually the English keyboard layout). The point is that I write texts with many tens of pages long in one specific language, mostly English or Finnish, using the Finnish keyboard lay-out, which I have no intention to change. Naturally such long texts ALWAYS require editing, and that's where my problem arises.
(In reply to Mike Kaganski from comment #4) > (In reply to Jukka Siitari from comment #3) > > Excuse me, I fail to understand then. > > Your issue is titled "Libre Office Writer does not keep the language > selected for "All text" of a document, if some other language keyboard is > used for writing", which clearly describes that you want keyboard (and > associated language) to *not* affect text language, which in your opinion > should stick to what is selected for "all text". That is exactly what would > happen if you use the option that I described; but now you tell that you > *need* the feature that takes input language into account. > > Well, your idea is confusing then. You want it, and at the same time you > don't want it. > > As shown in comment 2, there is the way to make it work - by configuring > required input languages (each using any keyboard layout, maybe the same for > many configured input languages) in system. But there's no mind reading > component built into LibreOffice to allow the program to guess correct > behavior differently, based on untold intentions. OK! Perhaps I could not explain the situation clearly enough. What I want is that LIBRE OFFICE WRITER ALWAYS KEEPS THE LANGUAHGE SELECTED FOR "ALL TEXT", BUT ONLY FOR THE DOCUMENT IT WAS SELECTED FOR, REGARDLESS OF WINDOWS INPUT LANGUAGE. Unless the "all text" language of the document is changed later on purpose. Then, of course, Writer shuld keep the new "all text" language for that document. This applies ONLY to the "all text" selection. It DOES NOT apply to "selected" or "paragraph" text selection.
(In reply to Jukka Siitari from comment #5) > (In reply to Mike Kaganski from comment #2) > > (In reply to Jukka Siitari from comment #0) > > > I am writing all Latin letter based languages with a Nordic (ie. Finland, > > > Sweden) keyboard. I am used to it and it works in many cases better than a > > > keyboard for a language I am writing in. Note that it is impossible to write > > > Nordic (and many other) languages without many extra keystrokes with an > > > English keyboard. I am writing a lot of texts in English or Finnish, but > > > also in several other languages. > > > > Note that if you wanted, you could set up your Windows to have several input > > languages, *each* having the same keyboard layout; then you could assign > > some system keyboard shortcut(s) to either cycling those input languages, or > > to each specific input language. All that is available in system "Language > > Preferences" applet. This is the intended way of using several languages > > with the mentioned Writer feature. That is natural for any user who uses not > > only Latin scripts; e.g., for a Cyrillic-language user, it would be natural, > > since there's no keyboard layout having both Cyrillic and Latin characters > > -> we have at least two keyboard layouts, with respective input languages > > assigned; and pressing Ctrl+Alt system shortcut to switch between English > > keyboard and a Cyrillic keyboard, we also tell Writer to mark our text with > > appropriate language. > > True, but that means I must also change the physical keyboard and I don't > want to do that every time I change the Latin letter languages. I have > memorized the keyboard layouts for Cyrillic and Greek, but to do that for > English, Swedish, French, German, Portuguese etc. doesn't make sense. Please, re-read what is explained in comment 2, with explicit attention to the part that you can create different input languages, that share the same keyboard.
(In reply to Jukka Siitari from comment #6) LIBRE OFFICE WRITER ALWAYS KEEPS THE LANGUAHGE SELECTED > FOR "ALL TEXT", BUT ONLY FOR THE DOCUMENT IT WAS SELECTED FOR, REGARDLESS OF > WINDOWS INPUT LANGUAGE. Whenever you create an empty document, it has "all text" language applied. I.e., its only paragraph (the whole of it) matches the default document language for that document. Implementing your idea would mean that the feature would never be effective.