https://bugs.documentfoundation.org/show_bug.cgi?id=104889
V Stuart Foote <vstuart.foote@utsa.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |libreoffice-ux-advise@lists
| |.freedesktop.org,
| |vstuart.foote@utsa.edu
Resolution|--- |WONTFIX
Severity|minor |enhancement
--- Comment #2 from V Stuart Foote <vstuart.foote@utsa.edu> ---
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 on the CC list for the bug.
Context
- [Libreoffice-ux-advise] [Bug 104889] Typing quotation marks into find toolbar fails to find smart quotes · bugzilla-daemon
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.