|
|
View Full Version : Lines disappearing in E-book viewer
Hello,
I've edited my eBook in Sigil and then opened it in Calibre, E-book viewer. Even though it's fine in Sigil, in Calibre there are lines that go missing. (I've attached a screen shot - see near the bottom of the page.)
What happens to those lines, and will it look like this once the book is loaded onto a reading device?
Thanks!
Alda
ldolse 01-30-2011, 02:38 PM I see a blank line, but I'm not sure if it's supposed to say "A devil's the same"....
The Calibre viewer should be fine for reading, and if there is indeed text missing it would help to see the html code for those lines of the book. That said, if you want to see how this would look on your reader, you're better off using Adobe Digital Editions, which is what the software on your Reader is probably based off of. Calibre's viewer (and Sigil's) use QT, which provides good general html rendering capabilities, but QT has a different set of Quirks (and more html rendering features) than most ebook readers, so I wouldn't trust it to show me exactly how things will look on my reader.
theducks 01-30-2011, 03:09 PM Hello,
I've edited my eBook in Sigil and then opened it in Calibre, E-book viewer. Even though it's fine in Sigil, in Calibre there are lines that go missing. (I've attached a screen shot - see near the bottom of the page.)
What happens to those lines, and will it look like this once the book is loaded onto a reading device?
Thanks!
Alda
It would help to see the code from the paragraph that shows before to the end of the paragraph after . :thumbsup: (so we can see the transition stuff)
Could the be a color (white font) issue?
Thanks for the quick responses.
@Idolse - I don't actually have a Reader so I can't test this - I live in a part of the world where they haven't caught on and downloading e-books is virtually unheard of.
@theducks - I can't see that the code differs from the previous paragraphs, or any other paragraph, really. It looks like this:
<p class="c-meginm-l sgc-4 sgc-3">In other words, the optimism is probably a long-term survival strategy. After all, through the centuries of hardship and geographical isolation that the Icelandic nation has had to endure, defeat was not an option – it was stand together, fight together, or die (bloody family feuds notwithstanding). And fighting naturally incorporates optimism – you have to believe there is something worth fighting for.</p>
<p class="c-meginm-l sgc-4 sgc-3">And this knowledge somehow became ingrained into the DNA of the Icelandic people.</p>
<p class="c-meginm-l sgc-4 sgc-3">Mind you, this is just my own homegrown theory. A devil’s advocate would probably ask why other Nordic nations are not the same – why there isn’t the same prevalence of optimism there. To which I really don’t have an answer.</p>
I'm completely baffled ...
OK, very bizarre. I tried widening the window in Calibre, and the missing text appeared like magic.
So clearly the text is there.
Can anyone make an educated guess as to whether it would appear "normally" in a proper reader?
theducks 01-30-2011, 05:09 PM OK, very bizarre. I tried widening the window in Calibre, and the missing text appeared like magic.
So clearly the text is there.
Can anyone make an educated guess as to whether it would appear "normally" in a proper reader?
TNX for posting the code
ODD :chinscratch:
Did it flow or go off to the right first?
You might replace (in Code View) the space after "Devil's" just in case some odd non printing character is there. Something is hanging the "flow" :eek:
When I widened it, it widened off to the right along with the window. Then when I moved it back to the left it narrowed along with the window, then appeared as normal.
So bizarre.
OK - I've figured out that it has something to do with justified text.
If I go back into Sigil and remove the justifying option, then the lines appear as normal.
The problem then is that some chapters of the book are justified, and some are not.
- Anyone have any solutions?
Thanks!
theducks 01-30-2011, 06:40 PM OK - I've figured out that it has something to do with justified text.
If I go back into Sigil and remove the justifying option, then the lines appear as normal.
The problem then is that some chapters of the book are justified, and some are not.
- Anyone have any solutions?
Thanks!
As you said Bizarre
Are you using Sigil to Justify (SGC3 or SGC4 style code at the top) or is
c-meginm-l set to text-align: justify in the style sheet?
I was using Sigil to justify - I'm not that comfortable yet with code.
However, as you point out, the code specifies that it should justify:
p.c-meginm-l {
font-family: "Baskerville";
line-height: 1.50em;
font-size: 1.00em;
margin-bottom: 0.00em;
margin-top: 0.00em;
text-indent: 0.71em;
margin-right: 0.00em;
margin-left: 0.00em;
text-align: justify;
font-weight: normal;
font-style: normal;
color: rgb(0,0,0);
I'm puzzled as to why some chapters are justified (and look fine, i.e. no disappearing lines) and some are not. As I said, I've removed the justify from those chapters ... so now there is a lack of consistency, but the lines are all there.
ldolse 01-30-2011, 07:40 PM You might want to try re-converting epub to epub with Calibre after adding the justification rules in Sigil. Sigil works by sticking it's own css at the top of every chapter/flow of the book, if you re-convert with Calibre I believe it should merge these together into a single css entry. That might fix whatever QT bug you're seeing.
If you don't have a reading device but want to know how it will look whenever you finally get one, Adobe Digital Editions is still something you can download which will give you a more reliable idea about that.
OK, thanks much. I'll give that a try.
|