Bug 140882 - Non-breaking spaces not inserted by autocorrect under LibreOffice-GTK3 (French typography)
Summary: Non-breaking spaces not inserted by autocorrect under LibreOffice-GTK3 (Frenc...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-03-08 14:07 UTC by Jeff Fortin Tam
Modified: 2021-07-29 08:55 UTC (History)
2 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 Jeff Fortin Tam 2021-03-08 14:07:54 UTC
Description:
This is the same issue as bug #127815 but affecting the GTK3 version instead of the Qt variant.

Steps to Reproduce:
1. Open/create a Writer document
2. Set the document's language to French
3. Type "banane: banane; banane? banane!"

Actual Results:
« banane: banane; banane? banane! »

Expected Results:
« banane : banane ; banane ? banane ! »

(with non-breaking spaces)


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Tested on version 7.0.4.2 from Fedora

Tested on version: 7.2.0.0.alpha0+ from appimage (Build ID: f66a479225b35e9f1fd3621eef7496462088308a; UI render: default; VCL: gtk3) obtained from https://libreoffice.soluzioniopen.com/daily-version/
Comment 1 Julien Nabet 2021-03-08 19:04:53 UTC
On pc Debian testing x86-64 with LO Debian package 7.0.4.2 + gtk3 + brand new LO profile, I don't reproduce this.
I got this:
Banane : banane ; banane ? Banane !
(the uppercase have been automatically set by LO).

Same result with master sources updated today.

Anyway, it seems autocorrection has some pb in general (I can't reproduce these but since several people experienced them, I suppose there's something wrong somewhere). Some bugs have been workarounded just by enabling ibus.
Comment 2 Jeff Fortin Tam 2021-04-03 01:43:27 UTC
This gets weirder. I tried my laptop today with LibreOffice 7.0.5.2 (still the GTK3 version from Fedora 33), and it doesn't even work with the guillemets (quotation marks). If I type "banane: banane; banane? banane!" (into a document where all the text was set to French), I get *exactly* that:

"banane: banane; banane? banane!"

No non-breakable spaces, no French quotation marks.
Apostrophes don't get replaced either.

Version 7.1.2.2 from Flathub (Flatpak) does not exhibit the problem...
but as I said previously, version 7.2 alpha AppImage did exhibit the problem.

So this is starting to look less like a predictable regression from one version to the next, and more like a race condition heisenbug that makes it behave differently on different computers (as I'm currently on my laptop instead of my desktop workstation, whereas all other variables are otherwise the same).
Comment 3 Jeff Fortin Tam 2021-04-03 01:56:43 UTC
Actually, nevermind the guillemets, apostrophes and colons... those *do* get corrected properly in 7.0.5.2 and 7.1.2.2. It turns out that in one case I had "Tools > Autocorrect > While typing" turned off, for some reason.

However, even with that setting turned back on, with all versions, it still does not autocorrect the ;, ? and !... so it looks like this:

« banane : banane; banane? banane! »

...instead of:

« banane : banane ; banane ? banane ! »

Did you really get those spaces in front of ;, ? and ! on your end?
Comment 4 Julien Nabet 2021-04-03 09:23:25 UTC
(In reply to Jean-François Fortin Tam from comment #3)
> ...
> Did you really get those spaces in front of ;, ? and ! on your end?

On pc Debian x86-64 with master sources updated today + gtk3, I confirm I don't reproduce this bug.
I alos gave a try on Windows 10 with LO 7.0.5, idem.

Perhaps some other people may reproduce this.
Comment 5 Jean-Baptiste Faure 2021-04-15 17:11:58 UTC
(In reply to Jean-François Fortin Tam from comment #3)
> Actually, nevermind the guillemets, apostrophes and colons... those *do* get
> corrected properly in 7.0.5.2 and 7.1.2.2. It turns out that in one case I
> had "Tools > Autocorrect > While typing" turned off, for some reason.
> 
> However, even with that setting turned back on, with all versions, it still
> does not autocorrect the ;, ? and !... so it looks like this:
> 
> « banane : banane; banane? banane! »
> 
> ...instead of:
> 
> « banane : banane ; banane ? banane ! »

You should get 
« banane : banane ; banane ? Banane ! »
because ? is a sentence termination.

I do not reproduce the problem with
Version: 7.1.3.0.0+ / LibreOffice Community
Build ID: d72a592e2220974444146f5f4e76d6135af60ef9
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Ubuntu_18.04_x86-64
Calc: threaded

and with
Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: af6674ce681b8427d0171a88f212a7034334c9e1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Ubuntu_18.04_x86-64
Calc: threaded Jumbo

both built at home under Ubuntu 18.04 x86-64

Best regards. JBF
Comment 6 François Pernoud 2021-04-21 17:01:13 UTC
My environment is Ubuntu 21.04 and Libreoffice 7.1.2.2. The bug disappears when removing the package libreoffice-gtk3, reappears when reinstalling it.
Comment 7 Jean-Baptiste Faure 2021-05-04 07:28:23 UTC
(In reply to François Pernoud from comment #6)
> My environment is Ubuntu 21.04 and Libreoffice 7.1.2.2. The bug disappears
> when removing the package libreoffice-gtk3, reappears when reinstalling it.

Please, could you give a try to the version provided by TDF: https://www.libreoffice.org/download/download/

Status has been set to NEEDINFO, please set it back to UNCONFIRMED once requested information has been provided.

Best regards. JBF
Comment 8 Timur 2021-07-29 08:55:35 UTC
Me and others didn't reproduce the bug. So I close. 
If you can write repro steps, set Unconfirmed. 
In the meantime, see bug 143598.