View Single Post
Old 11-24-2020, 11:31 AM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Leonatus View Post
Sigil performs hyphenation in the editor, that's a pretty feature.
???

Are you sure you don't have Soft Hyphens hiding throughout your text?

Soft Hyphens are an invisible character that only turns into a hyphen when it reaches the end of a line.

A telltale sign of Soft Hyphens is when you get red squigglies on words that are spelled correctly... and/or when your search gets broken.

See some of my posts on this (explaining why Soft Hyphens are awful + problems that may occur):

Quote:
Originally Posted by Leonatus View Post
For example: If I search for "Ratte", the result is: "expression not found", but if I enter: "Rat", it will find me the syllable, which is a little inconvenient.
Did you accidentally run Calibre's "Hyphenate This!" plugin?

What you want to do is Find/Replace for the Soft Hyphen character, and remove them all.

One easy way to do this is to go into Sigil:

1. Tools > Reports > Characters in HTML Files

If you scroll through the list, you might see:

Code:
Character: <----- (It looks like a hyphen, but it's actually an invisible character.)
Decimal: 173
Hexadecimal: AD
Entity Name: shy
Entity Description: soft hyphen
Double click on that row, and Sigil should insert a:

\ + Soft Hyphen

into the Search box.

2. Make sure the Replace: box is completely blank.

3. Change Mode: to "Regex".

4. Press Count All to see if there are any hits.

5. Press Replace All.

That should wipe all Soft Hyphens out of your book. Now you should have no problem with your normal searches.

Last edited by Tex2002ans; 11-24-2020 at 11:41 AM.
Tex2002ans is offline   Reply With Quote