Apache OpenOffice (AOO) Bugzilla – Issue 75180
Find&Replace: Search for soft hyphen does not work anymore
Last modified: 2013-08-07 14:42: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.
Reassigned to SBA.
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. :-)
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.
FME: Ready for QA.
.
SBA: Reassigned to me.
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.
SBA: Reassigned to FME.
FME: Fixed as proposed by SBA.
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.
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 :-)
SBA: OK in 680m224. Closed.
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.