Bug 139951 - Some "replace dashes" options do not work with Tools -AutoCorrect - Apply
Summary: Some "replace dashes" options do not work with Tools -AutoCorrect - Apply
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 156542 (view as bug list)
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2021-01-28 00:51 UTC by sdc.blanco
Modified: 2023-10-13 02:02 UTC (History)
5 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 sdc.blanco 2021-01-28 00:51:48 UTC
1.  The "Replace Dashes" section of:  https://help.libreoffice.org/7.2/en-US/text/shared/01/06040100.html gives a table of what dash replacements should occur.

2.  Using Tools > AutoCorrect > Apply, two of items in the table do not work.

A--B (A, minus, minus, B)
A --B (A, space, minus, minus, B)

3.  The others work, and all work if tested with "While Typing"

Test conducted as follows:

1. Tools > AutoCorrect > AutoCorrect Options - Options tab
   uncheck all [T] fields.  Uncheck all [M] fields, except for 
   "Replace dashes"

2. Make sure to work in Default Paragraph Style

3. Enter the items in the table in a New Document.

4. Tools > AutoCorrect > Apply

Question:  Is the Help page wrong (and should be changed)?  Or is this an implementation problem?
Comment 1 Brian Young 2021-03-01 17:37:23 UTC Comment hidden (off-topic)
Comment 2 sdc.blanco 2021-03-01 20:36:44 UTC Comment hidden (off-topic)
Comment 3 Brian Young 2021-03-02 01:49:03 UTC Comment hidden (off-topic)
Comment 4 sdc.blanco 2021-03-02 03:03:11 UTC Comment hidden (off-topic)
Comment 5 Coburn Ingram 2021-05-13 17:53:46 UTC
I have this bug also. In order to get a leading em dash before a word, I used to have to type "a--word," hit the spacebar, and then LO would convert the two minuses to an em dash, and I could delete the leading "a" (dummy character). Awkward, but not too bad. Spellcheck wants you to have an em dash only between two words. In Spanish, for example, we use it instead of quote marks, and so it has to be at the beginning of a paragraph also.

Now even that does not work. I have to do all the same things, and then wait for autocorrect to draw a blue line under the dash, and right-click. The option given is "en dash or em dash." I can then change the two minuses to an em dash manually.

This is new since about the 6.0 release. I have deleted my profile. That does not work. I thought maybe it was because I was working on some documents created several years ago. It applies even in a brand new document. I also have gone into Spell Check Options and reset everything. That did not work. I tried specifying that two minuses are to convert to an em dash. That was the default anyway, and it did not work.
Comment 6 Buovjaga 2022-04-28 12:42:41 UTC
Repro already with 3.3.0

Arch Linux 64-bit
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 41b012767feb8552b60a68c7be18d80c403304bf
CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded Jumbo
Built on 28 April 2022
Comment 7 Stéphane Guillou (stragu) 2023-06-26 17:35:17 UTC
Reproduced in recent master build:

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

I tested it for both Default Paragraph and Body Text styles.
Comment 8 Dieter 2023-08-12 11:50:24 UTC
*** Bug 156542 has been marked as a duplicate of this bug. ***
Comment 9 Kira Tubo 2023-10-13 02:02:27 UTC
Reproduced on:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1ec2e39cf4d5fe0a592bc783fd8bcdc4345c8cbd
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded