07-04-2017, 10:14 AM | #16 | |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
|
|
07-04-2017, 08:37 PM | #17 | |
Resident Curmudgeon
Posts: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
07-05-2017, 12:49 AM | #18 | |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
I had expected to just need to substitute the SVG images for the PNG images and change the references from image/png to image/svg. It's obviously more complicated than that, but I'm also begining to suspect buggy epub reader software, but that this book is enough off that it is not good for proof of that. |
|
07-06-2017, 12:50 AM | #19 | ||||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I tested "progit-svg11-xml-img-auto.epub" on my Nook. Displays ok. But like jhowell mentioned, probably best to change the SVGs to be more EPUB-standards-compliant. Quote:
Quote:
Code:
.calibre6 { height: auto; width: auto } Ultimately, what I would recommend doing is changing it to this: Spoiler:
with this CSS: Spoiler:
this allows you to easily control all the SVGs in a single location. Quote:
Quote:
But if it's for actual sale, you have to take into account older Kindles (MOBI). You would then need JPG/PNG fallbacks (this is explained in section 17.3.2.2 of the "Amazon Kindle Publishing Guidelines"). If you needed to generate PNGs, I would recommend taking those SVGs and generating higher quality PNGs from them, sort of like how I explained in my "Tutorial: Formulas to PNG" topic: Manually using Inkscape: Post #2 Automatically using Imagemagick: Post #19 All you have to do is just tweak that .bat file in Post #19 slightly by changing "*.pdf" into "*.svg": Spoiler:
that'll generate all the SVGs in a given folder into high quality PNGs (350 DPI). Side Note: You have to be careful with some characters that are included in these SVG files though. For example, in 18333fig0104-tn.svg, the author is using a 𝚫 (U+1D6AB : MATHEMATICAL BOLD CAPITAL DELTA) which probably doesn't exist on many fonts. You'll probably want to substitute in a normal Δ (Greek Capital Delta). Quote:
https://www.mobileread.com/forums/sh...44#post2852244 or not scaling properly in some readers: https://www.mobileread.com/forums/sh...40#post3515940 Not too sure how well Text-to-Speech is handled within SVG images either (haven't tested this thoroughly yet). Theoretically I am all for vector images over their bitmap counterparts... but practically, the damn readers have a while to go. Good to plan for the future though and store your vector sources, so you could always generate higher quality images at a later date (part of the reason I wrote that tutorial. Some sort of middleground while waiting for higher DPI devices + MathML support to get better). Last edited by Tex2002ans; 07-06-2017 at 01:16 AM. |
||||||
07-07-2017, 05:44 AM | #20 |
Fuzzball, the purple cat
Posts: 1,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Just a data point: all of the posted epubs display fine in iBooks on a vintage (2010) iPad running iOS 5.x.
|
Advert | |
|
07-09-2017, 04:34 PM | #21 | |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
I was about to write that I would think the PDF version would be best for tablets, but I've just noticed that the PDF version uses raster images for the diagrammatic figures. |
|
07-09-2017, 04:44 PM | #22 |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
|
07-29-2017, 07:00 PM | #23 |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
My takeaway is that many epub readers on e-ink devices do not have good support for SVG images, but that my various attempts to substitute SVG images for PNG images in the Pro Git book are not good tests of SVG support in epub readers.
I tried an epub version of "SVG 1.1 2nd Edition Test Suite" a few years ago, but that was not helpful. By the way, I can't find this book now, only W3 web pages with individual tests. I may eventually put together an epub written specifically to try all the suggestions here plus everything else I can think of. I must say that I am very disappointed that HTML with simple references to PNG and JPEG image files works just fine in epub readers, but not for SVG in most epub readers on e-ink devices, including FBreader. Especially since they work fine in desktop FBreader and ipad and even somewhat in epub converted to azw3. |
07-29-2017, 07:34 PM | #24 | |
Guru
Posts: 727
Karma: 10215666
Join Date: Jul 2017
Device: Boox Nova 2
|
Quote:
It looks like this. |
|
07-29-2017, 08:01 PM | #25 | |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
It is good the hear that the images get rendered. But unless I can get them larger than the PNG images are shown, it doesn't actually help with the original problem. (Well, the file size is smaller, but I think that is secondary when the displayed images are still to small.) |
|
07-30-2017, 04:15 AM | #26 | |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Quote:
About the size problem, you have to follow the Tex2002ans suggestions. The calibre css are not right. |
|
07-31-2017, 03:53 AM | #27 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Seems like someone's eyes glazed over before implementing the solution. Quote:
I wouldn't rely on FBReader for anything. It is a reader that throws the EPUB-standards out. Similarly with Moon+ Reader or many of the billions of other Android readers out there. They can "read EPUB" (aka, rip the HTML out, overwrite the CSS, and try to treat it like a "normal web page" or document). That might fly if you mostly read fiction or text-based non-fiction... but once you get into the more complicated layouts and functionality, they can't be relied upon. (Complex tables, poetry, SVG, various methods of EPUB3 Footnotes, MathML, pagelists, etc. etc.). If you are reading on Android, some of the spec-compliant readers are Bluefire, Bookari, Gitden Reader. Side Note: I don't have any first-hand experience with iBooks (I wouldn't touch an Apple product with a ten-foot pole). If anyone has iBooks on their devices, if they could test this EPUB and report back how the SVGs scale/look, that would be great. Last edited by Tex2002ans; 07-31-2017 at 04:05 AM. |
||
07-31-2017, 06:58 AM | #28 | |
Guru
Posts: 727
Karma: 10215666
Join Date: Jul 2017
Device: Boox Nova 2
|
Quote:
|
|
07-31-2017, 07:21 AM | #29 |
Resident Curmudgeon
Posts: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
08-01-2017, 08:41 AM | #30 | |
Enthusiast
Posts: 35
Karma: 14720
Join Date: Mar 2016
Device: kindle voyage, Kobo Forma, Kobo Aura One
|
Quote:
https://imgur.com/a/BMp8p |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple JPG images in SVG on single epub page | dbb1480 | Sigil | 7 | 05-20-2016 09:57 AM |
Convert SVG to PNG/JPEG in ePUB files | bunglegrind | Conversion | 2 | 04-24-2016 05:01 PM |
convert ODT with multiples svg to epub double the images | reup | Conversion | 8 | 01-27-2016 03:39 AM |
Conversion from xhtml to epub loose svg images | pwessel | Conversion | 3 | 05-24-2015 11:29 PM |
PNG Images in ePUB Files not rendered on Kobo | DragonflyKing | ePub | 12 | 10-12-2013 08:28 PM |