Alternative dialog Find & Replace for Writer

(17 votes)
altsearch_main_en_thumb5.png
  • Fast selection preset regular and extended expressions
  • Searched or replaced text can contain one or more paragraphs
  • Search out block of paragraphs delimited by two text marks
  • Multiple search and replacement in one step
  • Searching: Notes, Text fields, Cross-references and Reference marks to their content, name or mark and their inserting
  • Searching and inserting Footnote and Endnote (from version OOo 2.3 only). It is possible to select at once texts of all footnotes or endnotes and to assign them any style
  • Searching object of Tables, Pictures and Text frames according to their name; it is possible to substitute them by any text, etc.
  • Changing into found or replaced text: paragraph style, character style, list style and Hyperlink's URL and set properties
  • Inserting and replacement: clipboard contents, insert replacement counter and page number
  • Hexadecimal also decimal submission character for search and replaced
  • Searching out manual page and column break and their set up or deactivation
  • Searching similarly or the same manually formatted part of text, according to cursor point
  • Count found occurrences
  • Redirecting result of replacing expression to the other text file
  • Batch mode: saving and loading of search and replacement parameters; it is possible to save several searching and replacing subsequently to the single sequence and that whole quickly execute after
  • Self dialogue for quick assignment of key shortcut to batches
  • Built-in help (http://www.volny.cz/macrojtb/HelpAltSearch_en.html)
  • Language: English, Czech, Russian, Spanish, German, French (without help), Dutch
Download extension
Operating System: Windows | Linux | MacOS X
Official release: 1.2.1
Date: 2008-Jul-28
Size: 345.11 KB
License: opensource
Further product information: Screenshots | Product details
Provider: Tomas Bilek

Comments

NoSuchElementException for "Tools" library

AltSearch looks great, but when I try to run it in Writer I get the following error:

"BASIC runtime error.
An exception occurred.
Type: com.sun.star.container.NoSuchElementException
Message: ."
and the following line of code is highlighted.
GlobalScope.BasicLibraries.LoadLibrary("Tools") ' natahnout std. knihovnu

I'm using Windows XP SP2, OO.o version 2.4.1. I am not very experienced in OO Macros.

I suspect a library called Tools is missing; there is a library with that name in the OpenOffice.org Macros container, but it seems to contain no modules. If this is the problem, where can I find the modules?

I would very much like to use this extension, so could someone help me? Many thanks.

Probably you are missing

Probably you are missing BASIC library Tools. Try last version (1.2.1), which should be independent of this library.

Searching paragraphs

The Extension I haven't tried yet. But I need to search for paragraphs and replace them by blanks or tabs. By copy and past I find a text an this text with several paragraphs has to be merged into one large block. It has to be guaranteed, that no paragraph sign is left inside the text.

Sometimes I need the opposite. Each blank or tab sign inside the text should be replaced by a paragraph sign, so that becomes one large column with one word in a line.

--
Moritz

Window size is too small

Just installed in 2.4.1 (linux) and find that the opened window for the macro is too small to be of use.

The box is cuts off just after "Extend" on the right, and just below "Match case" on the bottom.
Same problem in OOo 3.0 (M17).

The search box window shows correctly in OOo 2.3.1.

I think, it maybe caused by

I think, it maybe caused by this OOo issue: http://www.openoffice.org/issues/show_bug.cgi?id=87596

Very good!

I really recommend this extension. It is very flexible, and it allows very complex search and replace operations.
I use it to search for broken cross-references. It is irreplaceable for this, as Writer does not offer any other possibility to do so!
Also, Tomas has put very much effort in the documentation, that I find very helpful indeed.

thanks

Really good extension. It's very useful to convert texts form Writer to Spip. Thanks a lot.
S.

es-Es Localization

I've started spanish localization some weeks ago.
It's almost done.

Really good extension.

Localisation

Localisation of AltSearch is possible in next steps:

1. Download files AltSearch_localisation_v1.1.ods and AltSearchHelp_1.1_en.html. First file contains (almost) all strings, second is help file in html format, created in OOo webWriter, I recommend to translate it just in OOo webWriter and keep used paragraphs and characters styles.

2. Finally send translated files to me, e-mail is inside first file.

When you start to translate it, please report it here, so someone else is not doing the same translation.

Thanks to everyone who offered translation.

Tomas

Update

Updated files for localisation: AltSearch_localisation_v1.2.ods and AltSearchHelp_1.2_en.html. Changes compared to the previous version are marked with [v1.2].

Default file for batches (plain text in UTF8): AltSearchScript_en_1.2.txt.

de-De localization

German localization for AltSearch is done.

ru_RU Localization

We expect Russian localization of this excellent extension against the end of February.

it-IT localisation

I started working on Italian localisation for this extension.
ETA: 1-2 weeks.
Cheers.
Emanuele Forner, Italy

Save batch doesn't work

Hi, and thanks for your extension update.

But, on my system, the "Save batch" function doesn't work. The batch manager still empty, and the file AltSearchScript.txt file still at 0 byte.
I'm using AltSearch 1.1, OOo 2.3.1 Italian, Win XP HE SP2.

Thank you for your attention.

I have manually deleted the

I have manually deleted the old empty AltSearchScript.txt, and now it works properly :-)
Thanks for your good work.

Bug

http://img137.imageshack.us/my.php?image=bug018vd3.png
Literal translation:
"Syntax error BASIC.
Symbol Replace already been determined."

$ uname -rms ; pkg_info -Ex openoffice
FreeBSD 6.3-RELEASE i386
ru-openoffice.org-2.3.1

What am I doing wrong?

Hello,

This looks like a great thing, but for some reason, I can't get the batch mode to work. When I try to run a batch, it gives me an error message:
Bt_run: Unknown command: [Find], and the same for all others, i.e. [Replace], [Parameters], etc. It's probably not a mistake I made in writing the batch, since none of the built-in batches work either. The regular method (simply type the find and replace strings in the window) works fine, as does the counter.

Even when I save a command that already worked as a batch, I get the error when the batch is executed, since it makes the batch with the same syntax as used in the others.

Is there some setting that I missed?

By the way, the error disappears when I removed the brackets around the commands in the AltSearchScript file. But when I did that, the batch ran, but didn't actually do anything.

I'm running OOo 2.3.0 on Ubuntu 7.10

-Any sufficiently advanced technology is indistinguishable from magic. -- Arthur C. Clarke

I did not test it on Ubuntu

I did not test it on Ubuntu and I cannot do it.
What localisation do you use?

Tomas

This is probably a bug of

This is probably a bug of some versions of the Linux OOo - corrected version 1.2

My language setting is U.S.

My language setting is U.S. English.

I will try it on Windows to see if it may be a bug in the 2.3 version (the other commenters seem to be using earlier variants).

-Any sufficiently advanced technology is indistinguishable from magic. -- Arthur C. Clarke

Same problem

AltLinux 4.1, openoffice.org-2.4.0.8-alt1, AltSearch 1.1.2

$ locale
LANG=ru_RU.UTF-8

Great

Hello I just downloaded your extension & tested it.
It works & I love it, really.
Just a note: when I tried to save a search as a batch, I get an error message:
Save option to file: Error opening file:
file:///home/rob/.openoffice.org2/user/config/AltSearchScript.txt
I. O:
Later I checked the file
/home/rob/.openoffice.org2/user/config/AltSearchEditor.ini
and I just had to change from 'notepad' to 'kwrite', and everything went as expected.

Incidentally, I could translate this excellent extension to french.

Thanks

Thanks, I will try to look at it at Linux.

If you want to translate it pleases me but I recommend to wait for the nearest patch. I correct bugs there and it will be better prepared for translation.

Tomas

Good extension

Very good. At first try, I managed to do what I never succeeded to do with the OOo Find&Replace. The replacements are slower than with the native system, but it's quick enough.

Few bugs :
- in "Pick properties" button : the bottom of the text is eroded
- same problem for the "?" button
- when clicking on "?", I get the message "File of Help is impossible to open, etc." though it finds the file and opens it !
- I get two errors messages when I switch to the batch manager

I can give screenshots if you want.
email: trash.noreply{<"at">}gmail.com
I'll answer ;)

Bugs

I cannot help you with eroding buttons. I guess it is a problem with system (memory?).

Problem with opening Help and Batch manager is a bug, produced probably by using of another localization then English or Czech. I will try to fix it to the nearest patch.

Tomas

Bugs

I think that happens because the button is too narrow for same XP themes. See image:

http://img142.imageshack.us/img142/7352/findkz2.png

Best regards, and thanks for your useful extension.

VITRIOL

button erosion

Yes, that the same erosion I have (Windows XP).

Button erosion

I have already understood it. I will fix it in the nearest patch.

Tomas