![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 2864
Join Date: Feb 2014
Location: Norway
Device: kindle gen3
|
Using svg graphics for title page
I have experimented a little with using svg graphics to get a nice-looking title page. In theory, it allows me better control over the vertical position of the text, relative to the page (screen) size, then I have been able to get with regular html/css.
I am happy with the result when viewed on my own Kindle Keyboard, and on Kindle Previewer's K. Paperwhite and K. Fire emulation. I am also pleased with what I get when I use Calibre to convert to epub format and view that in Adobe Digital editions. But get more mixed results when I try to check other formats and conversion options. For example, if I run my mobi file from Kindlegen trough Calibre to get an epub (i.e xhtml -> (kindlegen) -> mobi -> (calibre) -> epub), the title page is miniaturized. And Kindlegen fails when I try to convert to Kindle iOS devices. Have anyone else experience with this? Is it a viable way forward - or is the svg support in various ebook readers so poor that it is best to avoid svg? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
In order to get an .epub book is better than to convert from mobi to epub with Calibre, to use Sigil to built your epub from the .xhtml/.html files.
And your problem with your title page is because the way you are using the cover image. I attach a new epub this time made with Sigil. Here you can see how the title page appears now in Calibre: and here how the title page is showed in ADE: In the epub below you can see how I have included the title page image. But remember, use Sigil to build your epub. Regards Rubén |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 2864
Join Date: Feb 2014
Location: Norway
Device: kindle gen3
|
[QUOTE=RbnJrg;2771029]And your problem with your title page is because the way you are using the cover image.
My issue is not with the cover image, but with the title page. I.e. this: And my issue was not specifically with the file I attached - but with the portability of the code I've used there. (I don't know what people will do with my books after I upload them here. There's a good chance some will do their own conversion to get the file I published onto their own preferred reader. So while my main focus is to make a book that looks good in one format, I would prefer to avoid using features that are likely to break on conversion.) |
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() In my Calibre, the title pages in the epub made with Sigil are showed as following: As you can see, no issues (title pages are not miniaturized any more in Calibre). Regarding the portability of the code, since it works fine in ADE, then also will work fine in all ereaders based on ADE (Nook, Sony, etc.). And as you could see by yourself, it also works in Kindle; so I think the code included in the epub made with Sigil, will be widely supported for ereaders. Make your epub with Sigil, and after that, convert it to .mobi with Kindlegen/Kindle Previewer and all will work fine. Last edited by RbnJrg; 02-23-2014 at 10:55 AM. |
|
![]() |
![]() |
![]() |
#5 | ||
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 2864
Join Date: Feb 2014
Location: Norway
Device: kindle gen3
|
Quote:
My problem is not (just) with Calibre. If I convert from xhtml to epub with Calibre, the result looks the same as in your screen shots. That was the file I uploaded - to let people have an idea of what I was trying to do. (In other words: The epub you made with Sigil did not solve any problems in the file you started with - because there where no problems in that file.) This is (some of) the conversions I've tested: 1) xhtml -> (calibre) -> epub: Good result. The font I specified doesn't exist, but that's OK. 2) xhtml -> (kindlegen) -> mobi: Good result. (Kindle DX does not seem to support svg at all, but if that was the only problem I might live with that.) 3) xhtml -> (calibre) -> mobi: Good result - like #1 the font specification is gone, but it's good enough. 4) xhtml -> (kindlegen) -> mobi -> (kindlegen) -> Kindle for iOS: Conversion fails. 5) xhtml -> (calibre) -> mobi -> (kindlegen) -> kindle for iOS: Good result. (That this works, when #4 didn't, is perhaps what baffles me most.) 6) xhtml -> (kindlegen) -> mobi -> (calibre) -> epub: Poor result - the svg graphic becomes a small box in the corner. 7) your sigil epub -> (kindlegen) -> mobi -> (kindlegen) -> Kindle for iOS: Conversion fails, same as #4. Quote:
|
||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The EPUB you get from test #1 is exactly what you want, so why did you bother with test #6?
MOBI --> EPUB is automatically going to result in losing information. Same with #'s 4 & 7, why are you converting from MOBI to AZK (the K4iOS format)? Just convert from xhtml/epub directly to AZK, instead of sending it through a lossy format like MOBI first. Also, K4iOS can read MOBI even though the Kindle Store will send AZK by default. Essentially, all your problems seem to be when you use MOBI as an intermediate format between two others. |
![]() |
![]() |
![]() |
#7 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() First at all, Amazon won't accept a .mobi file made with Calibre, so forget Calibre. Second, you need only one good file, an .epub one. Build this .epub with Sigil and then convert it to .mobi with Kindlegen. Third, your problems with .azk files (for iPad) is not due to the code you used but is a bug of Kindle Previewer (the last one v.2.92, more precisely). You can read about it in the Amazon Forum. Fourth, you made a lot of tests but starting with your .xhtml file, not with "my" epub. You only would need: A) .xhtml ---> Sigil ---> .epub B) .xhtml ---> Sigil ---> .epub ---> kindlegen ---> .mobi So I ask you: 1) How does it look that epub (that one you get in step A) in ADE (that is what matters, because ADE is the base of many ereader). 2) How does it look the .mobi file you got by using kindlegen/kindle previewer to convert that epub (what you get in step B). And for now, you won't be able to test .mobi files in Kindle Previewer/Ipad devices (unless you have an old version of Kindle Previewer) Quote:
"For example, if I run my mobi file from Kindlegen trough Calibre to get an epub (i.e xhtml -> (kindlegen) -> mobi -> (calibre) -> epub), the title page is miniaturized." So, how did you get the .epub you posted in first place? If you followed the steps you posted then that .epub, according to your words, should have title pages miniaturized. "My" epub, made with Sigil, doesn't have that issue. Quote:
|
|||
![]() |
![]() |
![]() |
#8 | |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
|
Lagopus said:
Quote:
If so, some uploaders create muliple formats before uploading, and you could, for example, provide epub, mobi, and perhaps other Calibre-created formats. But I may have misunderstood. If so, please ignore this. |
|
![]() |
![]() |
![]() |
#9 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
|
@GrannyGrump: Some people like their texts justified, some hate it, some like spacing between paragraphs, some don't and so the long day wearies on and on....
@Lagopus: Given that the OPF file structure is pretty much identical between kindle and epub, maybe it is an idea to zip your own epub file, rather than suffer the vagaries that calibre imposes on your file? (I am full of admiration for the calibre team, but the price of implementing conversion from everything to everything is a rather unrecognizable file) I haven't the guts to go for SVG book covers yet. It is tempting – it just feels silly to have a cover image that weighs in at more kilobytes than the rest of the book – but support seems to be too patchy so far. (Here's how I zip up under linux, by the way ![]() Spoiler:
|
![]() |
![]() |
![]() |
#10 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 2864
Join Date: Feb 2014
Location: Norway
Device: kindle gen3
|
Quote:
But as this way of coding a title page is mainly in the bells-and-whistles category, and not really necessary for the book, I have more or less decided to drop it, use a "traditional" html titlepage, and spend the time proofreading instead. |
|
![]() |
![]() |
![]() |
#11 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
|
@SBT -- I'm one of those who use a graphic book cover, but I have seen some nice ones that were simply html text. A nice decorative subsetted font to support some fancy text effects could weigh as little as 25 - 50 kb. It's something I'm considering for future projects.
(yup, I know, I know... support for embedded fonts isn't all heavenly bliss either.) @Lagopus -- wouldn't it be wonderful if all devices and software followed the same standard, and offered the same feature support? I usually upload epub only, but in two versions -- one with drop-caps, floated images, svg, etc. And the other without those fancy features. Welcome to MR!!! Looking forward to seeing your uploads! Last edited by GrannyGrump; 02-24-2014 at 09:26 PM. Reason: typo |
![]() |
![]() |
![]() |
#12 | |
Member
![]() Posts: 18
Karma: 10
Join Date: May 2014
Location: Italy
Device: kindle
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#13 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#14 |
Member
![]() Posts: 18
Karma: 10
Join Date: May 2014
Location: Italy
Device: kindle
|
I tried both em and "bigger" px but nothing's changed. Maybe the problem is that I upload epub directly to kdp instead of converting it to .mobi with kindle previewer (where characters appear with right size)?
|
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 18
Karma: 10
Join Date: May 2014
Location: Italy
Device: kindle
|
No, it's the same. After uploading to kdp characters become very small in online previewer...
It happens the same uploading (without saving) your example file. ![]() Last edited by zonker; 08-11-2014 at 06:10 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub on IPad: SVG-graphics don't show. | georg3200 | Apple Devices | 19 | 07-10-2013 02:41 PM |
Centering SVG graphics in iBooks? | FunkeXMix | ePub | 8 | 01-04-2013 09:21 PM |
Which is the best way to add SVG (vector graphics) to PDF files ? | DSpider | 0 | 04-01-2011 07:27 PM | |
Converting SVG graphics | navels | Sigil | 5 | 03-15-2011 09:58 PM |
Epub with full page graphics only zooming issue | JonDeus | Nook Color & Nook Tablet | 10 | 03-10-2011 02:33 PM |