Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2014, 05:32 AM   #16
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by DiapDealer View Post
I'll see what I can see. For what it's worth, the nbsp being changed to #160 when editing in book view is the expected behavior of 0.7.4. The decision to convert non-breaking space characters and named entities to the #160 numeric entity was just about the sole reason for releasing 0.7.4, in fact.
Why on Earth would anyone want to change the readable   into the meaningless #160? What's the benefit?
HarryT is offline   Reply With Quote
Old 01-01-2014, 05:33 AM   #17
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Geoff_C8 View Post
As I had rather lazily used the construct <p height="40">&nbsp;</p> to achieve a certain size spacing, this was eventually rendered useless.
I'm sure you know this, Geoff, but "<p height="40">" is Mobi markup, not ePub. It's also horribly dependent on the resolution of the device - much better to specify a margin in em units, not pixels.
HarryT is offline   Reply With Quote
Advert
Old 01-01-2014, 07:25 AM   #18
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,575
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by HarryT View Post
Why on Earth would anyone want to change the readable &nbsp; into the meaningless #160? What's the benefit?
It wasn't really a case of "want." There's been lots of previous discussion about the reasons, Harry, but the short answer is that: quirks of Qt and the various Sigil libraries/features that require xhtml to remain well-formed at all times actually conspired to create invalid xhtml under certain conditions.

The benefit is that source documents that contain the unicode non-breaking-space character (which won't survive in the Qt editing widget) can be opened/imported without breaking the well-formed "rules" (which is what was happening when non-breaking-space characters were being converted to the nbsp entity in documents with no Document Type Declaration).

I agree it's probably not optimal, but without a major overhaul of Sigil's codebase/structure (which doesn't seem likely at this point), using #160 rather than nbsp was simply the quickest band-aid for a hairy problem.
DiapDealer is online now   Reply With Quote
Old 01-01-2014, 07:29 AM   #19
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Thanks - I must have overlooked those discussions.
HarryT is offline   Reply With Quote
Old 01-01-2014, 07:40 AM   #20
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,575
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
The good news is: if you don't deal with the unicode non-breaking-space character at all (and all your html files contain the "standard" XHTML 1.1 DOCTYPE declaration), you can continue to use Sigil 0.7.3 with no issues (it's what I do). The #160 vs nbsp handling is the only real functional difference between 0.7.3 and 0.7.4.

(0.7.4 also represents the first disk-image available for OS X in a while, but that's another issue entirely).
DiapDealer is online now   Reply With Quote
Advert
Old 01-01-2014, 08:55 AM   #21
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,575
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Geoff_C8 View Post
Yes that is it. Editing in Book View turns &nbsp; into the numeric # 160 equivalent, and creating a TOC with at least one new heading turns those into text space.

Geoff
Sorry, I can't replicate the problem. I've tried every which way I could think of (different clean-source settings, new headers, saved/unsaved), but I can't get the #160 entity to do anything except stubbornly remain a #160 entity--when generating the ToC or any other activity. Nor can I find anything in the code that would cause that to happen (which doesn't rule out a Qt bug of some kind). Tried on Windows and Linux.

I would guess it might be limited to the Mac version of 0.7.4 which was built with an early beta version of Qt5.2 (because previous versions of Qt5's packaging tools had broken user_none's method of creating the OSX packages).

Perhaps someone might be able to build an OSX app package with the latest Qt5.2 release and see if the problem goes away? Sorry I couldn't be more help.
DiapDealer is online now   Reply With Quote
Old 01-01-2014, 10:27 AM   #22
theducks
Well trained by Cats
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: 31,064
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Jellby View Post
The fact that "not all devices" support NCX linewrapping is not a reason not no add a nbsp to prevent linewraps in devices that do (if any), is it?
Agreed (at least in theory. A NCX that needs line wrapping is going to be a pretty unfriendly on a small screen).
theducks is offline   Reply With Quote
Old 01-01-2014, 07:43 PM   #23
Geoff_C8
Member
Geoff_C8 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2013
Location: Sydney, Australia
Device: Kindle
Quote:
Originally Posted by DiapDealer View Post

Perhaps someone might be able to build an OSX app package with the latest Qt5.2 release and see if the problem goes away? Sorry I couldn't be more help.
OK, if I get a newer release at some time, and I see the issue has gone away, I will update this thread. Thanks anyway. My alternative is to get my son to build it, he has the tools to do that.

By the way, in my version there is still an "Insert Special Character" option for &nsbp; which is a bit at odds with your statement that the expected behaviour is to replace this? Has that been changed as well?

Geoff

Last edited by Geoff_C8; 01-01-2014 at 07:45 PM.
Geoff_C8 is offline   Reply With Quote
Old 01-01-2014, 07:55 PM   #24
Geoff_C8
Member
Geoff_C8 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2013
Location: Sydney, Australia
Device: Kindle
Quote:
Originally Posted by HarryT View Post
I'm sure you know this, Geoff, but "<p height="40">" is Mobi markup, not ePub. It's also horribly dependent on the resolution of the device - much better to specify a margin in em units, not pixels.
Thanks. Actually I am an epub virgin. Only just released some free epubs but I never viewed them. I will need to be more careful.

Geoff.
Geoff_C8 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter text in Book View or Code View ronaldl Sigil 5 10-29-2012 03:12 PM
replace in book view changes view to code view cybmole Sigil 4 10-28-2012 01:20 PM
Sigil highlight Book View No Longer Shows in Code View Themus Sigil 4 10-04-2012 07:54 PM
quotes differences book view & code view cybmole Sigil 13 03-29-2011 01:53 AM
lock book view & code view windows into synch cybmole Sigil 5 01-19-2011 10:30 PM


All times are GMT -4. The time now is 10:15 AM.


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