Issue 96702

Summary: inconsistent search result; backward search fails
Product: Writer Reporter: tab <tab>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, jes
Version: OOo 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Description Flags
file with Tahoma strings none

Description tab 2008-11-29 03:53:57 UTC
Search for Tahoma in FindPart.odt, using .* as search pattern and
RegularExpressions option.
Find successively ':', '0',  ':', '1', ':2', ':3', ':4'.
Why were the first two colons found separately from the following numeral (0,
1), while the others were found as strings ':2", ':3', ':4'? The last three
finds were as expected, since complete strings, rather than individual
characters, should be found.
Also: searching backwards, nothing is found!
Comment 1 tab 2008-11-29 03:55:59 UTC
Created attachment 58380 [details]
file with Tahoma strings
Comment 2 eric.savary 2008-12-03 11:30:44 UTC
@SBA: issue should be split into 2 issues. Both confirmed:
- inconsistency of search
- Backward doesn't work
Comment 3 Joe Smith 2015-10-23 12:33:54 UTC
Tested with AOO 4.1.1 on Fedora Linux

I see the problem as described, but the reverse search now seems to work as expected.

The problem with matching the colons separately is caused by the text formatting: the colons in the first two instances have distinct formatting from the following digit. It seems that the search with format (font=Tahoma) only considers text within a span and not across separate spans.

Here is the xml at the first match:

<text:span text:style-name="T23">:</text:span><text:span text:style-name="T24">0</text:span>

Here's the xml at the fifth match:

<text:span text:style-name="T23">:2</text:span>

The T23 and T24 text styles both contain font=Tahoma but apparently the separate text spans are not combined before trying the match.