Bug 163729 - Certain configurations mark non-italics as italics for the purposes of format searching
Summary: Certain configurations mark non-italics as italics for the purposes of format...
Status: RESOLVED DUPLICATE of bug 135857
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.5.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-02 05:21 UTC by andy.sierra16
Modified: 2024-11-17 01:03 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Find All, various results (108.41 KB, image/png)
2024-11-02 05:26 UTC, andy.sierra16
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andy.sierra16 2024-11-02 05:21:46 UTC
Description:
There are numerous ways in which italics or regular text can be somehow incorrectly marked as italic or non-italic, as far as the Find -> Format dialogue is concerned. Sometimes when it shows up, reversing the change made doesn't reverse the problem, or produces other unexpected results. When this happens, "Clear Direct Formatting" or toggling the italics on and off doesn't work either. Sometimes the only way I've been able to fix it is by deleting the passage and retyping it completely.

Steps to Reproduce:
1. Type something like the following, with [i][/i] indicating italicized passages:

Lorem ipsum dolor one. [i]Lorem ipsum dolor two?[/i] Lorem ipsum dolor three. [i]Lorem ipsum dolor four?[/i] Lorem ipsum dolor five.

So far this works fine.

2. Italicize a single word in the middle of a sentence:

Lorem ipsum dolor one. [i]Lorem ipsum dolor two?[/i] Lorem ipsum dolor three. [i]Lorem ipsum [/i]dolor[i] four?[/i] Lorem ipsum dolor five.

3. Do a "Find All" for "Format: No Italic", or enable Regular Expressions and search for "." for "Format: No Italic".

Actual Results:
Using "Find All" for "Format: Not Italic" will not highlight sentence three. Searching for Regular Expression ".", "Format: Not Italic", will highlight every character in the first sentence and the "d" in our non-italicized word.

Expected Results:
The first, third, and fifth sentences should have been highlighted as well as the word "dolor" in the fourth sentence.

Or, when searching for ".", every non-italicized character should have been highlighted., i.e., "Lorem ipsum dolor one.  Lorem ipsum dolor three.  dolor  Lorem ipsum dolor five."


Reproducible: Always


User Profile Reset: Yes

Additional Info:
This particular example is reversible, by re-italicising the word we un-italicized, but I haven't been able to undo every example of this happening. "Clear Direct Formatting" doesn't do anything either. This is one reproducable example, but I noticed it during writing when trying to search for all italicized portions of the text. Sometimes, italicized portions will get selected as well. I'm unclear what causes it most of the time, and so far the only sure way I've found of working around it is deleting the entire paragraph and rewriting it, however, there's no workaround if you want to write something like the above example. Your formatting will simply not be searchable the way it should be.
Comment 1 andy.sierra16 2024-11-02 05:26:23 UTC
Created attachment 197351 [details]
Find All, various results

Bug visualized.
Comment 2 Bryan Zanoli 2024-11-17 01:03:06 UTC
Thank you for submitting this report. I am able to reproduce this issue on: 
Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded


This bug is a duplicate of: https://bugs.documentfoundation.org/show_bug.cgi?id=135857

*** This bug has been marked as a duplicate of bug 135857 ***