![]() |
#1 |
doofus
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,546
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
Stanza for iPad. Does anyone else see this bug?
In books where the beginning of the chapter has an element with a large margin top, sometimes the text gets pushed down to the point where it may go off the bottom of the screen. Then in the subsequent pages, the text also gets shifted down, as if the top margin carries over from the first page. This is more obvious when you use larger font and smaller margin.
If the first element with text is a h1 h2 ... P, div it's okay. But if it's a blockquote or some other block element and it has a margin-top, that's when I see this problem. (yes I know stanza is dead. But that is another discussion) |
![]() |
![]() |
![]() |
#2 |
doofus
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,546
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
Okay, I was able to fix this bug. I also fixed a number of rendering related quirks that bother me.
One of the great things about Stanza is it uses webkit browser as renderer and it exposes the html template file, css, and the javascript for file pagination. This provides a hook to tweak things a bit without access to the code/ You need a jailbroken ipad, of course. The files are Code:
epub-format.css epub-functions.js epub-template.html I can post the files if anyone interested (and mods have no objection). I love Stanza. Keep hope alive! Source epub here: http://www.feedbooks.com/book/413.epub |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 7584
Join Date: Oct 2011
Location: Barcelona, Spain
Device: kindle
|
Hello,
I don´t know if you can help me, but i seem to be having a problem with a blockquote and the ipad. my html starts with an h3 and then the blockquote. I have the margins and paddings at 0. When I see the epub on an ipad the blockquote lines overflow over the first paragraph. Any ideas? I attach the epub. Thank you, Eleni |
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 296
Karma: 32153
Join Date: Dec 2008
Device: Kindles (e-ink)
|
|
![]() |
![]() |
![]() |
#5 | |
doofus
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,546
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
Quote:
Code:
<blockquote> <p>“Since I can do no good because a woman,<br /> Reach constantly at something that is near it." <span class="attribution">— The Maid’s Tragedy: <span class="attribution-name">Beaumont and Fletcher</span>.</span></p> </blockquote> You can put <nobr> ... </nobr> around each line, but that's just a suggestion to the reader software. It can still wrap if it needs to. You can style blockquote with a smaller font size, like 0.9em, so it's less likely to wrap, but that's about it. You can ask in the workshop or epub forum on this site. They'll know more. btw, your html looks very nice and clean. Excellent job! |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
It is not a good idea to put a <p> inside a <blockquote>
|
![]() |
![]() |
![]() |
#7 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 7584
Join Date: Oct 2011
Location: Barcelona, Spain
Device: kindle
|
Quote:
![]() The funny thing is that for chapter 1 everything works but for the rest of the chapters it doesn't. I think like you say it must be the <br>. I will post back if I find a good solution. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iPad Does Stanza support VGA out on the iPad? | darknessangel | Apple Devices | 1 | 03-03-2011 10:58 AM |
Adding ODPS client to calibre (Bug #1665, Download from Bookshelf/Stanza servers) | hakan42 | Calibre | 11 | 12-05-2010 12:19 PM |
Stanza for iPad out!!! | da_jane | Apple Devices | 80 | 07-01-2010 04:30 PM |
iPad Stanza mail attachment bug | Fotoman | Apple Devices | 4 | 06-17-2010 07:29 PM |
Stanza for iPad | Fugubot | Apple Devices | 4 | 04-22-2010 11:24 PM |