My system language is German (Switzerland). I'm working on a Writer document that is entirely set to English (USA). I type a few characters that were stored in Autotext and then press F3. The Autotext is typed out and the text is now set to German (Switzerland). Hence, Autotext is not language agnostic. Text typed afterwards is unfortunately as German (Switzerland) instead of English (USA). My LO Options for Languages and Locales / General: Default Languages for Documents: English (USA) [V] Ignore system input language Fixes needed: 1. In a first debug iteration, Autotext should at least match the language of the document. 2. In a second debug iteration / feature addition, Autotext could be associated to a specific language but the text that is typed after Autotext completion should still be in the original document's language. Thank you.
Created attachment 198098 [details] Screencast Can't reproduce using Version: 24.8.4.1 (X86_64) / LibreOffice Community Build ID: 1be9007f5d86a3741c366527d13e2970cbeef057 CPU threads: 24; OS: Windows 11 X86_64 (10.0 build 26100); UI render: default; VCL: win Locale: ru-RU (ru_RU); UI: en-US Calc: CL threaded 1. If I create an autotext using "New", it indeed has the currently selected language - as well as all other properties of the selected text. Upon insertion, it inserts the text with the saved language, but keeping typing, I have the language set before the insertion. 2. If I create the autotext using "New (text only)", it inserts with the language set at the insertion point.
Thank you, Mike. I forgot to specify that my System is Ubuntu, LO ubuntu package 4:24.2.6-0ubuntu0.24.04.1 I guess I'll have to dig further in my document to understand what is causing the issue.
(In reply to ThomasU from comment #0) > My system language is German (Switzerland). > I'm working on a Writer document that is entirely set to English (USA). > I type a few characters that were stored in Autotext and then press F3. The > Autotext is typed out and the text is now set to German (Switzerland). > Hence, Autotext is not language agnostic. Text typed afterwards is > unfortunately as German (Switzerland) instead of English (USA). As Mike pointed out "New (text only)" as the language agnostic option, this would only leave your issue of text typed afterwards picking up the language. Are you sure you were typing after the inserted text, as Mike does in his screen recording, or if you were in fact typing within the inserted text?
Thomas sent me an example file in private. Studying the file, I notice the paragraphs affected by the language change have a style called "List Paragraph" that has the font language set as "German (Switzerland)". An autotext created with "New (text only)" causes the subsequent text to become "German (Switzerland)" (the inserted text remains "English (USA)"). In the .xml files contained in the .odt, the language definition is seen as this attribute: style:font-family-generic="swiss" which can appear alongside: fo:language="en" fo:country="US" Mike: is this expected behaviour? To Thomas: you can fix this in your file by modifying the List Paragraph style, so it has English (USA) as the language (see the Font tab in the style editing dialog).
(In reply to Buovjaga from comment #4) > In the .xml files contained in the .odt, the language definition is seen as > this attribute: style:font-family-generic="swiss" > > which can appear alongside: fo:language="en" fo:country="US" > > Mike: is this expected behaviour? Yes it is OK; the "swiss" is not a language, but a family of fonts (there is also e.g. roman family of fonts).
(In reply to Mike Kaganski from comment #5) > (In reply to Buovjaga from comment #4) > > In the .xml files contained in the .odt, the language definition is seen as > > this attribute: style:font-family-generic="swiss" > > > > which can appear alongside: fo:language="en" fo:country="US" > > > > Mike: is this expected behaviour? > > Yes it is OK; the "swiss" is not a language, but a family of fonts (there is > also e.g. roman family of fonts). Ok, that's a funny mistake on my part... now I see the List Paragaph does have fo:language="de" fo:country="CH" as expected. I suppose we can close.
Thank you very much, Buovjaga, for your very helpful advice and guidance. This resolves the issue. I had been looking for a language setting but had not seen it.