Created attachment 190197 [details] sample of bad/wrong search results When [find/replace] searching for font style size finds wrong text. See attached samples. Thanks, Tracey When searching for a word or phrase, it highlights the word or phrase it finds.
Hello, please attach sample file and steps how to reproduce the bug. Thank you.
Created attachment 190214 [details] find-replace bug sample Issue : LibreOffice find-replace font-style feature corrupts the text-fonts My desire was to: Change from: LibreOffice Sans Regular 12point Change to: LibreOffice Serif Italic 12point Find-Replace actually changes 14point text when it should not and fails to change 12point text when it should (normal mode or safe mode). LibreOffice find-replace: 11,853 times and corrupts the text-fonts (see attached) Thanks, Tracey When I export the ODT document from LibreOffice as DOC: opening/changing/saving the DOC in Word2000 find-replace: 21,632 times does NOT corrupt the text-fonts opening/changing/saving the DOC in Word2002 find-replace: 21,632 times does NOT corrupt the text-fonts However, when saving an ODT document with LibreOffice as a DOC or an RTF, the column-section names get corrupted (but that is another issue).
Simple step after opening the ODT is to search for format font size: 12 pt. I confirm it is finding text formatted as 14 pt and I could not figure out why. I also examined content.xml and styles.xml, but no luck. Seen already in the oldest of linux 43all repository. To be sure, I will ask devs if there is some issue in the file. In general, it is better to use styles instead of direct formatting, so you don't have to deal with such mass replacements. See for example https://books.libreoffice.org/en/WG76/WG7608-IntroStyles.html
Testers can also use attachment 190196 [details] from bug 157727.
Yes, Styles are one of the NEXT on my list of things to understand how to use them (plus how to format a document properly: I am not a savvy document creator). But still, find and replace does not corrupt a document. Thanks, Tracey
The scary thing is when the document is corrupted, but it is not discovered until it is too late. FWIW, Tracey
Reproduced in: Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: fd69b546ad36452560cb11ccb28e78632d65f045 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded With smaller sample ODT attachment 190443 [details], searching for 12 pt font (Western). Also in OOo 3.3, so inherited. Some things I noticed: - "Find all" will highlight _no_ 12 pt text whatsoever - If I also use 12 pt in the Asian font part (which requires "Asian" to be ticked in Tools > Options > Languages), "Find all" will highlight some 12 pt text (but not all). - If I only use the Asian font part, "Find all" will highlight the remaining 12 pt text. Seems related to: * Bug 60458 - Find with Format carries unwanted Asian Typography option values by itself * Bug 84467 - Searching for font size does not always work * Bug 135857 - FIND & REPLACE DIALOG: Wrong results when searching for format (after apply and unapply Font Effects) There might be some duplication in there but I'm not able to untangle it.
(In reply to Tracey from comment #5) > Yes, Styles are one of the NEXT on my list of things to understand how to > use them (plus how to format a document properly: I am not a savvy document > creator). > > But still, find and replace does not corrupt a document. > Thanks, Tracey I made a type-o, it should read: But still, find and replace SHOULD not corrupt a document.