Bug 162050 - Fuzzy search for regular, non-breaking, soft hyphen and space
Summary: Fuzzy search for regular, non-breaking, soft hyphen and space
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Find-Search
  Show dependency treegraph
 
Reported: 2024-07-16 07:00 UTC by BDF
Modified: 2024-11-04 09:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
hyphen and space search (111.34 KB, image/png)
2024-07-16 07:00 UTC, BDF
Details
hyphen and space test file (21.37 KB, application/vnd.oasis.opendocument.text)
2024-07-16 07:05 UTC, BDF
Details
problem in a nutshell (132.33 KB, image/png)
2024-07-16 07:44 UTC, BDF
Details
hyphen and space search (117.06 KB, image/png)
2024-07-18 09:15 UTC, BDF
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BDF 2024-07-16 07:00:47 UTC
Created attachment 195325 [details]
hyphen and space search

SUMMARY
When you search in the document (Ctrl+F) that has non-breaking hyphens, you can not search for them in the search dialogue by typing.


STEPS TO REPRODUCE
1. Create Writer file and type a word one time with a regular and another with non-breaking hyphen
2a. Search for the word in the search field by typing the word
2b. Search for the word in the search field by copying the word


OBSERVED RESULT
Add. 2a) When the text is typed you can not type non-breaking hyphens. A typed regular hyphen will not find the non-breaking hyphen

Add. 2b) When the text is copied there is a) no indication that you search for a non-breaking hyphen and b) now only the non-breaking hyphen is found 


EXPECTED RESULT
As this is a very basic search I would expect a fuzzy search where a typed hyphens finds non-breaking hyphens and vice versa copied non-breaking hyphens find regular hyphens.

I would also expect a soft hyphen (in a copied word) to be ignored in the search as it is done when the word is typed (without soft hyphen) (result: Word with soft hyphen is found even search does not contain one)


ADDITIONAL INFORMATION
I've seen bug 89573 (Can not type non-breaking space into Find & Replace dialog; https://bugs.documentfoundation.org/show_bug.cgi?id=89573) but as it has the Find & Replace dialogue as main subject I'm not sure if this is the same.
Comment 1 BDF 2024-07-16 07:05:07 UTC
Created attachment 195326 [details]
hyphen and space test file

A test file to search for
o) hy-phen (with regular, non-breaking and soft hyphen)
o) sp ace (with regular and non-breaking space combined with soft hyphen)
Comment 2 BDF 2024-07-16 07:44:20 UTC
Created attachment 195327 [details]
problem in a nutshell

In short:
1a) When hyphen is typed, non breaking hyphens can't be found
1b) When non-breaking hyphens are inserted (via copy&paste)
2) Same as 1a) and 1b) for spaces and non breaking spaces
Comment 3 BDF 2024-07-18 09:15:34 UTC
Created attachment 195367 [details]
hyphen and space search

file correction
Comment 4 BDF 2024-09-23 12:48:52 UTC
Looks like this is related to Issue #89573 (Can not type non-breaking space into Find & Replace dialog)

https://bugs.documentfoundation.org/show_bug.cgi?id=89573
Comment 5 Dieter 2024-11-03 11:32:17 UTC
I confirm the actual behaviour, but I'm not sure, if it is a bug (or a duplicate) or an enhancement request. Let's ask design-team.
Comment 6 Heiko Tietze 2024-11-04 09:48:53 UTC
Fuzzy search should return all kind of spaces including EN and EM variants. The same for hyphen. So essentially I agree with the request.

Kind of duplicates
Bug 89573 - Can not type non-breaking space into Find & Replace dialog
Bug 126294 - Similarity search does not find results when searching for strings with a space or hyphen