https://bugs.documentfoundation.org/show_bug.cgi?id=104889
V Stuart Foote <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |libreoffice-ux-advise@lists
| |.freedesktop.org,
| |[email protected]
Resolution|--- |WONTFIX
Severity|minor |enhancement
--- Comment #2 from V Stuart Foote <[email protected]> ---
Expected behavior of the Find Bar.
Also, our regular expression implementation (ICU 58 [1]) makes this trivial,
but requires use of the <Ctrl>+H Find & Replace dialog rather than the <Ctrl>+F
Find Bar.
Yes it would be possible to provide a checkbox to enable regular expression
parsing in the Find Bar. But we have discussed this in different contexts (e.g.
bug 102615) and have elected to keep the Find Bar the light weight tool. I
don't see a use case for doing this, especially as the Find & Replace widget is
kept on the Find Bar.
=-Usage notes-=
How to use the ICU regular expressions in Find & Replace for smart quotes:
Enter this query in the Find field with regular expressions enabled.
for Initial quotes:
\p{Pi}
for Final quotes:
\p{Pf}
for Other Punctuation:
\p{Po}
or
for Any Punctuation
\p{P}
Alternatively, again using the ICU regular expressions the "smart quotations"
are in the Unicode General Punctuation block. And can be searched with the
"\N{UNICODE CHARACTER NAME}" syntax, or with the "\uhhhh" or "\x{hhhh}" syntax.
But the specific auto correct replacement can be set to any Unicode point glyph
as preferred with the Tools -> AutoCorrect -> AutoCorrect Options: Localized
Options tab. Including an ability to not replace.
Common AutoCorrect values used for Single Quote/Double Quotes
U+2018 -- ‘ (LEFT SINGLE QUOTATION MARK)
U+2019 -- ’ (RIGHT SINGLE QUOTATION MARK)
U+201a -- ‚ (SINGLE LOW-9 QUOTATION MARK)
U+201b -- ‛ (SINGLE HIGH-REVERSED-9 QUOTATION MARK
U+201c -- “ (LEFT DOUBLE QUOTATION MARK)
U+201d -- ” (RIGHT DOUBLE QUOTATION MARK)
U+201e -- „ (DOUBLE LOW-9 QUOTATION MARK)
U+201f -- ‟ (DOUBLE HIGH-REVERSED-9 QUOTATION MARK)
Obviously a codepoint and glyph from out of the General Punctuation block would
not be found with the \p{P*} syntax.
=-ref-=
[1] http://userguide.icu-project.org/strings/regexp
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs