11-27-2013, 11:16 AM | #31 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
BTW, this is what the online validator says:
EPUB Validator (beta) Results Detected version: EPUB 2.0 Results: Congratulations! No problems were found in background_image_test_ruben1.epub. Validated using EpubCheck version 3.0.1. Same message if you subsitute paragraph for blockquote. So it seems Flight Crew is wrong. Last edited by mrmikel; 11-27-2013 at 11:19 AM. |
11-27-2013, 01:00 PM | #32 | ||
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Last edited by Jellby; 11-27-2013 at 01:36 PM. Reason: fixed markup |
||
11-27-2013, 01:02 PM | #33 | |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
11-27-2013, 01:26 PM | #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
|
I think Sigil is a bit more restrictive than ePubCheck these days. With 3.0 in the offing and there svg can even be its own file the requirements have been relaxed. For example svg works fine just inside a body so it can basically be anywhere. Only Sigil complains, but I think it doesn't try and fix it.
Dale |
11-27-2013, 02:07 PM | #35 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
You can play around with the validator at:
http://validator.idpf.org/ I tried substituting various things and it seems like the long list of Sigil is wrong, at least according to the 2.0 standard. I don't think that Flight Crew has ever been a high priority for the Sigil developers. It is good for catching big errors, but it doesn't check to make sure references exist or are correct etc. It is convenient for that, but I always try to use epubcheck just before posting an epub. |
11-28-2013, 05:16 AM | #36 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
FlightCrew tries to follow the ePub 2 specification as published, not the IDPF validator behaviour. In some points the specificatios is rather ambiguous and FlightCrew's and IDPF validator's interpretations differ. Unless the latter is considered as normative, I don't think we can say one or the other is wrong.
And this, of course, has nothing to do with whether a particular code will work as intended in real-world devices. |
11-28-2013, 06:23 AM | #37 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
|
11-28-2013, 09:12 AM | #38 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
My apologies if I didn't explain myself very well. Firstly, though, thanks for the tip re display:none for my <h1> tags! I should have thought of that myself, but for some reason I thought I wasn't allowed to put anything else on the page other than what was in those <svg> tags (don't ask me why I thought that -- I think that was an assumption I made based on something funny happening when I did that on pages with full-size images). In any case, though, while I was really happy with the way those SVG title pages looked when they were done, they were also a lot more complicated to edit -- and that's in addition to my not being able to put the <h1> tags in them (which you resolved now, of course). So for both those reasons, I was thinking of trying what you'd said was "better" anyway, i.e. not doing it the SVG way, and instead doing it just with CSS (background-image), using/modifying the code you'd posted here earlier. I couldn't seem to get it to work with this image (see attachment), though. Basically -- if at all possible -- I was hoping to have this image as my full-page background image, and then my chapter title + flower ornament + author tags (<h1> + <img> + <h2>) overtop that. And while I'm at it, if these latter could have margins set as a percentage, that would be great, as I could easily have all the text stay within the "frame" in the background image, regardless of orientation or size. All of this has been really great, Rubén! I don't quite understand that SVG code, but I know how to do that now (thanks to you, including your last reply). It'd be nice to know/understand the other CSS way, too -- then I'd have two options to choose from for now and any future projects. PS... I just did the calculations, and if it were possible to make all the margins 10%, that would keep the text within the "frame" of the background image (more exactly, 9% for the left/right margins and 6% for the top/bottom would allow the text right up to the edge of the "frame", if the background image is indeed 100% full-page). Last edited by Psymon; 11-28-2013 at 09:31 AM. |
|
11-28-2013, 10:20 AM | #39 |
Writer
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
|
@AlexBell
In the example in post 25 you can't resize the text. So an image with embedded text would have done it as well as you said - and it is much simpler. George |
11-28-2013, 07:51 PM | #40 | ||||
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
https://www.mobileread.com/forums/sho...43&postcount=4 As you can see, the text remain in same page, no matter if the device is in portrait or landscape mode. But that technique only works for Kindle and iPad; you can't get that output in ADE and on ereaders based on ADE So is as it looks in my K4NT: Portraid mode: Landscape mode: Below you can see the respective ePub. But if you want all the text stay within the background image no matter the device and the device's orientation, then the easiest thing is to write the text directly over the background image, as Alex made. The alternative is to use svg. Quote:
http://commons.oreilly.com/wiki/inde...SVG_Essentials In the Chapter 8 of this tutorial, you can learn how to manage text. Of course, once you know about SVG, the more probable thing is that you don't want to write the SVG code by hand but using -for example- Inkscape Quote:
Regards Rubén |
||||
12-02-2013, 02:16 PM | #41 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
I'm a bit confused now, though. When this whole thread started, you said that you thought that using the background-image CSS method was better than the SVG method, but now I get the impression that perhaps it's actually SVG that you think would be better. Did I get confused about something along the way? That method you pointed to for centering text vertically on a page was rather interesting, too, actually -- although as you indicated, it won't work on all devices (i.e. not in ADE). I can see that the SVG method does have the advantage that one can get text to center on the page -- it comes out pretty much as though one had actually made a graphic of the text, in fact, except without the "overhead" of having tons of extra graphics in one's epub (which in my case would have been one each for the 20+ chapters in my book). I have to wonder, though, if doing it that way (SVG) introduces some limatations? As I mentioned before -- and which you resolved for me -- there's the fact that my chapter title texts don't get made into <h1> tags, but I also wondered about two other things: searching, and text-to-voice readers. I tried out a search on my ipad, and that seems to work okay, but I'm not sure how a text-to-voice reader would work, if it would pick up on those chapter titles and "read" them, too (not to mention read them as headings, not just simply "text"). I guess wondering about this accessibility issue might inadvertently introduce a problem that would cause my ebook to be rejected -- and I guess that's why I was wondering about the background-image/CSS method that you originally mentioned. Like I said, I tried to do it that way, but couldn't get it to work (using the larger background image that I loaded up in my previous reply. In other words... I'm still a bit confused, and not sure which method would be the better way to go! Sorry... |
|
12-02-2013, 02:21 PM | #42 |
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
|
SVG is better. The text will stay where it belongs and it is supported in ADE. However, don't expect it to work for mobi.
Dale |
12-02-2013, 02:30 PM | #43 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Well, that's the impression that I was getting, too, but I still recall that Rubén said -- repeatedly -- that he preferred the CSS method. I guess that's why I'm a bit confused (apart from my apparent "confusion" in getting the CSS method to work, too, of course).
|
12-02-2013, 04:09 PM | #44 | |||||||
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||||
12-02-2013, 04:10 PM | #45 |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
|
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 |