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-18-2012, 12:18 PM   #1
GraciousMe
Zealot
GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
Question Nobreakespace or no nobreakespace?

While editing a book in Sigil I am reading Pablo´s excellent Quick and Dirty ePub Tutorial. Thank you, Pablo!

He talks about the hazards of editing in Book View and the hideous results it can create.

But is this

<p>&nbsp; </p>

really never to used?

Should all empty paragraphs be created in other ways (CSS?)?

And what about temporary bold, italic and underlined text? Surely they need no CSS?
GraciousMe is offline   Reply With Quote
Old 05-18-2012, 12:29 PM   #2
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
I use it for empty lines....

Bold, italic and the like I usually do via a stylesheet.
Toxaris is offline   Reply With Quote
Old 05-18-2012, 12:44 PM   #3
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,067
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 GraciousMe View Post
While editing a book in Sigil I am reading Pablo´s excellent Quick and Dirty ePub Tutorial. Thank you, Pablo!

He talks about the hazards of editing in Book View and the hideous results it can create.

But is this

<p>&nbsp; </p>

really never to used?

Should all empty paragraphs be created in other ways (CSS?)?

And what about temporary bold, italic and underlined text? Surely they need no CSS?
IMHO Everything that can, should be done with a stylesheet entry. This make a One Stop place to change your mind and fine tune.

Set a FirstParagraph or additional style if needed to increase paragraph spacing with a larger margin-top:

or create a scenebreak style (very useful to control character based breaks)

The pseudo empty paragraph you show above prevents some render engines from ignoring extra whitespace

I keep seeing a reoccurring theme in your posts: 1990's lean (low bandwidth, extra-low processing, miniscule RAM) HTML coding

A fairly rich looking EPUB novel with cover is under a Meg (fits on a floppy ). There is no need to strip a book that bare
theducks is offline   Reply With Quote
Old 05-18-2012, 12:44 PM   #4
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by GraciousMe View Post
Should all empty paragraphs be created in other ways (CSS?)?
I perfer the CSS method personally. I just create an extra class which adds a fair bottom margin. Then just append that to the pre-break paragraph. It also makes it possible to make the changes via regex - find a p tag followed by a filler div/p (i.e. filled with nbsp/\s/\t etc). Replace with the first paragraph with the class appended (a bit tricky, but I'm sure I have examples somewhere).

Quote:
Originally Posted by GraciousMe View Post
And what about temporary bold, italic and underlined text? Surely they need no CSS?
I prefer using the basic tags, i/b/u too—however, the u tag however is not part of the spec(or xhtml), and you will generate errors in regards to this. However since it's so sparsely used in novels, and most of the time it will be used for headings and such, appending it to an existing style is often easier and cleaner anyway.
Serpentine is offline   Reply With Quote
Old 05-18-2012, 01:10 PM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The thing is that there are no "empty paragraphs". What you see usually in books as scene breaks is simply some blank space, not an empty pagraph (would you count the empty spaces as paragraphs if someone told you to look at the 25th paragraph in a chapter?).

So, if it's a blank space and not an empty paragraph, why code it as an empty paragraph and not as blank space? (Yes, I know the answer: because it's easier to hit return twice.) Now, for creating blank space there are several possibilities: margin or padding above the next paragraph, margin or padding below the previous paragraph, an empty image, a fixed-height <div>... any of which are better than just "<p>&nbsp;</p>"

If you insist, then please add some styling: <p class="break">&nbsp;</p>, that way, at least, you could change the amount of blank space easily.
Jellby is offline   Reply With Quote
Old 05-18-2012, 02:27 PM   #6
GraciousMe
Zealot
GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.GraciousMe ought to be getting tired of karma fortunes by now.
 
Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
Thanks folks. Maybe I am overdoing this. Too much Taoism and Twiggy maybe.

CSS is a very new thing to me. I will get used to it.
GraciousMe is offline   Reply With Quote
Old 05-18-2012, 04:15 PM   #7
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Some of the differences of opinion stem from how much work you want to put in on it and whether you like editing in HTML. Being able to and liking are far from the same.

Some want to create a book that will stand as a testimonial for all time as to how an e book should look. Others, like me, who often work from OCRed sources, are just glad to produce something reasonably attractive and useable after fighting with 1,000,000 OCR errors, then finding a better copy to extract all the pictures from then reinserting them.

So long as it works and does not cause ereaders to scream is fine by me. But I have no intention of posting to Apple or other ebook sellers who are finicky (some beyond reason) as to what they will accept.
mrmikel is offline   Reply With Quote
Old 05-19-2012, 03:49 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
It often happens that a bit of extra work in the first stages can save you a lot of work and headaches in later ones. You may do without the initial extra work if you never reach the later stages... but can you be sure that you (or anyone else) never ever will?

Of course, there's no law against an "it works fine" ebook, but the result will be more valuable for the future if it's a little more than that.
Jellby is offline   Reply With Quote
Old 05-19-2012, 05:49 AM   #9
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by GraciousMe View Post
Thanks folks. Maybe I am overdoing this. Too much Taoism and Twiggy maybe.

CSS is a very new thing to me. I will get used to it.
See it as the difference between structure and layout. In the XHTML file you define all components and with the stylesheet you define the layout. If you follow that simple rule, it will make more sense.
It will make life a lot simpler, since you have one single place to define your layout for the complete book. That is, as long as your structure is solid.
Toxaris is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


All times are GMT -4. The time now is 09:10 PM.


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