12-12-2013, 08:54 PM | #91 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
But I gather there's not much I can do about that? Assuming not, then I suppose I'd be best off to bring them down to 256kb (or less) myself, rather than let KG do it, right? My original working files are all uncompressed Photoshop files, and if I make them into "high-quality" JPEGs first (greater than 256kb) then I'm already adding compression, and if KG then re-compresses them then I'd only be losing even more quality (i.e. I'd be losing it twice, in a way). It's a shame, because it doesn't seem that iBooks (and I presume ADE, although I don't know for sure) has that requirement, and for them it's no problem to have nice, high-quality images -- but if I want to make one file that works on all platforms, then it's Kindle's file size requirement that sacrifices quality on every other platform. :/ |
|
12-12-2013, 09:07 PM | #92 | |
Wizard
Posts: 1,543
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
Advert | |
|
12-13-2013, 09:47 AM | #93 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Sounds good -- obviously you know a LOT more about this stuff than I do! And I think my ignorance has me talking myself into imagined problems that don't actually exist sometimes (but, however slowly, I'm learning!).
|
12-14-2013, 12:45 PM | #94 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Rubén! Rubén! Rubén! I need your help again! I hope you work on weekends (ha ha)!
Quote:
Firstly, I think you already answered this, but the stylesheet that I've been using for iBooks/ADE should work fine for KF8 -- correct? So I don't need to make any changes/additions to that? Assuming that's right, then the only thing I need to do up now is separate styles for mobi. As you described above, these would be done in the same stylesheet, but I seem to recall a way of detecting a device and then importing an entirely separate stylesheet, i.e. can I do something like this, and just put this in my main (iBooks/ADE) stylesheet?... @media amzn-mobi { @import url("../Styles/mobi.css"); } This would greatly simplify designing that stylesheet, actually. In Sigil, I could very easily do a search & replace for the stylesheet references in all my HTML files and change them to point to that mobi.css, then design the latter how I want it to look -- all the while that I can actually "see" how it will look right there in Sigil -- and then when I'm done I just do a search and replace and change it back again. I presume that makes sense? EDIT: I'm such a dummy sometimes -- sheesh! Instead, I just put all my mobi styles at the end of my CSS file (but not wrapped in that "@media amzn-mobi", of course) and have just been getting all my styles figured out that way. Duh! So never mind -- re the above, anyway. I'm so dumb sometimes, don't mind me. :/ One other question, on a different subject... in my iBooks/ADE version, I have a few links to websites (not in my main text, but just in my CIP data at the back of the book, in the "small print"). What happens with web links in devices that can't be used as a browser? On the iPad (and Mac) that's no problem, of course -- it just switches over to Safari and displays the web page -- but I have no idea what happens in other devices. I'm wondering, I guess, if perhaps I should just get rid of those web links completely, or if perhaps I should just write out the URL in full. For example, right now I have stuff like this... <a href="http://www.DomainName.com">A Website Somewhere</a> I'm assuming that won't work in some Kindles -- since it's not a web browser -- so would the best way to do that be to change that to something like this?... <a href="http://www.DomainName.com">www.DomainName.com</a> At least then the reader can "see" what the link is, even if their device doesn't allow them to actually click on it, and go to it. Any thoughts on that would be most welcome! Thanks again, in advance! Last edited by Psymon; 12-14-2013 at 02:58 PM. |
|
12-14-2013, 02:59 PM | #95 | |||||
Wizard
Posts: 1,543
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Quote:
Code:
@import url("../Styles/mobi.css") amzn-mobi; Quote:
Quote:
Regards Rubén |
|||||
Advert | |
|
12-14-2013, 03:04 PM | #96 |
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
|
Hi:
Hitch thinks that showing the URL is a good idea. If it's a long link, I strongly recommend getting a shortlink from bit.ly or goog, etc., and using that instead, for those folks that have older devices, so that when they go to their computer, it's fast to type. Other than that, I don't see anything here I need to correct or advise upon further that would be of more value than me hearing the sound of my own voice. ;-) Hitch |
12-14-2013, 03:38 PM | #97 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Thank you so much, Rubén and Hitch! That does help alot -- although only a few minutes ago I edited my original post from earlier, after I realized that all I had to do was write out my mobi classes at the end of my original CSS file, work on them there, and then when I'm done just wrap those in "@media amzn-mobi".
Seriously, I'm so slow (dumb) sometimes -- and I do apologize for that. It's crazy, but I started doing web design almost two decades ago, and yet there's times when I feel like such a complete newbie at this. :/ Anyway, thank you for both your replies -- that does indeed help (and/or confirm) with what I was working on. I've just encountered a couple of other little problems, though, as I've been working on this... One issue relates to some "fancy typography" that I did on my title page(s), which works/looks great in virtually all platforms that can handle my embedded font -- basically everything except KDX, of course. My code looks like this (essentially, but with different words and in a fancy font)... <h1><span class="shrink">My</span> <span class="grow">T</span>itle <span class="shrink">Page</span></h1> ...and the relevant styles are... .grow { font-size: 138%; } .shrink { font-size: 85%; } This ends up looking great with my embedded font, but in KDX, without that font, it looks ridiculous. How do I turn "off" a class for KDX? I don't want to just set the font size at 100%, because that doesn't necessarily always apply. I just want that class to be ignored. I've been searching all over the place with google trying to find an answer to that and can't seem to find one. Also, one other KDX issue is with images that I'd used for dropcaps. Here's how I've been doing those dropcaps, which works great in everything except KDX... <p><span class="dropcap drop1"><img alt="L" src="../Images/init-L.gif" /></span>orem ipsum dolor blah blah blah</p> ...and my related CSS... span.dropcap { margin-top: 0.2em; margin-right:0.38em; } span.dropcap img {width: 100% } span.drop1 { float:left; width:6em; max-width: 23%} In KDX everything blows up and falls apart! The image comes out HUGE, and the text is aligned to the baseline. If there's another, better way for me to do my dropcap images that's totally different from what I've done here, I certainly don't mind -- I just want them to work okay in KDX, too. I'm just clueless as to how. :/ Thanks so much, to Rubén or anyone else that can help! Last edited by Psymon; 12-14-2013 at 03:50 PM. |
12-15-2013, 06:36 AM | #98 | |||||
Wizard
Posts: 1,543
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Quote:
Quote:
Quote:
Regards |
|||||
12-15-2013, 08:14 AM | #99 | |||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Re dropcaps... Quote:
Quote:
|
|||
12-15-2013, 03:31 PM | #100 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
I'm so exasperated, I just can't seem to figure this out.
I have two issues (unrelated), it would seem... First, when I add in my mobi styles (which I put at the end of my CSS file -- I'm assuming that's where they should go), most of them seem to work okay in KDX. And that's great! But at the same time I end up losing my embedded fonts in Paperwhite -- all I have to do is temporarily delete all those mobi styles and the embedded fonts come right back again (in PW). I have no idea why they don't continue to show up in PW, just because I add in those mobi styles -- which should only be affecting KDX, right? Secondly, I just... can't... seem... to get my stupid dropcaps (using images) to look okay. It's no problem to get them to look like they're supposed to (with minor variations) in everything, using the same code that I was using before, but I just can't seem to get things to work in KDX. I just don't know what to do -- and I don't even care if I do them up an entirely different way, or if they're placed/sized differently than what I had, I just want them to look okay in "everything". I've searched these forums, and elsewhere on the 'net, and I just can't seem to find anything about this subject -- surely there's gotta be something, somewhere, about using images as dropcaps (and in a way that works in all Kindles, including DX)? I just can't seem to find anything anywhere. Surely I can't be the first person to ever try this (let alone succeed at getting it to work)? I just don't know what to do. |
12-15-2013, 04:44 PM | #101 |
Wizard
Posts: 1,543
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
12-15-2013, 04:51 PM | #102 | |||
Wizard
Posts: 1,543
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Quote:
|
|||
12-15-2013, 05:01 PM | #103 | ||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
http://web.sigil.googlecode.com/git/...bed_fonts.html Like I said, it seems to work fine in "everything" (almost), i.e. iBooks, ADE, and all the Kindles... except DX. But as soon as I add in those mobi styles to my stylesheet, the embedded fonts disappear in Paperwhite, too. Quote:
Thanks -- as always! |
||
12-15-2013, 07:03 PM | #104 | |||
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:
Quote:
Quote:
Hitch |
|||
12-15-2013, 11:21 PM | #105 | |||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
@media amzn-mobi { [all my mobi styles here, written out like any other styles would be written out] } That is how I'm supposed to do it, isn't it? Like, at the end, I'd effectively see two of those closing curly-brackets, right? I've got a whole bunch of styles in there -- or am I supposed to have that "@media amzn-mobi" stuff wrapped around each and every individual style (for mobi)? I just assumed it was the same as, say, wrapping a <div> around a whole bunch of stuff (if you know what I mean). Quote:
However, now you've got me wondering if there's something corrupt with my Kindle Previewer. Your question got me to fire it up again and check my book (and my settings), and before my fonts weren't showing up in Paperwhite, but my styles in KDX seemed to all be coming out reasonably okay. In checking it out again just now, though, suddenly the fonts are showing up in Paperwhite (and my font settings are the same as before), but my styles in KDX aren't rendering correctly! I honestly don't know what's going on -- like I said, maybe my installation of KP is corrupt, or maybe it's some weird bug in it... or maybe it's a ghost that just doesn't want me to get this right (which would be my luck!). :/ Quote:
Well, my dropcap images are all about the same size as the example I posted earlier today (which is one of them) -- they're all 216 px wide, and vary between 215-220px in height or so. I'm finding Kindle so utterly exasperating, actually. Trying to figure this out has been like riding on a train that keeps going off the rails -- I'll finally get the train going, slowly-but-surely, but then the next thing I know I'm in another train wreck and everything comes to a complete halt (which is when I come here and call out for help!), and then I'll slowly get it lumbering along again... only to end up in yet another wreck that has me trying to clean up yet another disaster and figure out how on earth I got off the rails again. You all really have my admiration for having figured out how to stay "on track", that's for sure! |
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle paperwhite crop background-image on top/bottom | j.puff@ppp.eu | Kindle Formats | 2 | 08-28-2013 11:58 AM |
Kindle paperwhite crop background-image on top/bottom | j.puff@ppp.eu | Kindle Developer's Corner | 1 | 08-26-2013 06:02 PM |
iBooks: Text overflowing image if it's at top of screen. | Oxford-eBooks | ePub | 30 | 05-10-2013 12:56 AM |
Image overlayed over text (but text visible if image disabled)? | Kaylee Skylyn | ePub | 5 | 08-01-2012 05:27 PM |
Background image | djrulz | Kindle Formats | 1 | 03-29-2011 04:51 PM |