Bug 159651 - Ctrl+H search in Writer doesn't acknowledge diacritics in Polish
Summary: Ctrl+H search in Writer doesn't acknowledge diacritics in Polish
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-09 00:30 UTC by Mac
Modified: 2024-02-09 13:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mac 2024-02-09 00:30:19 UTC
Description:
In the latest version of LibreOffice Writer (language set to Polish) the search and replace (Ctrl+H) tool doesn't discriminate between letters with and without diacritics. This bug applies to the search field of the pop-up window. Therefore a search for eg. "tor" will result in finding (and potentially replacing) both "tor" and "tór", similarly searching (and replacing) "tez" will find (and replace) "tez", "też", "tęz", and "tęż" - and so on.

The Ctrl+F search works correctly. The problem applies only to the Ctrl+H (search and replace) window.

The problem is severe, because it renders the Ctrl+H function unusable, as Polish language is chock-full of diacritics.

Steps to Reproduce:
1. Create a new Writer document.

2. Type the following words: tez, też, tęz, tęż, potężny, protez, wytęż, toteż, tężec, .

3. Open the search and replace pop-up window (Ctrl+H).

4. Type in the search bar the word: tez.

5. Find next. It will highlight every word regardless of diacritics.

6. If you type in the search bar a word wit any of the diacritics (eg. tęż), the program will also highlight everything regardless of diacritics.

7. You can also try to replace — eg. tez with też; now all the words will be replaced with też (making them nonsensical in the context of a sentence).

8. The same applies to finding a word and replacing it with a formatted version. Eg. type in the search bar the word: tez, and in the replace bar type: tez, but with a highlighting in any colour. The result will be every word (or their appropriate fragment in case of the longer words, of course) replaced with highlighted "tez".

Actual Results:
As stated in the steps to reproduce.

Expected Results:
The search results should be limited to exactly the searched strings of letters with their specific diacritics.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded
Comment 1 V Stuart Foote 2024-02-09 01:56:52 UTC
Please verify the state of the 'Diacritic-sensitive' checkbox in the expanded "Other options" for the "Find and Replace..." dialog. 

It should be checked enabled or diacritics will be ignored.

And, often a good idea to clear/delete your user profile and allow reset with defaults.

=-ref-=

https://help.libreoffice.org/7.6/en-US/text/shared/01/02100000.html?System=WIN&DbPAR=WRITER&HID=svx/ui/findreplacedialog
Comment 2 Mac 2024-02-09 03:43:08 UTC
Dear Stuart, OMG, I must have been blind, or this function is more recent than the previous LO i was using (5 or 6, and I've upgraded only a few days ago).

Thank you very much for pointing it out to me. I've just checked it and everything works like a charm - even the highlighting I mentioned in point 8., and which always seemed broken in the old version (unless I was blind then too).

Thanks for your help, and have a great day,
Mac