Bug 140981 - Tools - Automatic Correction doesn't honor removed substitutions
Summary: Tools - Automatic Correction doesn't honor removed substitutions
Status: RESOLVED DUPLICATE of bug 96787
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-12 12:57 UTC by Lobotomik
Modified: 2021-03-12 20:43 UTC (History)
0 users

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 Lobotomik 2021-03-12 12:57:46 UTC
Description:
My documents are set to language Spanish (from Spain).

When I type "nº " (which means "number", like # in English) it is automatically corrected to "n.º ", which is incorrect (and meaningless). 

However if I write "nº1" (without the trailing space), it is respected. 

But it is customary to insert the space, like in addresses "Calle Gran Vía nº 123".

If I go to options for automatic corrections I see there is a default entry that changes "nº" for "n.º". Well, that is wrong. But the real issue is: If I remove the entry for the substitution, the behavior doesn't change.

I have removed other substitutions, like "exumar" to "exhumar" (which is correct), and the substitution still takes place.

I have found that if I *ADD* an entry that substitutes "nº" with "nº", then it works OK.

So there's two issues:

#1
User-added substitutions are applied, and user-modified substitutions are applied too, but user-removed substitutions are ignored, and the default table is applied.

#2
The substitution "nº" for "n.º" in Spanish is wrong (and will drive crazy anybody who doesn't jump through all the hoops I went thru to fix it).



Steps to Reproduce:
1. Set document language to Spanish (from Spain)
2. Type "nº 123"
3. You get "n.º 123"
4. Type "nº123"
5. You get "nº123"
6. Select Tools -> Automatic Correction -> Options for Automatic Correction
7. Make sure it is showing substitutions for Spanish (from Spain)
8. Type "nº" in "Replace" box
9. "nº" to "n.º" entry is highlighted
10. Click "remove". The entry disappears. Click "Accept"
11. Type "nº 123". You still get "n.º 123"
12. Select Tools -> Automatic Correction -> Options for Automatic Correction
13. Make sure it is showing substitutions for Spanish (from Spain)
14. Type "nº" in "Replace" box. Type "nº" in "with" box. Click on New.
15. The new entry is highlighted. Click Accept.
16. Type "nº 123". You get "nº 123"

If you dont have an "º" key, you can probably see the same behavior in English. 

1. Pick any substitution from the autocorrect menu
2. Check that it is applied
3. Remove it from the table
4. See how it is still applied
5. Add it again and change the substitution value
6. See how the new substitution is applied.


Actual Results:
Removed substitutions are still applied.

Expected Results:
Removed substitutions are not applied any longer.


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: es
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Julien Nabet 2021-03-12 20:29:03 UTC
It's fixed from next release 7.0.5 or if you prefer, you can give a try at brand new 7.1.1 version.

*** This bug has been marked as a duplicate of bug 96787 ***
Comment 2 Lobotomik 2021-03-12 20:43:09 UTC
Thank you, that was fast!

I think I'll go to 7.1.1 :-)