I am writing a multi-languages text. My main language is Spanish but sometimes want to insert some english expression (which I'd like to do using italic). Having all of this done manually, the problem is that sometimes, spell checker revert the changes and delete the format (from italic back to regular) and the language (from english back to Spanish). I was trying to find a workaround and I found one: the only thing that seems to prevent spellchecker to revert what I did is to change (both language and format) including spaces before and after the expression: if I want insert the word "dog" (and for example the word is followed by a ",") if I just put in English "dog", spellchecker revert the change and things go south; if I put in English "_dog_" (or, in case of coma, "_dog,_") then things stays where they are supposed to. It is a frankly strange behaviour.
(In reply to giors_00 from comment #0) > Having all of this done manually, the problem is that sometimes, spell > checker revert the changes and delete the format (from italic back to > regular) and the language (from english back to Spanish). Pleasse describe it more detailed. Does it happen, if you use the spelling dialog? Can you ad a short sample document? => NEEDINFO
Ok. Having tried a lot, now I guess I know what happens and I am able to reproduce the bug. Write 3 words. The first one in language A (p.e. English); the 2nd one in language B (p.e. Spanish) and the 3rd one in language A (p.e. English). Then try different combinations playing with: 1. words written correctly 2. words written incorrectly 1. words written with italic 2. words written without italic. And just see what a strange impact has the spellchecker (F7+Cancel). Here I leave you some situations 1. 1st word written incorrectly and normal; 2nd word written correctly and normal. 3rd word written incorrectly and italic. Spellchecker (F7+Cancel) turns all words to italic. 2. in the previous situation, if 2nd word is written wrongly, no problem. 3. in the previous situation: if 1st and 2nd words are written with italic and last one without (regular), spellchecker turns all into regular (deletes italic format). 4. no problem at all if all is written with italic o regular. 5. writing the 3 words wrongly it also seems to avoid the problem. 6. first word (incorrect in English and italic), second word (incorrect, in Spanish and without italic), and third word (correct in English): spellchecker turns the second word into italic. 7. first word (incorrect in English and italic), second word (incorrect, in Spanish and without italic) and 3rd word (correct in English without italic): spellchecker turns the 1st one into "normal" (not italic). I am actually not able to reproduce it but in very complex doc I have spellchecker also changing language (all goes to language A). What is clear is the very strange behaviour with italic (I did not tried it deeply but it seems the same occurs with bold and underline).
Created attachment 159954 [details] Showing spell checker changing language
In the attached file, you will see spell checker changing case (italic to regular) and language (Latin to Spanish). You have a Spanish word (written wrongly) followed by two Latin words and another Spanish one. F7+Cancel makes disappear italic and turn Latin to Spanish. It is very very annoying.
Please also note that wrong word must not be just the previous one. If you have one wrong word in the same paragraph, the effect is the same: spellchecker just deletes italic and turn any word written in a different language (compared to the language of the wrong word) into the language of the wrong word. Hope it's been clear now.
I've tested with your steps from comment 2, but I couldn't reproduce. I've tried with englich and German and also with english and Spanish. Perhaps anyone else can help.
Created attachment 159955 [details] English+German Try with this file. German word is followed by and English ","
Created attachment 159956 [details] English + German 2 In this variant there is no "," but the space just after the German word is in English. Turning the space following the German word in German makes spellchecker behave correctly.
(In reply to giors_00 from comment #7) > Created attachment 159955 [details] > English+German > > Try with this file. German word is followed by and English "," (In reply to giors_00 from comment #8) > Created attachment 159956 [details] > English + German 2 > > In this variant there is no "," but the space just after the German word is > in English. Turning the space following the German word in German makes > spellchecker behave correctly. I can't reproduce with either file. I run autocorrect and accept the 2 proposed fixes. The italics stay. The language I check by selecting each word or comma/space - language does not change. Arch Linux 64-bit Version: 7.1.0.0.alpha0+ Build ID: bcf8868e031f916473f13bcd1a0835c74cb05de5 CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: kf5 Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 20 August 2020
I confirm with the older LO 6.2.5.2: - attachment 159955 [details] : accepting the two corrections turns the last word ("ninpoi") into italics, give it the German language property (instead of English), and the middle word is now "multiple languages". - attachment 159956 [details] : accepting the two corrections italicises the last word, and the middle word is now "multiple languages". However, the last word remains set to "English". However, with a recent master build: - attachment 159955 [details] : accepting both corrections does not italicise, nor changes the language - attachment 159956 [details] : accepting both corrections does not italicise, nor changes the language So I am happy to declare this a WORKSFORME, possibly fixed since before 7.1, as mentioned in Comment 9. Tested with: Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: 1dd4a80fa076bedb3a82821517036bad8dd79857 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-07-26_22:41:19 Calc: threaded