Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-29-2015, 04:49 AM   #1
rbruce1314
Enthusiast
rbruce1314 began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Apr 2010
Device: Xgody tablet, LG G3 (Android), moon+reader
&()nbsp , &()#160 , inconsistencies??

I am quite familiar with the interchangeability of these two codes* for a blank space - but do they have to go this far??
*obviously without the brackets, but they don't display otherwise do they??!!

I was editing a book, removing (in particular) double spaces created in the epub conversion.

Doing fine, replacing &()160 with spacebar spaces.

Had to rush away from PC, so saved file and closed Sigil (only - not PC).

False alarm, so returned 5 mins later, opened same file with same version of Sigil to continue replacement - and 'Search (find)' wouldn't find &()160.............because on reopening the spaces had all become &()nbsp; 's !!!!!

Whatever caused that behaviour? Small, easily solved problem (once noticed!) but why did it do it in the first place??

Thanks
rbruce1314 is offline   Reply With Quote
Old 05-29-2015, 06:35 AM   #2
Notjohn
Fanatic
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 588
Karma: 247002
Join Date: Dec 2012
Device: Kindle
I used to avoid editing in Book View, because every tap on the spacebar created a non-breaking space. I think that is no longer the case.

But surely you don't WANT non-breaking spaces, do you?
Notjohn is offline   Reply With Quote
 
Advertisement
Old 05-29-2015, 07:41 AM   #3
rbruce1314
Enthusiast
rbruce1314 began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Apr 2010
Device: Xgody tablet, LG G3 (Android), moon+reader
Quote:
Originally Posted by Notjohn View Post
I used to avoid editing in Book View, because every tap on the spacebar created a non-breaking space. I think that is no longer the case.
It still seems to do that - most of the time but not all of it!! And the nbsps didn't come from book view but from things like pdf converters and imported txt files.

Quote:
But surely you don't WANT non-breaking spaces, do you?
Of course not - that's why I'm trying to edit them out!!!!!
rbruce1314 is offline   Reply With Quote
Old 05-29-2015, 08:10 AM   #4
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: 10,649
Karma: 52777776
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
An older version of Sigil converted the non-breaking-space character (as opposed to the html entity) to   when opening/importing/saving code. Are you using the latest version of Sigil?

And yes, with   in the "Preserve Entities" preferences (as is default I believe), all  s would be converted to  s if changes are made in Book View (in all recent Sigil versions), or upon re-opening the epub.

You can either change the Preserve Entities preference from   to  , if you want to be able to edit in Book View without them changing. Or you can leave the Preserve Entities preference as it is and remember to not make any changes in Book View (or not to save/close before you're done).


Bottom line is:   won't survive a reopening of the epub no matter what setting you choose (in my experience, anyway). It will either be converted to   or it will be converted to a normal space character (when cleaning on opening/save is disabled in preferences).
DiapDealer is offline   Reply With Quote
Old 05-29-2015, 01:46 PM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,516
Karma: 49773163
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Don't forget that the   does have its uses. It is not the same as a regular space.

BTW, if you want to avoid the automatic conversion of codes on the forum, you can put it between [noparse][/noparse] tags.
Toxaris is offline   Reply With Quote
Old 05-29-2015, 01:48 PM   #6
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: 10,649
Karma: 52777776
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Toxaris View Post
BTW, if you want to avoid the automatic conversion of codes on the forum, you can put it between [noparse][/noparse] tags.
I meant to mention that in my post. Thanks!
DiapDealer is offline   Reply With Quote
Old 05-30-2015, 01:40 AM   #7
rbruce1314
Enthusiast
rbruce1314 began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Apr 2010
Device: Xgody tablet, LG G3 (Android), moon+reader
Quote:
Originally Posted by DiapDealer View Post
Bottom line is:   won't survive a reopening of the epub no matter what setting you choose (in my experience, anyway). It will either be converted to   or it will be converted to a normal space character (when cleaning on opening/save is disabled in preferences).
Thanks DiapDealer. Simple answer, clear and unavoidable behaviour, even if totally consistent within its own parameters!

But you're implying that cleaning removes these unwanteds anyway?? Cleaning is another mystery which sometimes happens with no input from me and other times not at all on saving, but I've never seen it yet replace the nbsps etc with blanks.
rbruce1314 is offline   Reply With Quote
Old 05-30-2015, 05:40 AM   #8
Notjohn
Fanatic
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 588
Karma: 247002
Join Date: Dec 2012
Device: Kindle
Now we have that wonderful Preview Pane, is there a good reason even to offer Book View, which tempts people to treat Sigil as a WYSIWYG editor?

Code View, Book View, and Preview Pane seems an embarrassment of riches.

(Perhaps people paste entire documents into Book View?)
Notjohn is offline   Reply With Quote
Old 05-30-2015, 07:36 AM   #9
rbruce1314
Enthusiast
rbruce1314 began at the beginning.
 
Posts: 31
Karma: 20
Join Date: Apr 2010
Device: Xgody tablet, LG G3 (Android), moon+reader
Quote:
Originally Posted by Notjohn View Post
Now we have that wonderful Preview Pane, is there a good reason even to offer Book View, which tempts people to treat Sigil as a WYSIWYG editor?
Yes, IMHO. There are times when editing when book view is essential - not even preview is good enough without distorting the whole layout.

Things like asterisks between divisions of a chapter - better to centralize them but that's difficult to spot in code view unless you READ the code (as opposed to glancing at it to check).

Although I normally use code view to edit, in practice I'm forever switching between that and book view - and dividing books into chapters is a doddle in book view, a real pain in code view.

I may be the only one, but sorry Notjohn, I'd be lost without the ability to switch instantly to bookview while editing in code view.
rbruce1314 is offline   Reply With Quote
Old 05-30-2015, 06:13 PM   #10
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 3,405
Karma: 32292535
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by rbruce1314 View Post
Yes, IMHO. There are times when editing when book view is essential - not even preview is good enough without distorting the whole layout.

Things like asterisks between divisions of a chapter - better to centralize them but that's difficult to spot in code view unless you READ the code (as opposed to glancing at it to check).

Although I normally use code view to edit, in practice I'm forever switching between that and book view - and dividing books into chapters is a doddle in book view, a real pain in code view.

I may be the only one, but sorry Notjohn, I'd be lost without the ability to switch instantly to bookview while editing in code view.
Forgive me, but: why doesn't Preview work for this? You can launch it, and have it live as you go. Doesn't that work the same, effectively, as BookView?

Hitch
Hitch is offline   Reply With Quote
Old 05-30-2015, 07:55 PM   #11
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 17,011
Karma: 10253000
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Astak Pocket Pro, K4NT,Galaxy Tab 2
I keep the Preview pane (F10) on the upper (portrait) Monitor

The only obnoxious ting is the fighting-Synch. You can not go from CV to Preview and use the scroll bar without first clicking into the TEXT. If you don't, it just scrolls back
theducks is offline   Reply With Quote
Old 05-31-2015, 01:38 AM   #12
signum
Connoisseur
signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.
 
Posts: 93
Karma: 64428
Join Date: Aug 2011
Device: none
Book view is absolutely essential, in my view, for the final proof-reading of any book I'm working on. It is only at this time that some hidden misspellings pop out, such as the unintended hyphen in "as-sure", which easily passes the spell checker and remains hidden (to me) behind a lot of formatting directions found in the code view. The syntax is correct but the meaning is scrambled with the hyphen left in. Overall look and feel also become apparent only when book view is used. If Sigil supported book view better, I'd be using it a lot more than I do now. As it is, I'm really discouraged when I try to use ctrl-v to insert a single character and find that it's been surrounded by an extremely correct, but unnecessary, span to ensure it has been inserted as "text". Bah!
signum is offline   Reply With Quote
Old 05-31-2015, 05:59 AM   #13
Notjohn
Fanatic
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 588
Karma: 247002
Join Date: Dec 2012
Device: Kindle
The Preview Pane serves the identical purpose, and what's more it stays live on the screen (you don't have to switch back and forth) and updates in almost the moment you make the change in code view. I don't use Book View at all any more, and I've always avoided using it to make editing changes such as you describe (ctrl-V resulting in a span).

But then I've been writing web pages for twenty years, so I'm comfortable looking at html.

Oops, sorry! Yes, I do use Book View to split the book into sections as my first step in building the epub. As R Bruce says, it's much easier there.

Last edited by Notjohn; 05-31-2015 at 06:01 AM.
Notjohn is offline   Reply With Quote
Old 05-31-2015, 08:38 AM   #14
Turtle91
Guru
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 914
Karma: 6679676
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
Is there some special function making it easier to split in book view?? I just use search and replace to search on whatever code is used to define the beginning of a section (chapter) and replace it with the new page command.

search: <h2> or <p style="page-break-before:always"> (or whatever)
replace: <hr class="sigil_split_marker" />\n<h2>

Followed by F6. This splits them all in a couple seconds. If I find a one-off page that was coded differently as I'm cleaning, then there is a nice little button at the top of the screen to "split at cursor".

Typing "<hr class="sigil_split_marker" />" once every book might be considered a lot of work, so I made it a "clip"...so it ends up being a simple click of the mouse. I have several clips for shortcuts that I use constantly: (.*?), <strong>\1</strong>, <em>\1</em>, <div class="">\1</div>, <span class="">\1</span>, <blockquote class="">\1</bockquote>, etc.

I previously used BV for my final look to see how it would appear in a larger screen but, just yesterday, I found out that you can double-click the header of the preview pane and it toggles from docked to not-docked. If your not-docked window is sized to full screen, then it is even better than BV! If you are lucky enough to have a second monitor, like Ducky mentioned, you can have the preview pane un-docked to the second screen.

Last edited by Turtle91; 05-31-2015 at 08:43 AM.
Turtle91 is offline   Reply With Quote
Old 05-31-2015, 02:26 PM   #15
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: 10,649
Karma: 52777776
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Turtle91 View Post
Is there some special function making it easier to split in book view??
I could never, in good conscience, recommend splitting in Book View. Too much potential for soupy markup being introduced. Having said that however, the process for WYSIWYG users assumes that markers will be manually inserted one at a time (for later mass splitting) or one-at-a-time "Split at Cursor" actions will be performed. I have a feeling that yours and NotJohn's definitions of "easier" are simply different.
DiapDealer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
&#160; instead of &nbsp; Alt68er Sigil 16 01-02-2014 08:02 PM
iBooks does NOT LIKE &nbsp; Erin Apple Devices 0 09-13-2011 11:17 AM


All times are GMT -4. The time now is 08:58 AM.


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