Bug 117643 - Word search does not work in LibreOffice Writer if search term contains an apostrophe
Summary: Word search does not work in LibreOffice Writer if search term contains an ap...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Find-Search
  Show dependency treegraph
Reported: 2018-05-16 10:42 UTC by mwtjunkmail
Modified: 2020-06-04 09:27 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description mwtjunkmail 2018-05-16 10:42:36 UTC
I cannot find even simple words like:  don't   
using the word search feature in Writer.
Search fails if an apostrophe is in the search term.

Steps to Reproduce:
1. Open Writer.
2. Type a word containing an apostrophe to search for
3. Hit Control-F and enter the search term with the apostrophe

Actual Results:  
Word not found.

Expected Results:
Word found.

Reproducible: Always

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 OPR/52.0.2871.99
Comment 1 mwtjunkmail 2018-05-16 10:45:49 UTC
Bug is also present in Version: (x64)
Comment 2 Dieter 2018-05-16 16:11:43 UTC
1. I copied and pasted the text of the bug report
2. Strg + F
3. I typed don't => search term was found

But when I type "don't" in the document, the apostroph looks different and isn't found.

Depends on language settings:
Tools => AutoCorrect => AutoCorrect Options: If I disable "replace" for single quotes and type "don't", the search term is found.

@mwtjunkmail: Can you confirm this?

Version: (x64)
Build ID: 775d0f26beecffccf3ed27a6a011aff20d91f842
CPU threads: 4; OS: Windows 10.0; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-04-26_01:05:25
Locale: en-US (de_DE); Calc: CL
Comment 3 mwtjunkmail 2018-05-16 23:55:50 UTC
That would be the issue, I have the replacement on. 

I created a new writer document in, typed don't and it wasn't found.

I then entered Notepad, typed don't, copied and pasted into the document, and it was found.

I'm keeping the replacement on, so I guess I'll just live with this.
Comment 4 Dieter 2018-05-17 10:19:09 UTC
(In reply to mwtjunkmail from comment #3)

> I'm keeping the replacement on, so I guess I'll just live with this.

There is another solution. If you use keyboard combination both in text and in search field, it works. Example for text in German: ALT + 0146 inserts the correct type of the apostroph. The word "don't" is found, if you use this combination in the docuemnt as well as in the search field.

So I would say NOTABUG in this case.
Comment 5 mwtjunkmail 2018-05-20 08:04:04 UTC
Hm... I just tested this in MS Word 365, which I'm trying to stay away from by using LibreOffice. 

Word doesn't have this issue.  Type and replace turned on for apostrophes doesn't kill the application's ability to find apostrophes in word search terms.

Why should Writer require gymnastics to type in alt codes to achieve the same thing?
Comment 6 Daniel MOYNE 2020-05-28 07:54:01 UTC
I have the same problem with "d'affixe" which is not found by search. The solution proposed is not acceptable. Before it worked without doing it. It should work the same way.
Comment 7 Dieter 2020-05-28 08:08:49 UTC
Back to UNCONFIRMED because of comment 5 and comment 6