Issue 2997 - Allow search and replace of character styles in "Find and Replace"
Summary: Allow search and replace of character styles in "Find and Replace"
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 641
Hardware: All All
: P3 Trivial with 18 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa, rfe_eval_ok
: 11048 19923 47057 48162 63669 87306 (view as issue list)
Depends on:
Blocks:
 
Reported: 2002-02-04 08:17 UTC by markovitch
Modified: 2013-08-07 14:41 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description markovitch 2002-02-04 08:17:55 UTC
It is impossible to search and replace character styles using the "Find and
Replace" dialog. I.e. whereas it is possible to replace, say, all
"italic"-formatted text with "bold"-formatted, it is impossible to replace all
"Emphasis"-style-formatted text to "Strong Emphasis" ("Search for styles"
checkbox works only with paragraph styles). 
It is very important to have possibility to find raw formatting and replace it
with style (e.g. replace all "italic" with "Ephasis"). This feature is crucial
to reformatting raw-formatted documents (without styles) into "civilized" shape.
Moreover, it would be great to have possibility finding _any_ entity (text
or/and formatting) replace it with a style. E.g. "Find 'hello' and replace it
with Emphasis style" would effectively mean "find 'hello' and apply Emphasis
style". Again, for now it is possible only for raw formatting, not for styles.

MS Word has all these features beginning from version 6.0 for DOS.
Comment 1 stefan.baltzer 2002-05-24 10:11:27 UTC
Reassigned to Christian.
Comment 2 palecekj 2002-09-17 15:23:57 UTC
I would also appreciate the ability to find & replace also 
nonstandard characters like line break, page break, long & short
dash etc.
Comment 3 christian.jansen 2003-02-10 12:31:48 UTC
Reassigned to Bettina.
Comment 4 ingenstans 2003-03-01 18:51:52 UTC
This is certainly possible in 644_m4. I just tried. But the wildcard 
search is <em>still<em> missing. In fact I was looking fo rthat when I 
stumbled on this bug report.


Comment 5 ftack 2004-12-08 10:20:30 UTC
This issue has been marked as RESOLVED and FIXED, but no Target Milestone has
been set. Can one be set for this issue?
Comment 6 lohmaier 2004-12-08 22:13:12 UTC
reopen.

You can search for the formatting of the character style, not for the style
itself.racter styles from the "Find and Replace" dialog

Also you cannot assign a character style using find and replace (You can use
"Find All" and then applying the style as a workaround).
Comment 7 lohmaier 2004-12-08 22:14:38 UTC
allow search for character styles (the same way it is possible for paragraph
styles already).
Comment 8 lohmaier 2004-12-08 22:14:54 UTC
*** Issue 11048 has been marked as a duplicate of this issue. ***
Comment 9 lohmaier 2004-12-08 22:15:41 UTC
*** Issue 19923 has been marked as a duplicate of this issue. ***
Comment 10 lohmaier 2004-12-08 22:19:42 UTC
.
Comment 11 lohmaier 2005-04-10 12:30:26 UTC
*** Issue 47057 has been marked as a duplicate of this issue. ***
Comment 12 umr5174 2005-04-26 10:17:13 UTC
I would appreciate the ability to search for the combination of string, format,
character style and paragraph style (or exclusion of some format, style...),
and replace by another combination,
for examples:
+ searching all "biblio" paragraph-styled new line characters, to delete them
(or to replace them with ". "),
+ applying to all my "_author" character-styled, not "biblio" paragraph-styled
characters the "_author in txt" character style,
+ replacing all strings consisting of a newline character followed by a "biblio"
paragraph-styled, "_author" character-styled word,
with the same string where the word would have been applied my "_author 1st"
character style,
+ search for "biblio" paragraph styled paragraphs and cancel all raw formatting
in them,
+ replacing any english language formatted dot between two figures by a french
(or russian) formatted comma, or vice-versa,
+ replacing any english language formatted dot between a non-figure and a figure
by a french language formatted "0,".

  To my mind, a simple user interface for this should be the ability to enter
any string (allowing for wild and special characters) in "search for" and
"replace with" fields, and to apply to such a string there any format and/or style.
  When the text in automatically entered because it was selected when "Find &
replace" was called, "search formatted string", "search character-styled
string", "search paragraph-styled string" options should be proposed.
  Since many people don't know wild characters and may want to look for stars
etc., the ability of using wild characters should be an option available only in
"More options".
  An "inherit" value for any attribute, and a global "inherit format" option
should be available (specially for the "replace with" string), but this goes
beyond the "Find & replace" fonctionality.
  Alternatively to the choice of any attribute value or style, a multiple choice
list of attribute values or styles to be excluded should be proposed to the user
formatting his string to search for. So the interface for fomatting text in this
field should be slightly different from the one in the document text (or in the
"Replace with" field). These supplementary options (excluding patterns) could
appear in a "More options" part of the dialog.
Comment 13 stefan.baltzer 2005-04-26 11:45:14 UTC
*** Issue 48162 has been marked as a duplicate of this issue. ***
Comment 14 intersol 2006-02-12 17:35:02 UTC
Find & Replace (Search) should work for all types of Styles including Character,
Page and Numbering. It is too hard to work with macros for normal user and
working with Styles it's not for pros.
Comment 15 lohmaier 2006-04-04 12:32:44 UTC
*** Issue 63669 has been marked as a duplicate of this issue. ***
Comment 16 lengo 2007-03-07 04:38:43 UTC
If you Search for 'Format'-ted text (e.g., 'small capitals') you cannot Replace
with a style. This seems to defeat the whole purpose (or at least a large part
of it) of Search & Replace.
Comment 17 frank.meies 2008-03-21 16:02:39 UTC
*** Issue 87306 has been marked as a duplicate of this issue. ***
Comment 18 foobard 2008-03-21 16:23:44 UTC
I'm a freelance writer. I frequently work with documents in the range of 15,000
to 35,000 words.

Just as a programmer is expected to include #comments in his code, so too I am
expected to interject frequent directions to the editors and production staff
who evaluate and print my work.

However, just as #comments don't actually do anything in code, my comments --
called "House Notes" -- don't count toward my word count, so it is essential
that we're able to search and select all text formatted in "House Note" style to
measure to current actual word count of the document. (Some people prefer to
delete the house notes, count words, and Ctrl-Z undo; others prefer to count the
House Notes, use a calculator to subtract them from the total word count. The
result is the same.)

In Microsoft Word, this is easy -- in the Search and Replace dialog box, select
Format, Style, and then the style you want to search for. This works for both
Paragraph and Character styles equally well.

In OpenOffice.org, on the other hand, this simply is not possible. The OOo
search function does not recognize that Character Styles are styles at all,
making it impossible (or at least extremely difficult) to ascertain the actual
word count of our documents.

This defect is significant enough that it will deter a majority of the writers
who work for this publishing company from permanently switching to
OpenOffice.org. It probably affects thousands of other people as well who need
to be able to search for character styles.
Comment 19 foobard 2008-03-22 18:17:53 UTC
this issue should be marked with a Target milestone of OOo 3.x (as per duplicate
issue 87306).

it should also be marked with a Keyword of ms_interoperability, as per duplicate
issue 87306.
Comment 20 foobard 2008-03-22 18:19:59 UTC
This issue should be marked as a DEFECT, not an enhancement. Microsoft Word is
the clear industry standard in word processing software, and OOo's failure to
include this feature is a DEFECT.
Comment 21 foobard 2008-11-14 17:32:22 UTC
Could a target milestone please be set for this issue?

This is still a problem in 3.0, and given that the workaround now fails (see bug
96217) there is now no way to search for character-styled text. This is a major
problem!
Comment 22 urmasd 2009-02-28 14:10:20 UTC
We should also use ability to search/apply paragraph styles for replacement text.
Comment 23 theradio 2009-05-11 15:51:31 UTC
This issue's title shall be retargetted to "Allow search and replace of any
category of styles in "Find and Replace"

(are all these style categories managed in a different way ? When using them, it
doesn't seem so, therefore why is there a difference in the F&R dialog ?)