![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
|
![]()
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> </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? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() 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 ![]() ![]() |
|
![]() |
![]() |
![]() |
#4 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
|
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).
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. |
![]() |
![]() |
![]() |
#5 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> </p>" If you insist, then please add some styling: <p class="break"> </p>, that way, at least, you could change the amount of blank space easily. |
![]() |
![]() |
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#8 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
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. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|