Mobileread
Removing soft hypens
#1  paulpeer 03-21-2010, 05:51 PM
Is there a way to remove all soft hyphens from an ePub using Sigil?

I'm not talking about the HTML soft hyphen "& shy ;" or "& #8209 ;" (see issue 186), but of the real unicode soft hyphen "0xad", which you cannot see in the book view nor in the code view.

The Sigil FAQ tells us "just remove the soft hyphens", but how to handle this?
Reply 

#2  st_albert 03-21-2010, 10:12 PM
OK, dumb question: Is there not a search & replace option or syntax that will let you search for hex codes?
Reply 

#3  paulpeer 03-22-2010, 02:56 AM
Quote st_albert
OK, dumb question
If I had found an hex search and replace, I hadn't asked my dumb question in the first place
Reply 

#4  Jellby 03-22-2010, 06:47 AM
Copy&paste the soft hyphen from the character map application?
Reply 

#5  Valloric 03-22-2010, 12:21 PM
What Jellby said.
Reply 

#6  paulpeer 03-23-2010, 09:08 AM
OK. This seems to work. But I feel pretty unsure when I have to search a thing I don't see (the soft hyphen) and replace it by another thing I don't see ... I've done the job now in my usual editor Unired, which does show the soft hyphens.
Reply 

#7  DrMoze 03-24-2010, 01:27 AM
OK, I have this same problem (soft hyphens in ePub showing up as '?'s on my Reader). I don't see them even in Code View.

So, what is this "character map application" that I can copy the soft hyphen from?I don't see it anywhere in Sigil. And do I just do a global replace of that character with nothing?

Thx!
Reply 

#8  Jellby 03-24-2010, 05:32 AM
Quote DrMoze
So, what is this "character map application" that I can copy the soft hyphen from?I don't see it anywhere in Sigil. And do I just do a global replace of that character with nothing?
It should be in your OS. In Windows it's probably in the Accessories section of your Start menu. See here. The soft hyphen is, I believe, in position 173 (decimal) or AD (hexadecimal).
Reply 

#9  Jellby 03-24-2010, 05:54 AM
I've created issue 316.
Reply 

#10  roger64 03-24-2010, 06:07 AM
You can do that with OpenOffice on any platform, including the dark side:

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.

or

http://bugs.calibre-ebook.com/ticket/1137
Reply 

  Next »  Last »  (1/2)
Today's Posts | Search this Thread | Login | Register