09-23-2013, 04:02 AM | #1 |
Addict
Posts: 341
Karma: 1244808
Join Date: Oct 2012
Device: Kindle Paperwhite
|
Is there anyway to force Kindle to show text in one page?
Pretty often, a book has a diagram and a description under it. I want the description and the diagram to be in one page. It's too disorienting to flip back and forth with an eBook. Is there anyway to force Kindle PW to do this?
The book has been unpacked so I can modify the source with a text editor. EDIT: the <mbp:pagebreak/> tag would force the picture and the description to a new page. It helps but not good enough. Last edited by Julius Caesar; 09-23-2013 at 04:39 AM. |
09-23-2013, 06:30 AM | #2 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Moved to the correct forum.
|
Advert | |
|
09-23-2013, 06:50 AM | #3 |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Yes, it is! Now I don't have enough time to explain the things you have to do but later I will post the solution for Kindle PW (and any other Kindle that supports the .kf8 format)
|
09-23-2013, 09:08 PM | #4 |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Sorry for the delay (I was very busy today)
In your css stylesheet, write the following: Code:
html { height: 100%; /* very important */ margin: 0; } body { height: 100%; /* very important */ margin: 0; } #content { display: table; height: 100%; width: 100%; text-indent: 0; text-align: center; } .img_row { display: table-row; height: 85%; } .caption_row { display: table-row; height: 15%; } .img_cell { display: table-cell; vertical-align: middle; background: url("../Images/Obama.jpg") no-repeat 50% 50%; /* as you can see, the image is the background of the "cell" */ background-size: contain; /* this is important */ } .caption_cell { display: table-cell; vertical-align: middle; text-indent: 0; text-align: center; font-size: 0.9em; font-weight: bold; } p { text-align: justify; text-indent: 1em; font-size: 1em; margin-bottom: 1em; } Code:
<body> <div id="content"> <div class="img_row"> <p class="img_cell"></p> </div> <div class="caption_row"> <p class="caption_cell"><big>Barak Obama</big><br /> President of the United States of America</p> </div> </div> </body> Below you can see screenshots of my K4NT (in portrait and landscape mode) and the respective ePub. Regards Rubén Last edited by RbnJrg; 09-23-2013 at 09:15 PM. |
09-24-2013, 12:26 AM | #5 |
Addict
Posts: 341
Karma: 1244808
Join Date: Oct 2012
Device: Kindle Paperwhite
|
Thanks. I will give it a try
|
Advert | |
|
09-24-2013, 06:25 PM | #6 |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Julius:
Pay attention to his warnings about the older Kindle devices, however; on k1's, it won't work at all, as the original Kindles cannot display tables whatsoever, which means your stuff will run together, at best; if you have large-ish diagrams/tables on a K2, and the table breaks, you'll have pretty good-sized issues, no pun intended. You need to find another solution for fallback K7 coding. Hitch |
09-25-2013, 01:19 AM | #7 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
09-25-2013, 04:54 AM | #8 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
We tell our clients that if the captioning issue is that important to them, we can make the images with the captions attached, as images of text, or they can become accustomed to the idea that captions may very well break across a page/screen if someone enlarges their text. {shrug}. I spent a few years killing myself and my crews over this type of thing (like making outline-formatted TOC's work perfectly, when they are tabular in nature), and realized eventually that I was pushing a chain up a hill. It's a ridiculous thing to do. There are standards of care, and high-quality production, and then there's silliness caused simply because the very nature of ebooks is misunderstood (the ubiquitous square peg, round hole bit). If a client is that obsessed with "images and captions must be" on the same page, then I tell them to consider fixed-format, which a) will give them exactly what they want; b) will require that we make a new book for each retailer, not format, c) cost a small fortune, due to all the minute, painstaking coding required for that, and d) severely limit the number of devices upon which the resulting tome can be sold. I have, curiously enough, found that when the price difference for a book goes up about $1,000, and the marketing and sales options decrease dramatically, most people decide that captions sticking absolutely next to their images just aren't as crucial as they thought they were. Not to be derogatory about clients--not at all--but when it's your time and effort and brain-damage being expended, to make captions stick with images, a client will indeed stress over it, and send a book back to be revised umpteen times. If you charge for the actual costs of making a book that way (using either Ruben's table method, or the fixed-format), I generally find that things fall into perspective. Just my $.02. Hitch |
|
09-25-2013, 06:46 AM | #9 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I too want to reiterate Hitch's warnings. If this is for personal usage, feel free to use all the code you want. But please tell me this is not for a book for sale.
This discussion of "captions with images" comes up QUITE often, here are a few topics which may also have some answers: https://www.mobileread.com/forums/sho...d.php?t=166836 https://www.mobileread.com/forums/sho...d.php?t=215466 https://www.mobileread.com/forums/sho...d.php?t=193514 https://www.mobileread.com/forums/sho...d.php?t=172377 https://www.mobileread.com/forums/sho...d.php?t=192692 https://www.mobileread.com/forums/showthread.php?t=90457 While looking through a few of these old threads, I stumbled upon this link: http://www.pigsgourdsandwikis.com/20...r-yes-you.html Would this code work on Kindles? (and does it work in ADE or iBooks still?) (I see Hitch in a lot of these old topics saying the same exact stuff). To RbnJrg: Where do you come up with this stuff? Happen to have a collection of ebooks sitting around showing off all your coding madness? To Hitch: I swear I saw you post this exact "K7 fallback code" comment about 10 times in the past few days (unless I am becoming delusional due to it being past my bed time). I was tempted to find them all and copy/paste "What K7 fallback code would people in your company use in this situation?" Quote:
As to attaching text at the bottom of an image? (JPG -> JPG... the lossy horror) Do you guys try to implement at least SOME CSS code like a "page-break: avoid"? (not talking Kindle specific here) Indeed. Same how I feel. Last edited by Tex2002ans; 09-25-2013 at 06:48 AM. |
|
09-25-2013, 12:17 PM | #10 | |
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
|
Quote:
Dale |
|
09-25-2013, 01:13 PM | #11 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Trial and error, trial and error Tex. But I'm not alone in all this; Doitsu, Dylan Tomorrow and some others belong to the same "club" By the way, my "madness" could help you with your issue with .svg images The bad one with my "crazy things" is that so far, only work for Kindle (the new Kindles, those who support the .kf8 format). Maybe in a future things can change and all devices will be able to support them. Regards Rubén |
|
09-25-2013, 02:38 PM | #12 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
@Tex2002ans: No, inline-block doesn't work for Kindles, and yes, you've seen me post about fallback coding for K7's, because the vast majority of "fixes" being posted these days here on MR completely ignore all the K7 devices in the world, and won't work. Because Ruben uses a K8 device, that's what he designs for, and, I assume, what he tests on, but he (and other posters) doesn't/don't bother to create fallback styling. As a commercial bookmaker, I don't have the luxury of ignoring millions of K7 devices, so I have to think about these things, and that's why you see me posting it. With no disrespect to Ruben, who has a lot of very nice coding, solving most of the Kindle "problems" isn't very problematic when you only need to think about K8. I concur that lossy horror ensues when captions are attached to images. However, some clients just can't get past the idea of it captions separating from images. {shrug}. When given their various choices, if it's that important to them, that's what they'll choose. And again, if they want to pay us to sit there and do this type of menial labor, that's their choice, but we always give them an example to see what happens when you try to zoom the image, etc., and it's something we recommend against. Until people become accustomed to the idea of ebooks, this will continue to happen--the square-peg, round hole-ness of it all. I recently decided to stop taking poetry, because we simply can't charge enough to compensate for what we go through, in explanations about line-wrapping, indentations, the fact that you can't "space over 7 spaces, exactly," for whatever, and, to be blunt, the amazing amount of verbal/written abuse we take whenever a poet thinks that somehow, you've screwed with his "creative vision." It's just not worth it. We have a book that's been in production since December, and the worst part is, it's still in PRINT, and this client screams at us every single time he gets the book back (even though, last time, he'd already approved the book--said it was perfect; wanted three small word-for-word text changes, and then screamed when he got it back that we'd "changed" it, which we hadn't. He'd approved a book that was exactly the same, excepting those three words.) I literally live in dread of what's going to happen when we send him the ePUB and MOBI. (And this whole thing? For a chapbook of poetry? About $300, total. Since DECEMBER.) So....no more poetry for us, either. Too much brain-damage, too little return, and for the life of me, I don't understand the mindset that says it's okay to berate people, (for no reason, mind you) which seems to be the hallmark of dealing with poetry. </ poetry rant> Hitch |
|
09-25-2013, 04:01 PM | #13 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
There WILL have to be a "cutoff point" eventually, where you just say bye bye to an older device. You say the cutoff point is now.... I say somewhere in the middle. Hitch, perhaps about 10 years after everyone's Kindle has drawn its last breath! Quote:
Perhaps poetry conversion can be FREE, and then you charge per complaint. "Please fill out this form with the required $5 Poetry Complaint Fee:" You would be raking in the dough! Especially when you are doing it at such a high quality for so cheap. |
|||
09-25-2013, 05:49 PM | #14 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Last edited by Jellby; 09-26-2013 at 03:13 AM. Reason: fixed markup |
|
09-25-2013, 05:55 PM | #15 |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Of course Tex!
Yes, we must And the support for SVG images in ADE is not so bad; practically you can do with a SVG image the same (and more) as others kind of images. What is your current issue with SVG? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to show Kindle Page Location in Calibre | ran | Library Management | 5 | 08-19-2018 03:28 PM |
Images always show on new page, even if there's only 1 line of text on previous pg | SarahMB | ePub | 13 | 01-19-2013 04:37 PM |
Need help w/very simple task: page of Word text > Kindle text I can share w/friends | kearnine | Conversion | 1 | 10-17-2012 08:25 PM |
Force Kindle to open at cover page? | One | Kindle Developer's Corner | 4 | 06-13-2011 09:00 PM |
eek! 4 kindles now show up on my manage kindle page | bxrLvr | Amazon Kindle | 6 | 08-21-2009 03:12 PM |