[Solved] How to remove unwanted optional hyphens?

Discuss the word processor

[Solved] How to remove unwanted optional hyphens?

Postby webstar082 » Sun Jan 24, 2010 9:31 pm

Hello,
I got a text with a bunch of optional hyphens in it.
(you know, those hyphens with zero length between two letters that only create a visible hyphen if the word appears at the end of a line)

The problem is: I want to get rid of this nasty stuff completely.
That is, I want to remove ALL of those "optional hyphens" in the text.
How can I do this?
Is there a regular expression for an optional hyphen that I could use in the find and replace dialog? (I can't find anything)

Thanks in advance.
Last edited by Hagar Delest on Mon Feb 08, 2010 10:28 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.0.1 on Windows XP
webstar082
 
Posts: 5
Joined: Thu Jan 14, 2010 5:00 pm

Re: How to remove unwanted optional hyphens?

Postby acknak » Sun Jan 24, 2010 10:45 pm

You can copy/paste one of the soft hyphens into the Find & Replace "Search for" field, or you can set "Options/Regular expressions: ON" and enter \x00AD in place of the soft hyphen.
AOO 4 • Linux • Fedora 17
User avatar
acknak
Moderator
 
Posts: 17398
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: How to remove unwanted optional hyphens?

Postby webstar082 » Sun Jan 24, 2010 11:41 pm

Hi,
if I could copy those optional hyphens I'd surely not post here.
It's not possible to copy them because they have zero length. They are visible "behind" the actual characters.
But the regular expression worked. Thanks.
OpenOffice 3.0.1 on Windows XP
webstar082
 
Posts: 5
Joined: Thu Jan 14, 2010 5:00 pm

Re: How to remove unwanted optional hyphens?

Postby acknak » Mon Jan 25, 2010 5:30 am

It's not possible to copy them because they have zero length.

If it wasn't possible, I wouldn't have suggested it. ;-)

I assume you mean that it's not possible to copy them because you can't select them--is that right?

You can select them, you just have to be a little creative. Here are two methods that work for me:
  • Select & copy some characters on either side, paste into the dialog, then delete the extra characters. For me, the soft hyphen is visible in the dialog.
  • Use the cursor keys instead of the mouse: move to the position before the character before the hyphen, then use the right arrow key to move one position to the right (i.e. before the soft hyphen). Then hold Shift and arrow one more step to the right. That will select one character, the soft hyphen. Copy/paste into the dialog.
AOO 4 • Linux • Fedora 17
User avatar
acknak
Moderator
 
Posts: 17398
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: How to remove unwanted optional hyphens?

Postby JohnV » Mon Jan 25, 2010 7:33 pm

How about:
F11
Right click the Default paragraph style > Modify > Text Flow tab and uncheck Automatic under Hyphenation.
JohnV
Volunteer
 
Posts: 1509
Joined: Mon Oct 08, 2007 1:32 am
Location: Kentucky, USA

Re: How to remove unwanted optional hyphens?

Postby webstar082 » Thu Feb 04, 2010 6:13 am

acknak wrote:You can select them, you just have to be a little creative. Here are two methods that work for me:
  • Select & copy some characters on either side, paste into the dialog, then delete the extra characters. For me, the soft hyphen is visible in the dialog.
  • Use the cursor keys instead of the mouse: move to the position before the character before the hyphen, then use the right arrow key to move one position to the right (i.e. before the soft hyphen). Then hold Shift and arrow one more step to the right. That will select one character, the soft hyphen. Copy/paste into the dialog.

I can assure you, I tried both of those methods *before* posting here and both of them clearly DO NOT work.
You can copy a hyphen with both of those methods, yes.
But I don't need to copy a hyphen in the first place. I can easily *type* a hyphen using my keyboard.

This whole issue is about "optional hyphens" and only about "optional hyphens."
They clearly cannot be copied using those 2 methods. They cannot be copied at all. That was my problem.
The only way to solve it was to type in the regular expression value directly.
OpenOffice 3.0.1 on Windows XP
webstar082
 
Posts: 5
Joined: Thu Jan 14, 2010 5:00 pm

Re: How to remove unwanted optional hyphens?

Postby webstar082 » Thu Feb 04, 2010 6:15 am

JohnV wrote:How about:
F11
Right click the Default paragraph style > Modify > Text Flow tab and uncheck Automatic under Hyphenation.

If you read my first post you'll see that I wrote something about having an already existing text.
Your suggestion has nothing to do with that.
OpenOffice 3.0.1 on Windows XP
webstar082
 
Posts: 5
Joined: Thu Jan 14, 2010 5:00 pm

Re: How to remove unwanted optional hyphens?

Postby acknak » Thu Feb 04, 2010 6:30 pm

Thanks for the follow-up.
AOO 4 • Linux • Fedora 17
User avatar
acknak
Moderator
 
Posts: 17398
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: How to remove unwanted optional hyphens?

Postby msrentpr » Sun Feb 07, 2010 9:11 pm

I have been unsuccessfully trying to remove these --- unwanted hyphens. I tried putting in several letters--several letters, copying and pasting them into find and replace, then deleting the letters. It said it found those unwanted hyphens and I thought I just put in a space to replace it but they stayed.

I also tried right clicking, clicking on paragraph, clicking on text flow, but the automatic hyphenation is supposedly already off and nothing I did, checking it then unchecking it did any good.

I didn't have this problem until I did an update this morning. Is there any way to go back to a prior version that didn't have this issue? It seems to be a problem with this version. I'm so frustrated I want to cry and scream at the company, but can't even find a way to contact them.
updated to open office3.1 windows vista
msrentpr
 
Posts: 4
Joined: Sun Feb 07, 2010 8:55 pm

Re: How to remove unwanted optional hyphens?

Postby acknak » Sun Feb 07, 2010 9:42 pm

From the report above, it seems that you can't reliably copy/paste the option hyphens when running OOo under Windows.

You should be able to use the regular expression method described above: viewtopic.php?p=121982#p121982
AOO 4 • Linux • Fedora 17
User avatar
acknak
Moderator
 
Posts: 17398
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: How to remove unwanted optional hyphens?

Postby msrentpr » Sun Feb 07, 2010 10:47 pm

But how do you get to the "Regular expression"? I couldn't find it under tools, options in any of the listings on the left side even when I clicked on them. I even searched for that before the first post. Is it just me?
updated to open office3.1 windows vista
msrentpr
 
Posts: 4
Joined: Sun Feb 07, 2010 8:55 pm

Re: How to remove unwanted optional hyphens?

Postby Hagar Delest » Sun Feb 07, 2010 10:49 pm

In the Find & Replace dialog, click the More Options button.
AOO 4.0.1 on Windows 7 and Xubuntu 13.10 (Saucy Salamander)
User avatar
Hagar Delest
Moderator
 
Posts: 25087
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: How to remove unwanted optional hyphens?

Postby msrentpr » Mon Feb 08, 2010 1:22 am

I've tried following all of the directions for getting rid of hyphens between every word that I type and all to no avail so I am just going to delete openoffice completely. This was never an issue with the previous version. But thanks for your help.
updated to open office3.1 windows vista
msrentpr
 
Posts: 4
Joined: Sun Feb 07, 2010 8:55 pm

Re: How to remove unwanted optional hyphens?

Postby RoryOF » Mon Feb 08, 2010 1:33 am

Are you seeing hyphens - or little dots? If little dots between every word you type, press the button on the toolbar that looks like a backwards P and turn off the display of Nonprinting Characters.
Apache OpenOffice 4.0.1 on Xubuntu 13.10 and Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 14339
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: How to remove unwanted optional hyphens?

Postby msrentpr » Mon Feb 08, 2010 2:38 am

Thank you thank you- what an annoying little icon it was
updated to open office3.1 windows vista
msrentpr
 
Posts: 4
Joined: Sun Feb 07, 2010 8:55 pm

Re: How to remove unwanted optional hyphens?

Postby Styler001 » Mon May 30, 2011 9:45 pm

acknak wrote:
It's not possible to copy them because they have zero length.

If it wasn't possible, I wouldn't have suggested it. ;-)

I assume you mean that it's not possible to copy them because you can't select them--is that right?

You can select them, you just have to be a little creative. Here are two methods that work for me:
  • Select & copy some characters on either side, paste into the dialog, then delete the extra characters. For me, the soft hyphen is visible in the dialog.


Although I'm not currently using OO (I'm using Word at this time since I got a good deal on a license from my work), this tip did work for me, so I thought I would post it in case anyone else is looking for the same solution for Word (and maybe this just might clear up some confusion here).

I had the same problem with the soft hyphen not being able to be selected to do a search on. One of my words was "awak-ening".

1. Select the whole word and paste it into a find-replace.
2. While at the end of the word, backspace over "gnine". DON'T GO ANY FARTHER THAN THAT!
3. Then position to the beginning and delete "awak". Again, don't go any farther than that.
4. At this point, your "invisible hyphen" is all that is remaining in the "find" box.
5. Now just enter anything into the "replace" box that you know is not in the document. I used ***.
6. Click "Replace All" and all of your soft hyphens are replaced with ***.
7. Now just replace all of the *** with nothing and your text is all cleaned up.

Sorry if this isn't appropriate here, but I wasn't able to quickly find any help on Word forums for this and my Google also showed this topic which provided the answer I needed immediately.
OpenOffice 3.1 on Windows 7.
Styler001
 
Posts: 1
Joined: Mon May 30, 2011 9:21 pm

Re: [Solved] How to remove unwanted optional hyphens?

Postby bugmenot111 » Mon Sep 05, 2011 3:26 pm

i'm posting to say that using a search of \x00AD and replace did the trick. thank you SO MUCH.
OpenOffice 3.1 on Windows Vista
bugmenot111
 
Posts: 17
Joined: Fri Mar 26, 2010 12:14 pm


Return to Writer

Who is online

Users browsing this forum: John_Ha and 29 guests