Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2015, 11:19 AM   #1
veezh
plus ça change
veezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beauty
 
veezh's Avatar
 
Posts: 101
Karma: 32134
Join Date: Dec 2009
Location: France
Device: Kindle PW2, Voyage
Viewing non-breaking and narrow spaces as code?

Apologies if this is addressed in the user manual. I've had a look there, but haven't found the answer to my question.

Is there a way to show non-breaking spaces as
Code:
 
rather than as highlighted blanks in the editor?

I'd also like to be able to view narrow non-breaking spaces and soft hyphens in the same way. At the moment, I can't even seem to get these highlighted. :-(

Any help greatly appreciated.
veezh is offline   Reply With Quote
Old 05-04-2015, 11:45 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
If you want html entities rather than characters, you'll have to convert them yourself. If your code already contains entities (instead of characters) calibre will leave them alone unless you use the Beautify or Fix HTML tools (which will convert them to characters). There is no "Convert these unicode characters to html entities" tool. But it shouldn't be too hard to save some regex or a python S&R function to do what you want.
DiapDealer is offline   Reply With Quote
Advert
Old 05-06-2015, 04:53 AM   #3
veezh
plus ça change
veezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beautyveezh does all things with Zen-like beauty
 
veezh's Avatar
 
Posts: 101
Karma: 32134
Join Date: Dec 2009
Location: France
Device: Kindle PW2, Voyage
Quote:
Originally Posted by DiapDealer View Post
There is no "Convert these unicode characters to html entities" tool. But it shouldn't be too hard to save some regex or a python S&R function to do what you want.
Brilliant -- thank you, DiapDealer, for this! I'm going to check it out now.
veezh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[old thread] non breaking spaces (* and  ) automatically removed artoros Sigil 31 09-04-2014 06:23 PM
0.8.63 strips non-breaking spaces when converting from epub to mobi veezh Calibre 7 08-04-2012 08:39 AM
Non breaking spaces? troymc Sigil 6 05-22-2010 07:47 AM
Code / Cypher Breaking ahi Writers' Corner 22 08-01-2009 11:57 AM
Seriously thoughtful OLED displays - narrow viewing angle? HarryT Lounge 2 05-24-2009 10:14 AM


All times are GMT -4. The time now is 02:48 AM.


MobileRead.com is a privately owned, operated and funded community.