| Summary: | Autotext replacement not willing to ignore parenthesis before shortcut "---" | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Eyal Rozenberg <eyalroz1> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | dgp-mail, stephane.guillou |
| Priority: | medium | ||
| Version: | Inherited From OOo | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://bugs.documentfoundation.org/show_bug.cgi?id=147680 https://bugs.documentfoundation.org/show_bug.cgi?id=94911 https://bugs.documentfoundation.org/show_bug.cgi?id=126589 |
||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 108663 | ||
|
Description
Eyal Rozenberg
2022-02-26 23:18:53 UTC
I can't confirm it with Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 51fb84829afbc1c0957fd1a489085613ad199f1a CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL Example:(DT + F3 inserts dummy text behind parenthesis (In reply to Dieter from comment #1) > Example:(DT + F3 inserts dummy text behind parenthesis Try it with a shortcut of three minus signs please. I confirm it with shortcut "---" So it's not a general problem with shortcuts but with special one (Assumption: If you combine letters and non-letters LO will ony trest letters as shortcut. If you combine non-letters LO will treat all characters as a shortsut). Version: 7.3.2.1 (x64) / LibreOffice Community Build ID: 0b2e59a88b7e225b655db87910f97dca7aef27aa CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL Just adding some motivation: I use some non-letter shortcuts to insert characters without keyboard keys, e.g. --- for em-dash, -> for right-arrow etc. This could theoretically be achieved with autocorrect, but one might want fine-grained control, or otherwise need to avoid autocorrect. I understand the use case, but I also think, that autocorrect is the more appropriate solution. Confirmed that AutoText will use the closest string of non-space characters that's only composed of either alphanumeric characters _or_ special characters. Note that using Ctrl + Shift + Left arrow will also select the full ")---". OOo 3.3 would also catch the full ")---", so marking as inherited. Mike, after your work on bug 126589, what are your thoughts? Deciding what constitute a boundary or not in a series of non-alphanum will always be debatable[1], so the only way out as I understand it is to: (a) keep adding characters to the string and checking if it matches a shortcut until it does or it reaches a space or alphanum character. Sounds like a pretty bad hack, but could work? Alternatively: (b) Stop accepting some boundary characters in new shortcuts (which ones? and would break existing shortcuts, so not workable.) (c) Won't fix. [1] What happens if I want my shortcut to be ")))" ? It's currently accepted in the shortcut field. |