Issue 96702 - inconsistent search result; backward search fails
Summary: inconsistent search result; backward search fails
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.0
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-29 03:53 UTC by tab
Modified: 2015-10-23 12:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
file with Tahoma strings (13.73 KB, text/plain)
2008-11-29 03:55 UTC, tab
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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.