![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> </p> I find this useful for scene breaks or for sorting out the layout of the title page, etc. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
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; } |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> </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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 972
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-T2, Kindle Paperwhite 11th gen
|
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)
|
![]() |
![]() |
![]() |
#7 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
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? |
|
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() 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? |
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#11 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
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> Code:
p { margin: 0; text-indent: 1em; } p.spaced { margin-top: 2em; text-indent: 0; } Code:
<p>The stake no longer ... before he left.</p> <div class="scenebreak"/> <p>LORD JOHN LINGERED for a moment ... ensure sleep.</p> Code:
p { margin: 0; text-indent: 1em; } div.scenebreak { height: 0; margin-top: 2em; page-break-after: avoid; } div.scenebreak + p { text-indent: 0; } |
![]() |
![]() |
![]() |
#12 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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> Code:
p.newscene { padding-top: 2em; /* pad the normal top margin for this class */ /* margin-top: 1em; inherit page paragraph margin preffered */ } ![]() Last edited by theducks; 10-01-2010 at 11:42 AM. Reason: hit wron key |
|
![]() |
![]() |
![]() |
#13 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
![]() |
![]() |
![]() |
#14 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2010
Device: Bebook (Hanlin)
|
Thanks,
I've tried it and (of course ![]() You guys are the best! |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |