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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2010, 09:48 AM   #1
Brientje
Junior Member
Brientje began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2010
Device: Bebook (Hanlin)
Editing problems

Hi,

I have a problem and I'm hoping that someone can help me.
I have used Sigil and Calibre for a long while now and I haven't expirienced any trouble with it until now. I don't know if the problem lies with Sigil or with something else.
I have made an epub book from pdf. First I have converted the book to html by using BookDesigner and then after making some changes (toc and pagebreaks) I have made the epub version by using Calibre. From there I have made some other changes with Sigil, like making open lines between paragraphs (like the line between Hi and First of all...) I want to keep my alineas together. The problem starts when I look at the book with ADE or my reader. The spaces have disappeared and all the alineas are pressed together.
I have the same problem with another book, this book was already in Epub form and I just wanted to creat empty lines between certain paragraphs. But they also don't show in ADE and on my reader.
I have done these kind of things before, but I have never had this problem before!
I have checked the book on an other Epub program, like Jutoh and the spaces were still in the book. So I think the problem lies with the ADE/reader, they can't show the spaces for some kind of reason.
I really have no idea why. I have seen the sticky with the bugs in ADE like in the CSS stylesheet, but I don't know if this problem has something to do with that. Could someone tell me what I'm doing wrong?

Thanks,
Brientje
Brientje is offline   Reply With Quote
Old 09-30-2010, 01:38 PM   #2
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
I know some people here frown upon it but have you tried the following:

Code:
<p>&nbsp;</p>
This gives me a blank line (or more precisly a line that contains a single space in it but you can't see than when reading).

I find this useful for scene breaks or for sorting out the layout of the title page, etc.
ghostyjack is offline   Reply With Quote
Old 09-30-2010, 03:14 PM   #3
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
If you want a linebreak, use a separate class for the first paragraph after the break and set it to
margin-top: 1.2em;
margin-bottom: 0;
in the css.

Don't get into the bad habit of using <br/>s or empty paragraphs, it just makes things harder for you in the end.
charleski is offline   Reply With Quote
Old 10-01-2010, 04:20 AM   #4
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,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
... or use a styled <div> with, for instance:

div.scenebreak {
height: 0;
margin-top: 2em;
page-break-after: avoid;
}
Jellby is offline   Reply With Quote
Old 10-01-2010, 04:55 AM   #5
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
I wish someone would explain why it's bad to use <p>&nbsp;</p>. When I'm reading the book, I can't see anything added and it does provide a means of adding a one-line high space.
ghostyjack is offline   Reply With Quote
Old 10-01-2010, 06:23 AM   #6
Pablo
Guru
Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.
 
Pablo's Avatar
 
Posts: 970
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
Quote:
Originally Posted by Brientje View Post
I First I have converted the book to html by using BookDesigner and then after making some changes (toc and pagebreaks) I have made the epub version by using Calibre.
If you use BookDesigner, you could try my HTML02HTML utility. It converts BookDesigner's "html0" to a clean HTML with CSS ready to be imported with Sigil (see my signature)
Pablo is offline   Reply With Quote
Old 10-01-2010, 06:29 AM   #7
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,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by ghostyjack View Post
I wish someone would explain why it's bad to use <p>&nbsp;</p>. When I'm reading the book, I can't see anything added and it does provide a means of adding a one-line high space.
Basically, it's not semantic. If you want some vertical space, add some vertical space, and not a paragraph with a non-breaking space.

The effect might most of the time be what you want, but you can't easily style it. What if you want more or less space? What if a page-break happens just after it? What if you (or someone else) decides to have paragraphs with a coloured background?
Jellby is offline   Reply With Quote
Old 10-01-2010, 07:56 AM   #8
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: 29,754
Karma: 54401244
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
Basically, it's not semantic. If you want some vertical space, add some vertical space, and not a paragraph with a non-breaking space.

The effect might most of the time be what you want, but you can't easily style it. What if you want more or less space? What if a page-break happens just after it? What if you (or someone else) decides to have paragraphs with a coloured background?
Oooo...!
Maybe I have been doing it wrong and your way would be lots more better
I have been placing small jpeg's into the scene breakes (just like they appear in their paper cousins).

Would a single "Background Image" in the CSS (by itself) be a better way, or does ther need to be foreground text to force the size?
theducks is offline   Reply With Quote
Old 10-01-2010, 08:08 AM   #9
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Everything Jellby said. And also, don't forget to think about the future. Loads of ebooks look fine now, but under the hood they're a ticking time-bomb that might explode when converted into some future format.

The main point of separating the semantic and presentational aspects of the code is that it makes it very easy to modify the presentation to suit any changing conditions. If a future format comes out that offers some compelling enhancements, which is better: changing a couple of lines in the css or having to do an exhaustive search and replace on the entire code?

It's pretty obvious that many people are having a hard time producing good-looking ebooks as it is, even when working from digital sources. The way to avoid this is to ensure that the code is structured as clearly as possible using the semantic/presentational distinction.
charleski is offline   Reply With Quote
Old 10-01-2010, 11:12 AM   #10
Brientje
Junior Member
Brientje began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2010
Device: Bebook (Hanlin)
Thank you all so much for your replies!
But after trying the suggestions I noticed that perhaps I havent explained myself good enough, so if cooy/paste an example;

The stake no longer stood upright, but leaned sharply, as though about to fall, and a thin loop of rope trailed from it, floating like a hangman's noose on the waning tide. William was conscious of some visceral uneasiness; the tide alone would not have taken the whole body. Some said there were crocodiles or alligators here, though he had not yet seen one himself. He glanced down involuntarily, as though one of these reptiles might suddenly lunge from the water at his feet.
The air was still warm, but a small shiver went through him.
He shook this off, and turned away toward his lodgings. There would be a day or two before he must go, he thought, and wondered whether he might see the blue-eyed Mrs. MacKenzie again before he left.

LORD JOHN LINGERED for a moment on the porch of the inn, watching his son vanish into the shadows under the trees. He had some qualms; the matter had been arranged with more haste than he would have liked-but he did have confidence in William's abilities. And while the arrangement clearly had its risks, that was the nature of a soldier's life. Some situations were riskier than others, though.
He hesitated, hearing the buzz of talk from the taproom inside, but he had had enough of company for the night, and the thought of tossing to and fro under the low ceiling of his room, stifling in the day's trapped heat, determined him to walk about until bodily exhaustion should ensure sleep.

I want the empty line between ...again before he left. and LORD JOHN LINGERED... Not between each paragraph. Sorry for the mix-up. I hope someone has a suggestion to help me with this.
Brientje is offline   Reply With Quote
Old 10-01-2010, 11:26 AM   #11
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,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Like this:

Code:
<p>The stake no longer ... before he left.</p>

<p class="spaced">LORD JOHN LINGERED for a moment ... ensure sleep.</p>
with:

Code:
p { margin: 0; text-indent: 1em; }
p.spaced { margin-top: 2em; text-indent: 0; }
or:

Code:
<p>The stake no longer ... before he left.</p>

<div class="scenebreak"/>

<p>LORD JOHN LINGERED for a moment ... ensure sleep.</p>
with:

Code:
p { margin: 0; text-indent: 1em; }
div.scenebreak { height: 0; margin-top: 2em; page-break-after: avoid; }
div.scenebreak + p { text-indent: 0; }
Jellby is offline   Reply With Quote
Old 10-01-2010, 11:32 AM   #12
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: 29,754
Karma: 54401244
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 Brientje View Post
Thank you all so much for your replies!
But after trying the suggestions I noticed that perhaps I havent explained myself good enough, so if cooy/paste an example;

The stake no longer stood upright, but leaned sharply, as though about to fall, and a thin loop of rope trailed from it, floating like a hangman's noose on the waning tide. William was conscious of some visceral uneasiness; the tide alone would not have taken the whole body. Some said there were crocodiles or alligators here, though he had not yet seen one himself. He glanced down involuntarily, as though one of these reptiles might suddenly lunge from the water at his feet.
The air was still warm, but a small shiver went through him.
He shook this off, and turned away toward his lodgings. There would be a day or two before he must go, he thought, and wondered whether he might see the blue-eyed Mrs. MacKenzie again before he left.

LORD JOHN LINGERED for a moment on the porch of the inn, watching his son vanish into the shadows under the trees. He had some qualms; the matter had been arranged with more haste than he would have liked-but he did have confidence in William's abilities. And while the arrangement clearly had its risks, that was the nature of a soldier's life. Some situations were riskier than others, though.
He hesitated, hearing the buzz of talk from the taproom inside, but he had had enough of company for the night, and the thought of tossing to and fro under the low ceiling of his room, stifling in the day's trapped heat, determined him to walk about until bodily exhaustion should ensure sleep.

I want the empty line between ...again before he left. and LORD JOHN LINGERED... Not between each paragraph. Sorry for the mix-up. I hope someone has a suggestion to help me with this.
The Paragraph for the type beginning with smallcaps (Lord John...) should have a class selector of its own. say:
Code:
<p class="newscene">LORD JOHN LINGERED for a moment on the porch of the inn, watching his son vanish into the shadows under the trees. He had some qualms; the matter had been arranged with more haste than he would have liked-but he did have confidence in William's abilities. And while the arrangement clearly had its risks, that was the nature of a soldier's life. Some situations were riskier than others, though. </p>
the style sheet can now control ALL paragraphs that have that same class selector.
Code:
p.newscene {
   padding-top: 2em; /* pad the normal top margin for this class */
   /* margin-top: 1em; inherit page paragraph margin preffered */
 }
See, 1 class that pads extra at the start of a scene, but can inherit the general para (p) style. K.I.S.S.

Last edited by theducks; 10-01-2010 at 11:42 AM. Reason: hit wron key
theducks is offline   Reply With Quote
Old 10-02-2010, 10:08 AM   #13
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by charleski View Post
Everything Jellby said. And also, don't forget to think about the future. Loads of ebooks look fine now, but under the hood they're a ticking time-bomb that might explode when converted into some future format.
This. This a hundred times over.
Valloric is offline   Reply With Quote
Old 10-04-2010, 04:54 AM   #14
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Now that makes sense. Looks like I'll need to go through all my books any make the changes now before they get to unmanageable levels.
ghostyjack is offline   Reply With Quote
Old 10-05-2010, 06:22 AM   #15
Brientje
Junior Member
Brientje began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2010
Device: Bebook (Hanlin)
Thanks,

I've tried it and (of course) it worked!!
You guys are the best!
Brientje 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
Problems editing XML documents Strether Workshop 19 04-01-2010 07:43 PM
like ybook with editing irisclara Reading and Management 0 10-16-2009 02:00 PM
Editing some .pdb's Shieko Workshop 7 05-28-2009 06:40 PM
Editing Archangel Introduce Yourself 6 05-22-2008 12:57 PM
Editing Help jhempel24 Sony Reader 1 02-07-2008 03:03 AM


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


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