![]() |
#31 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Is this really all so necessary, going through all these complicated "jumping through hoops" just to do what it was that I wanted to do (and having it still not work correctly in some contexts)? I mean, if it's not going to work 100% the time anyway, then with regard to what I came up with before, just using simple HTML (as I did up in the epub attachment that I included in my earlier post here), I would think that with the size/orientation of the images that I was using that the only context in which the caption would bump over to the next page would be if one is viewing the book on a desktop/laptop computer, in a program where the windows can be resized -- and then the "problem" is easily fixable by resizing the window so that the caption doesn't bump over to the next page. Isn't that better, to have a "problem" that occurs sometimes but which the user can easily fix, rather than one that can't be fixed at all? Not to mention the former HTML method is so ridiculously simple and easy to do, and the latter is turning out to be soooooooooo incredibly complicated (comparatively). Seriously, I'm just wondering what the point is choosing the extremely complex method, rather than the ridiculously simple method, when no matter which way you do it you're going to run into issues some of the time (and with the complex method the user can't fix it, but with the simple method they can). ![]() |
|
![]() |
![]() |
![]() |
#32 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Captions are a big problem with ePUB if you want to be absolutly sure that the caption is always combined with the picture. The only way to always be sure (AFAK), is to insert the caption in the picture itself.
You can include it in the SVG, but forget about centering automatically. In ePUB3 it is supposedly solved IF (there it is again) the ePUB3 readers follow the specifications and interpret them the same. As has been said many times. Don't make it too complex, because for sure it will break on a reader or reading program. |
![]() |
![]() |
![]() |
#33 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
![]() After all this, while I genuinely do GREATLY appreciate all the help that everyone has been giving me, and while it has indeed been instructive for me and perhaps down the road I will make good use of what I've learned (along with resources for what I still need to learn about this, of course), for this current project it all just seems like overkill, making everything so much more complicated for practically no other reason than because we "can" (make it more complicated). Surely doing it the way I was going to before -- with a simple 4:3 landscape image (changing the width/height to 90% or something) with a simple small-sized caption underneath -- is a reasonably workable solution, one that will no doubt work out just fine the vast majority of times (and is easily fixable by the user if/when it doesn't), and also ensures that my captions are styled exactly in keeping with how the rest of the book is done, to boot? I really do appreciate everyone's help on this -- and thank you all so much for that -- but I honestly just don't get it, what the point is in making things so very complicated, just to acheive some rather negligible advantage (that isn't guaranteed to work all the time either). I think that, after all this, I'll just do it the way that I was going to before (plain ol' HTML). But with that said, I'm not so closed-minded about this that I can't be convinced otherwise -- I just need a pretty good argument to that end, that's all. ![]() |
|
![]() |
![]() |
![]() |
#34 |
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
|
|
![]() |
![]() |
![]() |
#35 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
![]() Okay, you inspired me to try again, and with a fair bit of frustration I managed to get the whole gallery of paintings done up (14 images w/captions in all), and everything seems to have turned out fine -- for the most part, anyway. It looks fine in ADE (I tried it in both v.3 as well as v.2, and it comes out okay in both), and then sent it over to my iPad to check, and although the images/captions aren't centered vertically on the page (as they are in ADE), that doesn't matter too much, I suppose. What's weird on the iPad, though, is that each and every image has a little horizontal line added up at the top-left of the image -- see the attached screenshot here. I haven't got a clue where that comes from, it's not there in ADE, nor do I see anything funny that I might have added in my code. And the text is so small. ![]() And this has me wondering -- once again -- whether I should just do it the HTML way as I was going to. That little line that's showing up is annoying, and what I don't like about this SVG method is that the font size for the caption changes along with the size of the pic, that I can't just have it be the size that I want it to be (regardless), in keeping with the font size(s) used elsewhere in my book. I'm totally on the fence about this now, and not sure what I'll end up doing, as a result. :/ ------------------ OFFTOPIC: On an unrelated note, while checking this in ADE v.2, I noticed that my transparent PNGs (used elsewhere in my book) aren't transparent, the entire area that should be transparent comes out as black (which looks awful, of course). Does ADE2 not support PNG transparency? And should I care what ADE2 does (so to speak)? I tested it in that because it was previously recommended (elsewhere) that I do so -- indeed, that I should also test it in v.1, too (which I haven't, but could). |
|
![]() |
![]() |
![]() |
#36 |
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
|
The example I gave you to illustrate the left/middle/right also drew a line at about the same point as the image you attached. Did you leave it in? It would be between a g statement. The original value of 40 maybe 50 pixels for the caption should be ok or if you prefer use pt (points) which also needs to be rather large. There is really no reason the numbers can't be big.
On the transparent issue. It there a background set somewhere? Dale |
![]() |
![]() |
![]() |
#37 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
|
![]() |
![]() |
![]() |
#38 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
![]() |
![]() |
#39 | |||
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
I had no idea what that "path" line of code did (let alone what "stroke" and "fill" were all about), but I just left it in. Here's the code that I ended up using in my HTML... Code:
<div> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 2048 1636" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="1536" width="2048" xlink:href="../Images/cranch1840-the_us_capitol.jpg" /> <g style="font-size: 3em; font-family:English; font-style: normal;"> <path d="M 100 10 100 100" style="stroke: gray; fill: none;"></path> <text x="1024" y="1586" style="text-anchor: middle">The U.S. Capitol (1840)</text> </g> </svg> </div> Quote:
![]() Quote:
I guess ADE2 just can't handle PNG transparency? I'm sure GIF transparency wouldn't be a problem (although I haven't tried it). Last edited by Psymon; 11-07-2014 at 06:42 PM. |
|||
![]() |
![]() |
![]() |
#40 |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
I was teetering on the brink of my fence-sitting a few moments ago, not sure which way to lean, but now I'm starting to lean back to the side of just doing it the HTML way and putting up with the occasional (and easily fixable by the user) issue of the captions sometimes ending up on the next page. :/
|
![]() |
![]() |
![]() |
#41 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
The water just keeps on falling out of the pot, I have no clue how to keep it in there! ![]() I was recently chatting with Hitch, and Hitch mentioned that if I ever finished writing and posting my SVG Tutorial... it would probably be "about 25 pages". I laughed. I just took a look at my Formula to PNG Tutorial, and it is ~9 pages.... SVG is way more complex... I would have to take up about 50! ![]() Quote:
Mind sending a few of those images my way so I can do some fiddling?? Or just attach a sample EPUB with the problem in it? There was a bug I found a long time ago with PNG transparency, although that was with Kindles. (I wrote down the specifics at the time in my Formula to PNG thread). Although that had mostly to do with the way that I heavily optimized the images (Indexed + Transparency). Never did research any further. I wouldn't ignore it... just like there are millions of older Kindles out there, there are also a bunch of older devices on the older ADE (RMSDK) engines. Not everyone has the latest+greatest versions of the readers! We had a nice big chat about images with captions (perhaps one of THOSE solutions might help you as well) + the typical warning about not ignoring older readers. You can also see my Post #9 where I listed 6 other MobileRead topics asking similar "image with captions" question: https://www.mobileread.com/forums/sho...d.php?t=223178 Quote:
Last edited by Tex2002ans; 11-07-2014 at 11:06 PM. |
|||
![]() |
![]() |
![]() |
#42 | ||||||
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
![]() Quote:
![]() More seriously, re ADE2 and the issue I was having Quote:
Quote:
Quote:
![]() Quote:
It is too bad, because it is nice if I can guarantee that the image/caption stay together -- but then, there's also the fact that I wasn't too crazy about the caption changing size along with the image, too, and in addition to that it seemed that my embedded font wasn't working in the caption either (although that might be because I hadn't included some SVG-specific "font face" code, I just assumed that the caption would use the font specified in the style sheet). In any case, your response here does have me leaning even more back to just doing it the HTML way, but I'll certainly be interested in anything you can make of the file I've attached here -- especially, at this point, that PNG transparency issue. Thanks very much, Tex (and also thanks once again to everyone else who has helped here)! ![]() Last edited by Psymon; 11-07-2014 at 11:53 PM. |
||||||
![]() |
![]() |
![]() |
#43 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,771
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Psymon;
I have just seen that you are using "em" units with SVG. Well, you shouldn't use "em" but "pt" (or "px") with SVG. Many ereaders don't support "ems" when they are used inside SVG images (in theory, SVG should support "em" but in practice I have found another thing). By the way, you should read this tutorial if you are going to work with SVG: http://commons.oreilly.com/wiki/inde...SVG_Essentials http://commons.oreilly.com/wiki/inde...ssentials/Text http://commons.oreilly.com/wiki/inde...t_to_a_Graphic Regards Rubén |
![]() |
![]() |
![]() |
#44 | ||
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
#45 | |
Chief Bohemian Misfit
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Save to disk" resizes and pixelates cover art | andredoubleu | Library Management | 2 | 08-27-2013 08:04 AM |
Buy an indie-store Kobo mini this week, get "The Art Forger" for free. | oj829 | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 11-20-2012 01:37 PM |
Radio Dramatisation of Iain M. Banks' "The State of the Art" | HarryT | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 05-01-2011 07:27 PM |
Request to Test "Sun Tzu's The Art of War" eBook | ahi | Workshop | 41 | 05-20-2009 12:12 PM |
"The Art and Science of Web Design" free download | Colin Dunstan | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-01-2005 10:16 AM |