Bug 67194 - EDITING Make it possible to include Localized Options (Autocorrect) in using Format > AutoCorrect > Apply
Summary: EDITING Make it possible to include Localized Options (Autocorrect) in using ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Main-Menu AutoCorrect-Complete Spell-Checking-Dialog
  Show dependency treegraph
 
Reported: 2013-07-22 22:14 UTC by John van Someren
Modified: 2023-08-16 15:33 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 John van Someren 2013-07-22 22:14:29 UTC
In the Localized Options of Auto Correct I have specified that the straight single and double quotes should be replaced by the 66/99 (ie rounded) versions. This works while I type.

However, my current document was produced without this option. I used the menu choices Format | AutoCorrect | Apply (and also Format | AutoCorrect | Apply and Edit Changes) to no avail. The progress bar shows that my document is being scanned (it is about 200,000 words so it takes half a second or so) but the quotes don't get changed. 

I tried selecting the whole text in case it only worked within a selection, and now Format | AutoCorrect only offers AutoCorrect Options. The other three items are greyed-out.

I have also tried with Times New Roman instead of Georgia. No change.

It also fails with converting 1st to 1½, which also works while I type.
Comment 1 Cor Nouws 2013-07-23 21:07:13 UTC
Hi John,

Thanks for your report!
As far as I am aware, the handy option for autocorrect in an existing text, uses the choises set on the Options page. 
And the localised options are not on that one...

So I think that your report comes down to an enhancement request.
Just as on top of the Options there is: Use the replacement table, one could add Use localised options with a check in the first column.

Do you agree with that?
Thanks,
Cor
Comment 2 John van Someren 2013-07-23 22:01:06 UTC
I think I understand. I would, however, like you to consider my alternative point of view:
Already, in LibreOffice, my straight quotes are replaced by curly quotes when I type them. This option is also available in MS Word (Backstage view | Options | Proofing | AutoCorrect | Autoformat As You Type.

No difference there, but here is the difference: in MS Word I can do a Search and Replace of ' with ' and " with ".  I know that this looks silly, but in Word the Replace obeys the rules of AutoCorrect As You Type so straight quotes are replaced by curly ones during the replace operation. In other words, Replace is treated the same as “as you type”. Which seems more than reasonable. It seems obvious.

In LO, the Replace facility ignores the rules of Autocorrect as you type. To me this is an implementation omission, almost a bug. Do you agree?

Thanks for the reply.
John



From: bugzilla-daemon@freedesktop.org 
Sent: Tuesday, July 23, 2013 10:07 PM
To: john@vansomeren.co.uk 
Subject: [Bug 67194] I cannot replace straight quotes with the rounded versions using Format|AutoCorrect|Apply

Cor Nouws changed bug 67194 
      What Removed Added 
      CC    cno@nouenoff.nl  


Comment # 1 on bug 67194 from Cor Nouws 
Hi John,

Thanks for your report!
As far as I am aware, the handy option for autocorrect in an existing text,
uses the choises set on the Options page. 
And the localised options are not on that one...

So I think that your report comes down to an enhancement request.
Just as on top of the Options there is: Use the replacement table, one could
add Use localised options with a check in the first column.

Do you agree with that?
Thanks,
Cor
--------------------------------------------------------------------------------
You are receiving this mail because: 
  a.. You reported the bug. 


--------------------------------------------------------------------------------
This email has been scanned by Netintelligence
http://www.netintelligence.com/email

--------------------------------------------------------------------------------
Comment 3 Cor Nouws 2013-07-30 20:58:47 UTC
Hi John,

Thanks for further imput. 

I did think a bit more about it. But since the user interface in LibreOffice makes clear distinction between autocorrect replace and localized options, I think there is no error in the program, just something that is not implemented.

It looks as a good idea indeed, so I set the various fields as enhancement and such.
Comment 4 sdc.blanco 2021-01-26 00:11:18 UTC
It is hard to tell whether this bug is a duplicate of bug 128192.
If the OP had a document with paragraphs that were not in Default Paragraph Style, then this might be reason why Tools > AutoCorrect > Apply did not apply -- in which case it is probably a duplicate.

Meanwhile, comment 3 here has framed this bug as an issue about using Localized Options with Tools > AutoCorrect > Apply.  From that point of view, bug 128192 shows at least WFM in relation to this bug 67194, because Localized Options (for replace quotes) are applied (to Default Paragraph Style).
Comment 5 Dieter 2021-08-03 08:58:54 UTC
(In reply to sdc.blanco from comment #4)
> It is hard to tell whether this bug is a duplicate of bug 128192.
> If the OP had a document with paragraphs that were not in Default Paragraph
> Style, then this might be reason why Tools > AutoCorrect > Apply did not
> apply -- in which case it is probably a duplicate.
> 
> Meanwhile, comment 3 here has framed this bug as an issue about using
> Localized Options with Tools > AutoCorrect > Apply.  From that point of
> view, bug 128192 shows at least WFM in relation to this bug 67194, because
> Localized Options (for replace quotes) are applied (to Default Paragraph
> Style).

John, whatt do you think about that?
=> NEEDINFO
Comment 6 John van Someren 2021-08-03 13:11:23 UTC
I came to Writer after many years of using Word Perfect and then MS Word. 

I have always set Writer up so that it replaces straight quotes with curly quotes. This works all the time I type in text. This feature appears to me independent of the style I'm using.

However, if spell checker suggests "won't" and I accept the suggestion, Writer does not change the straight quote to a curly quote. It just plonks the word straight in to the typed text, instead of feeding it letter by letter as though I was typing it. Therefore it misses out on the chance of having its straight quote changed to a curly one.
Comment 7 Dieter 2022-02-18 15:06:28 UTC
I confirm it with 

Version: 7.3.0.3 (x64) / LibreOffice Community
Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL

And German as language tool.

Steps to reproduce

1. Mace sure, that in Tools -> AutoCorrect -> AutoCorrect options -> Localized options: single qutote has a curley quote
2. Type "Er war's nicht" ("war's" is written with curly quote) (expected)
3. Type "Er wars nicht"
4. Tools -> Spelling
5. Change "wars" manually to "war's" -> Correct -> OK

Actual Result: war's has straight quote
Expected result: war's should have curly quote

I assume, that input field in spell checking dialog doesn't take into account settings from Localized options.
Comment 8 Dieter 2022-02-18 15:08:39 UTC
(In reply to sdc.blanco from comment #4)
> It is hard to tell whether this bug is a duplicate of bug 128192.

Not a duplicate of bug 128192, because in steps in previous comment text had default paragraph style.
Comment 9 Jax 2023-08-07 10:46:41 UTC
tl;dr:  Make a selectable option.

Hi, just my two penn'orth...

An interesting idea and if implemented, I would want it to be via a search and replace checkbox option, within the replace dialog box.

Reason is that I often do very specific, technical search and replace operations that are not like ordinary typed text... part numbers, codes, eradicating strange artefacts from imported documents/scans.  This can be on thousands of occurrences and predicting the influence of all autocorrect rules would be impossibly complex.  Having the option hidden or permanently on would cause unexpected errors in many of my operations.

I would suggest that this checkbox option is sticky and remains as previously set.

   [x]  Apply Autocorrect Rules when Replacing.


Thanks for the coding efforts!