Issue 75180 - Find&Replace: Search for soft hyphen does not work anymore
Summary: Find&Replace: Search for soft hyphen does not work anymore
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 2.2 RC2
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: stefan.baltzer
QA Contact: issues@sw
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2007-03-06 19:47 UTC by kpalagin
Modified: 2013-08-07 14:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kpalagin 2007-03-06 19:47:39 UTC
Currently S&R does not seem to be able to find soft hyphen in text.
Please provide means for finding soft hyphens. This is important for case 
where user manually hyphenated text, but changes formatting later and wants to 
remove soft hyphens.
Comment 1 michael.ruess 2007-03-07 08:02:35 UTC
Reassigned to SBA.
Comment 2 stefan.baltzer 2007-03-09 16:02:38 UTC
SBA: See issue 15616 "Find (and Replace) does not ignore custom hyphens"
(integrated in OOo 2.1)... That was ONE scenario where they should be ignored,
rightfully treated as defect.

Not being able to find soft hyphens themselves, not even via their Unicode ID
(x00AD, see www.unicode.org -> code charts) is bad.
Before the fix, it was possible by copying them from document text to the search
box.

In total, this is a regression. I adjusted the summary to reflect the findings.
Change type to defect, set keyword regression, reassigned to FME.

SBA->FME: Ooops... We didn't think about this. :-)
Comment 3 frank.meies 2007-03-23 15:33:05 UTC
FME: I'll change the code the way that we do *not* ignore softhyphens in the
paragraph string if the search string consists of exactly one softhyphen.

FME: Fixed in cws swqbf93, findtxt.cxx rev. 1.19.126.1.
Comment 4 frank.meies 2007-04-24 14:01:57 UTC
FME: Ready for QA.
Comment 5 frank.meies 2007-04-24 14:04:06 UTC
.
Comment 6 stefan.baltzer 2007-05-14 13:44:54 UTC
SBA: Reassigned to me.
Comment 7 stefan.baltzer 2007-05-14 17:20:47 UTC
SBA: A single soft hyphen (copy-paste from document or Insert special character
via Edit box context menu and select SoftHyphen #173 / x00AD) is found. If there
is more than one character in the search field, the soft hyphen is ignored.
The Unicode ID search (check "Regular expression", search key ="\x00AD") does
not work.
This must work, too. It did in OOo 2.0.
SBA->FME: Reopening issue as discussed. The Regular expression search string is
unique, but it may occur in combination with other regular expressions. Examples:
 - "[\x00AD|\x00AO]" shall find soft hyphen OR non-breaking space in one go
 - "test\x00AD{2}" shall find the word "test" with TWO soft hyphens appended to it
Therefore I propose to "not exlude" the soft hyphen from the search in these two
cases:
(A) When the soft hyphen is the only character being searched for (Standard
scenario, already working)
(B) When the regular expression key "\x00AD" is part of the search string AND
regular expressions is checked.
Comment 8 stefan.baltzer 2007-05-14 17:23:58 UTC
SBA: Reassigned to FME.
Comment 9 frank.meies 2007-05-15 09:55:28 UTC
FME: Fixed as proposed by SBA.
Comment 10 frank.meies 2007-05-16 13:59:00 UTC
.
Comment 11 mauf 2007-05-16 15:34:48 UTC
Glad this will be fixed, yet I see the cut+paste method works for you (SBA), 
it does not for me (neither cut+paste or select character and ctrl+f)...
I have not tried yet insert special... but I am just wondering if it does work 
for you before or after any fix in the code ?

thanx and regards, mauf.
Comment 12 stefan.baltzer 2007-05-16 16:30:18 UTC
SBA: Verified in CWS swqbf93.

SBA->mauf: In the current OOo-Dev build (CRC680_m210, 211, 212), this issue
exists exactly like the summary tells.
The first attempt (search works, but Regex Search does not) as well as the
second, successful one, as I use and comment on NOW) is only visible in CWS
build. After integration of the CWS (= child workspace) into the master build
you will see the behavior in the next OOo-Dev builds (probably SRC680m213 or
m214 or m215). In that one, this issue will be re-verified again and closed. 
So be patient, the fix will come to you too :-)
Comment 13 stefan.baltzer 2007-08-03 15:55:35 UTC
SBA: OK in 680m224. Closed.
Comment 14 mikekaganski 2009-05-15 04:59:52 UTC
Find and Replace for soft hyphens works OK if you do any of the following:
1. Copy a soft hyphen from the text and paste into "Find" field, no RegEx
2. Insert the symbol from the Symbols dialog through context menu in "Find" 
field, no RegEx
3. Use \x00AD with RegEx

But if you use \x00ad with RegEx, you won't find the symbol, although if you 
try to find, say, letter "j" using \x006a it will be found. Hope that this 
inconsistent case sensitive behaviour will be fixed.