[Libreoffice-bugs] [Bug 140981] New: Tools - Automatic Correction doesn't honor removed substitutions

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Mar 12 12:57:46 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=140981

            Bug ID: 140981
           Summary: Tools - Automatic Correction doesn't honor removed
                    substitutions
           Product: LibreOffice
           Version: 7.0.4.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: nachodelosrios at gmail.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210312/a47a7108/attachment.htm>


More information about the Libreoffice-bugs mailing list