Bug 140445 - Autocorrect works only when pressing return, not when pressing space
Summary: Autocorrect works only when pressing return, not when pressing space
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2021-02-16 13:51 UTC by pezcurrel
Modified: 2021-03-15 19:46 UTC (History)
4 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 pezcurrel 2021-02-16 13:51:11 UTC
Description:
I have an autocorrect rule to substitute "aaa" with "bbb".
This happens only when I press "return" after the third "a"; if I press "space", "aaa" doesn't get substituted with "bbb". It's been sometimes since I last used libreoffice but I can remember autocorrection used to work on "space" too, as expected.

Steps to Reproduce:
1. Make sure "Tools > AutoCorrect > While typing" is active
2. Write a sequence of characters which should be replaced by another sequence of characters, according to the current replacement table, like "wroet", which should be replaced by "wrote"
3. Press spacebar

Actual Results:
"wroet" isn't replaced by "wrote"

Expected Results:
"wroet" should be replaced by wrote (it happens, if you press return instead of space at step 3).


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 7.0.4.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: en-US (C); UI: en-US
7.0.4-1
Calc: CL
Comment 1 Emilio R. 2021-02-19 15:41:40 UTC
I can confirm this behavior.

Following report might be related: https://bugs.documentfoundation.org/show_bug.cgi?id=139744

Additional information:

libreoffice --version: LibreOffice 7.0.4.2 00(Build:2)

uname-a: Linux host 5.10.16-arch1-1 #1 SMP PREEMPT Sat, 13 Feb 2021 20:50:18 +0000 x86_64 GNU/Linux

localectl: 
System Locale: LANG=de_DE.UTF-8
VC Keymap: de
X11 Layout: de
X11 Model: pc105
Comment 2 Giovanni 2021-02-20 21:51:17 UTC
Same to me.

LibreOffice 7.0.4.2 00(Build:2)

uname -a: Linux archdesk 5.10.16-arch1-1 #1 SMP PREEMPT Sat, 13 Feb 2021 20:50:18 +0000 x86_64 GNU/Linux

localectl:
   System Locale: LANG=it_IT.UTF8
       VC Keymap: it-latin1
      X11 Layout: n/a
Comment 3 Adam 2021-02-26 22:20:45 UTC
Same here, been struggling with it since Arch (LTS kernel) moved to version 7.0.x of LibreOffice.

Exactly as others describe: hitting enter will change, e.g., two hyphens into an en-dash or ":---:" into an em-dash, but hitting space does nothing.

Issue is 100% reproducible.

System fully up-to-date.

localectl
   System Locale: LANG=en_GB.UTF-8
       VC Keymap: pl
      X11 Layout: n/a
Comment 4 Julien Nabet 2021-02-27 12:17:23 UTC
Just for the record, on pc Debian testing with LO Debian package 7.0.4.2 with fr-FR + gtk3, I don't reproduce the initial description.

I opened a brand new file on Writer, added "aaa" -> "bbb" substitution then typed "aaa" followed by a space, it's been replaced by "bbb".
Comment 5 himajin100000 2021-02-27 15:11:11 UTC
FWIW:
not reproducible on windows versions as follows

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: af64bc49d872d8a040d66387303def98eae5cd51
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: ja-JP (ja_JP); UI: en-US
Calc: CL

and

Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL
--
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/docvw/edtwin.cxx?r=899a73a3#1935
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/docvw/edtwin.cxx?r=899a73a3#1659
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/docvw/edtwin.cxx?r=899a73a3#2373
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/docvw/edtwin.cxx?r=899a73a3#2465
https://opengrok.libreoffice.org/xref/core/editeng/source/misc/svxacorr.cxx?r=d1be3d80&fi=IsAutoCorrectChar#255
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/docvw/edtwin.cxx?r=899a73a3#2488
Comment 6 Matt Price 2021-03-03 23:16:39 UTC
I am also seeing this on arch linux, with both libreoffice-still (7.0.4) and libreoffice-fresh (7.1.0) packages. Should I be doing something to help diagnose the bug?
Comment 7 anark10n 2021-03-04 19:26:05 UTC
Same issue, on arch linux for libreoffice 7.0.4.2 and 7.1.0.3. Autocrrect will work when pressing enter, but not when pressing spacebar.

Version: 7.1.0.3 / LibreOffice Community
Build ID: 10(Build:3)
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-ZA (en_ZA.UTF-8); UI: en-ZA
7.1.0-2
Calc: threaded
Comment 8 anark10n 2021-03-06 21:45:44 UTC
The issue appears to be to the VCL UI as reported in this thread: https://bbs.archlinux.org/viewtopic.php?pid=1960377#p1960377
Comment 9 ylosser 2021-03-07 16:36:10 UTC
Yes, you're probably correct. And the issue also impact Calc with the decimal separator... (please see https://bugs.documentfoundation.org/show_bug.cgi?id=140670)

Changing the VCL UI solve both issues.
Comment 10 ylosser 2021-03-13 08:35:36 UTC
Finally solved for me after the last update of my system (Arch). LO version unchanged, but gtk3 upgraded.
Comment 11 mulla.tasanim 2021-03-15 19:46:28 UTC
Thank you for reporting the bug. 

I can confirm the bug present in

Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nb-NO (en_US); UI: en-US
Calc: CL

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 761a672d62df1891b9f4f367a499b220ab2b33fa
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL