Bug 158480 - Auto-correct is not applying the replacement rule when string finishes with single quote (conflict between autocorrect rules)
Summary: Auto-correct is not applying the replacement rule when string finishes with s...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2023-12-01 16:41 UTC by Ludovica
Modified: 2023-12-15 17:20 UTC (History)
1 user (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 Ludovica 2023-12-01 16:41:22 UTC
Description:
When I create an automatic correction in Italian language for example 
perche' --> perché, this substitution is not applied on the document.
LibreOffice, after that an User add this automatic correction, not recognise the error, so dosen't correct perche without the accent but neither the new correction that the user had insert.

Steps to Reproduce:
1. Open LibreOffice Writer
2. Click tools -> auto-correct -> auto-correct option
3. Insert on "Replace" perche' and on "With" perché
4. Click on New
5. Click on Ok
6. In Writer type perche' and then 'press space

Actual Results:
LibreOffice not recognise the error, so dosen't correct perche without the accent but neither the new correction that the user had insert.


Expected Results:
LibreOffice have to correct, after write perche' and after press space, correct the current word with perché


Reproducible: Always


User Profile Reset: No

Additional Info:
Repro with:
Version: 7.3.6.2 (x64) / LibreOffice Community
Build ID: c28ca90fd6e1a19e189fc16c05f8f8924961e12e
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: CL

Repro with:
Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 01a02ee7f1dbe7501a89b41e62599fba6a8b33f3
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: CL threaded
Comment 1 Stéphane Guillou (stragu) 2023-12-15 17:20:28 UTC
Thanks for the report, Ludovica.

I see the same in English in:

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

The issue is that the "straight" single quote used in the "Replace" string is first autocorrected to a "typographic" (curved) single quote.
In the AutoCorrect dialog, if you go to "Localized Options", you can turn off the "Single Quotes" rule. You'll see then that your replacement rule does work.
Can you confirm this?

I would say this is "not a bug" as there is a conflict between two autocorrect rules, unless there is an argument that can be made for changing precedence of one rule over the other?