Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Apple Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2011, 01:48 PM   #1
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
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)
Barty is offline   Reply With Quote
Old 10-14-2011, 07:24 PM   #2
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
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
Attached couple screenshots. I modified the css to preserve more of the book's formatting, in term of font size and paragraph spacing (the first shot is from the "back page" so fonts are smaller). I also changed the way feedbook does chapter header. Got rid of the word "chapter" and the box for a cleaner look. Added some drop shadow for fun.

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
Attached Thumbnails
Click image for larger version

Name:	photo2.jpg
Views:	232
Size:	121.5 KB
ID:	77821   Click image for larger version

Name:	photo3.jpg
Views:	250
Size:	113.3 KB
ID:	77822  
Barty is offline   Reply With Quote
Advert
Old 11-18-2011, 09:04 AM   #3
parrafo175
Member
parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.
 
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
Attached Files
File Type: epub eleni-middlemarch.epub (836.1 KB, 184 views)
parrafo175 is offline   Reply With Quote
Old 11-18-2011, 09:25 AM   #4
Philantrop
Addict
Philantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beautyPhilantrop does all things with Zen-like beauty
 
Philantrop's Avatar
 
Posts: 296
Karma: 32153
Join Date: Dec 2008
Device: Kindles (e-ink)
Quote:
Originally Posted by Barty View Post
I can post the files if anyone interested (and mods have no objection).
Please do. That sounds (and looks!) really nice.
Philantrop is offline   Reply With Quote
Old 11-18-2011, 03:44 PM   #5
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,546
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Quote:
Originally Posted by parrafo175 View Post
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
I think you mean this?

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:&nbsp;<span class="attribution-name">Beaumont and Fletcher</span>.</span></p>
  </blockquote>
The reader software is wrapping the line when it doesn't fit, like it's supposed to. If I decrease the font size enough, then it won't wrap.

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!
Attached Thumbnails
Click image for larger version

Name:	IMG_1053.PNG
Views:	230
Size:	959.0 KB
ID:	79144  
Barty is offline   Reply With Quote
Advert
Old 11-18-2011, 05:30 PM   #6
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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>
DaleDe is offline   Reply With Quote
Old 11-18-2011, 07:18 PM   #7
parrafo175
Member
parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.parrafo175 knows the square root of minus one.
 
Posts: 13
Karma: 7584
Join Date: Oct 2011
Location: Barcelona, Spain
Device: kindle
Quote:
Originally Posted by Barty View Post

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!
I will try what you suggest. As for the html I cannot take credit for it I donwloaded it so i could a real book to play with.

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.
parrafo175 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:42 PM.


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