Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

Download or installation problems? Try these steps
Problems after upgrading to NeoOffice 2017? Try these steps


Support
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


RSS Feeds
· Announcements Only
· All Posts


  
NeoOffice :: View topic - Find and replace
Find and replace
 
Post new topic   Reply to topic    NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
owenkc
Pure-blooded Human


Joined: Sep 02, 2004
Posts: 31

PostPosted: Mon May 23, 2005 2:53 pm    Post subject: Find and replace Reply with quote

I'm hoping someone here will be able to help me get rid of MS Office from my machine.

Just about the only reason I keep it is that I can do the following in Word, but not in NeoOffice (and I have the latest version, with patches)

Find two successive newlines
Replace them with tab
Find all other newlines
Replace them with space
Find all tabs
Replace them with two successive newlines.

Please don't bother to just tell me to look at regular expressions in the Help file. I've spent hours trying just about everything I can find in there with no luck. I've asked the OpenOffice support forum and that is all they can come up with. I'm looking for specific advice, here

Is this possible in NeoOffice or is there something Word can do that NeoOffice/OpenOffice can't?

Cheers,

Dave
Back to top
View user's profile Send private message
Luke
Captain


Joined: Sep 08, 2003
Posts: 63
Location: Teesside, UK

PostPosted: Mon May 23, 2005 6:38 pm    Post subject: Reply with quote

Hi,
What I think you want to do can be accomplished by:-

{Regular expressions on. You don't type any quote marks, but I need them so I can show a " "}

Search for "^$"
[This is a specific code for a blank paragraph]

Replace with "\t"

Find all/replace all

-----------------------

Search for"$"

Replace with " "

Find all/replace all

-------------------------

Search for "\t"

Replace with "\n\n"

Find all/replace all

Close find box.


This is much harder to do than it should be, and requiring different codes in the replace box from those in the find box is so unintuitive I'd call it a bug...... but it is OOo's bug, and we're stuck with it Sad

The official OOo way of fixing hard-wrapped text is via autoformat, but it tries to be too clever, and won't take out an unwanted newline if it coincides with the end of a sentence.

Luke
Back to top
View user's profile Send private message
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue May 24, 2005 12:29 am    Post subject: Reply with quote

Luke, you seem by far to be the resident expert on Find and Replace. When you get a chance, would you mind filling in "Find and Replace" article in the wiki a little bit?

http://neowiki.sixthcrusade.com/index.php/Using_Find_and_Replace

It doesn't need to be too detailed, but what's up there is pretty sparse because I don't understand much of these discussions Smile

Thanks,
Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
View user's profile Send private message Visit poster's website
Luke
Captain


Joined: Sep 08, 2003
Posts: 63
Location: Teesside, UK

PostPosted: Tue May 24, 2005 5:21 pm    Post subject: Reply with quote

Hi,
I certainly would not claim expertise here - I had no idea what the answer (if it is the right answer) to owenkc's question was until just before I posted it.

I've taken the last couple of find and replace queries as they are well defined problems, susceptible to solution by setting up a test document and playing with the options suggested in the online help until it works as required. If this results in some useful information for the community, and saves Ed/Patrick a few minutes, I'm happy.

I've made a start on the wiki entry as requested.

Luke

PS Your wiki link shows as underlined, but "wiki entry" above is the same link, but it is not underlined. Looking back through a few old posts, I see some links underlined, others not. Weird. See http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=995&postdays=0&postorder=asc&start=90 for another page with mixed link styles.
Back to top
View user's profile Send private message
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue May 24, 2005 8:11 pm    Post subject: Reply with quote

Luke wrote:
Hi,
I certainly would not claim expertise here - I had no idea what the answer (if it is the right answer) to owenkc's question was until just before I posted it.

I've taken the last couple of find and replace queries as they are well defined problems, susceptible to solution by setting up a test document and playing with the options suggested in the online help until it works as required. If this results in some useful information for the community, and saves Ed/Patrick a few minutes, I'm happy.

I've made a start on the wiki entry as requested.


Well, insomuch as there is an expert around here, I think you are he, whether you are an expert in the absolute sense or not Smile And the wiki entry is good; I think I finally understand those parts now, so thanks! Smile

Luke wrote:
PS Your wiki link shows as underlined, but "wiki entry" above is the same link, but it is not underlined. Looking back through a few old posts, I see some links underlined, others not. Weird.


That's odd; both are showing up for me, in all the browsers on my Mac.... Prior to this weekend, links that were "plain URLs" showed up underlined, but "composed links" with text (i.e., [ url= http: // foo ]bar[ /url ] links) were not underlined. But Ed fixed the stylesheet to always underline those links this weekend, an all of them are showing up underlined for me....

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
View user's profile Send private message Visit poster's website
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Tue May 24, 2005 8:59 pm    Post subject: Reply with quote

If you're seeing issues, please file them along with your browser and browser version in the following topic in fzkd servers:

http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=1413

I only smoke tested them in Safari 2.0 and IE 5.2.3 *gag*.

ed
Back to top
View user's profile Send private message Visit poster's website AIM Address
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Tue May 24, 2005 10:16 pm    Post subject: Reply with quote

OPENSTEP wrote:
If you're seeing issues, please file them along with your browser and browser version in the following topic in fzkd servers:

http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=1413

I only smoke tested them in Safari 2.0 and IE 5.2.3 *gag*.


Seems to be fine in Mozilla Seamonkey 1.7.8.

Groetjes,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.07 Seconds