![]() |
#1 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,006
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
visibility of soft-hyphens
I was editing and informed about a incorrectly spelled word (curly underline). However, it looked ok. Changing it via the suggested word (which seems to be exactly the same word) did removed the curly underline, so something was replaced somehow. I inspected the original word letter by letter and noticed that there was an invisible soft-hyphen placed between two letters.
It would be nice to have that soft-hyphen made visible, but apparently there is no editor setting to do so. Changing colorschemas does not help. So, is it even possible to show them? In the current situation you must explicitly search for them to find them. A visible indication would be nice. |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,630
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I use Tools->Reports->Characters to determine if any 'interesting' characters exist. I can then step though through the relevant code char-by-char watching the bottom left corner - I prefer not to delete/replace them en-masse.
Sigil has a plugin to help deal with Shady Characters. Perhaps DiapDealer could package it as a calibre editor plugin, as he has with his Toolbag plugin. I too couldn't find a way of highlighting 'invisible characters' via colour scheme. Would be nice to have a toggle to show 'invisible characters' as a user configured character/colour, eg ✘. BR Last edited by BetterRed; 06-08-2016 at 06:45 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Since I discovered the Hyphenate PI, I changed my workflow
I've starting running a stored F&R to remove any soft hyphens until I'm done editing, etc. Then I use the PI to put them back, polish, etc. and convert the epub to azw3 format. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is no way to show invisible characters that take no space in the underlying Qt widget. Your best bet is to simply run a search replace to replace all instances of such characters with something visible, like one of the unicode block characters.
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
FWIW, that's why I decided to just delete the soft hyphens until the very end |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,006
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Or perhaps let the dictionary ignore just any soft-hyphens, which might also do the trick. Normally, you would not notice the soft-hyphens, but the dictionary check revealed them as being (part of) misspelled words, which is not actually true. Soft-hyphens are just "hints" for any viewer to "break" words according some spelling rules.
Last edited by DrChiper; 06-09-2016 at 01:54 PM. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There are over a dozen invisible characters not just soft-hyphens. zero-width spaces, various special chars in various scripts, etc. And just special casing all of them int he spell checking code is not the answer -- they will still cause problems in many other places, such as search and replace.
|
![]() |
![]() |
![]() |
#8 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
|
RFC 2070 - Internationalization of the Hypertext Markup Language on this matter: http://www.faqs.org/rfcs/rfc2070.html
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#9 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
I also use a regex function that turns chars into entities, which is probably the best way to make dodgy chars visible in a sensible way; see https://www.mobileread.com/forums/sho...d.php?t=270821
|
![]() |
![]() |
![]() |
#10 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 4472
Join Date: Jan 2011
Device: Kindle
|
The hyphenate-plugin can remove and add soft-hyphens. It uses OpenOffice dictionaries, I use it regularly and have yet to find the first error.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre remove soft hyphens? | zuli | Calibre | 3 | 11-08-2017 09:20 PM |
Soft hyphens on Windows | Styx | Calibre | 4 | 02-13-2015 04:26 AM |
Removing Soft hyphens | phossler | Sigil | 8 | 07-26-2013 03:52 PM |
Soft Hyphens | wallcraft | Workshop | 29 | 06-12-2012 04:21 AM |
Feature request: soft hyphens | paulpeer | Sigil | 3 | 12-05-2009 01:43 PM |