![]() |
#16 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Yup - that knocked the rust off those brain cells. They got rid of the units when using width/height directly in the html tag...the integer is always in px. But all the other units can be used if styled with CSS.
|
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,073
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
MOBI does not support SVG at all, so for the oldest Kindles the images will be missing unless media queries are used to provide a rasterized image fallback. KF8 handles SVG fairly well as far as I know. There may be limitations due to the KF8 renderer being essentially frozen for the last ten years. KFX, which is the format most readers will experience, only does so-so with SVG. During conversion to KFX format SVG images are rasterized and converted to JPEG. So the rendering of detail you would expect from SVG is lost. This is especially noticeable in a zoomed-in image. Also, the conversion does not take into account the fonts present in the book so if the SVG image includes text only generic fonts will be used. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Interesting - If they are encouraging SVG use with their current guidelines it seems like Amazon has given up supporting their older devices (it's about time!).
Converting SVG to rasterized defeats the whole purpose (as stated in their guide) of zooming in.... lolz Sounds like Amazon is still having carnal relations with a canine... |
![]() |
![]() |
![]() |
#19 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,073
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
If you publish a Kindle book that is not readable in MOBI format and a customer leaves you a bad review or complains to Amazon then that is your own fault. It has worked this way for years now. Perhaps they intend to improve how it works sometime in the future, but I would not bet on it. Amazon is consistently inconsistent. |
|
![]() |
![]() |
![]() |
#20 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
The major problem with SVG on Kindles is it forces a page-break before + after every SVG. They have rendering issues (see jhowell's post above). And they still require fallbacks for KF7 (although I'm not too sure if Amazon would ding you for that now that they deprecated MOBI earlier this year). See all the discussion we had in: Quote:
![]() ![]() And thanks for more detailed info. In EPUB, SVG always worked well (besides rotten, non-standards compliant readers like Moon+). But on Kindles, SVGs are (and have always been) a mess. I would love for them to fix the garbage though, it would help make maths + equations + charts/graphs so much higher quality. (And it's always smart to store the vector originals, so you could swap them in at a future date!) Last edited by Tex2002ans; 09-03-2022 at 03:20 PM. |
||
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Member
![]() Posts: 24
Karma: 10
Join Date: Jul 2022
Location: France
Device: Kobo Clara
|
The partial "e" alone is not the expected result. Please look at my svg, you can extract it from epub with Sigil.
|
![]() |
![]() |
![]() |
#22 |
Member
![]() Posts: 24
Karma: 10
Join Date: Jul 2022
Location: France
Device: Kobo Clara
|
|
![]() |
![]() |
![]() |
#23 | |
Member
![]() Posts: 24
Karma: 10
Join Date: Jul 2022
Location: France
Device: Kobo Clara
|
Thank you everyone for sharing your knowledge, it's really appreciated!
Quote:
With the first small image, I tried with the CSS file content + code in the head section Code:
<link href="../Styles/Style0001.css" type="text/css" rel="stylesheet"/> I also tried changing CSS content to simply Code:
img { width: 100%; } I also tried epub 2 without luck. So far,only kepub.epub displays the svg and width 100% is not showing up. Last edited by philm; 09-04-2022 at 10:18 AM. |
|
![]() |
![]() |
![]() |
#24 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,778
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi,
I studied the epub you posted and I think I found the cause of your issue. First at all, your epub is an epub3, so the only way that it can be correctly displayed on Kobo is as .kepub since .epub is for epub2. Second, since your svg has text, to be sure that it will be (the text) showed in your device, first you must convert it as "paths". I did so and I built a new epub that you can watch below. Finally, if you want an epub3, then you must do two things: 1) To use the format .kepub 2) To force the <body> of your .xhtml page (where you are going to include the svg) to have a full height. You can do that with something like: Code:
<body class="fullHeight"> <div style="height: 100%"> <svg ...><image.../></svg> </div> Code:
.fullHeight { height: 99vh; /* Take into account that this unit of measure is for epub3 */ } Regards Rubén Last edited by RbnJrg; 09-04-2022 at 12:03 PM. |
![]() |
![]() |
![]() |
#25 |
Member
![]() Posts: 24
Karma: 10
Join Date: Jul 2022
Location: France
Device: Kobo Clara
|
That is really cool! Thank you Ruben, @RbnJrg!
![]() I don't need to stick to epub3. I though it was more recent, with more features ![]() You're right, text to path fixes everything on Kobo. Even img with width is working now: Code:
<img width="100%" alt="drawing" src="../Images/drawing2.svg"/> |
![]() |
![]() |
![]() |
#26 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,778
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
No problem
![]() Quote:
Quote:
Quote:
Quote:
![]() ![]() EDIT: before opening the ebook in your Kobo, rename the .epub as .kepub. Last edited by RbnJrg; 09-05-2022 at 09:19 AM. |
||||
![]() |
![]() |
![]() |
#27 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,075
Karma: 105211945
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Epub2 if you want widest compatibility with all ereaders, apps, Amazon, Google etc. The epub3 has features for multimedia perhaps best done as an App for iOS and Android that won't work on most eink and most ereader apps and won't be accepted in upload to Amazon for publishing.
There are a few features in epub3 that are OK for novels and may work. But for a straight novel / fiction even with illustrations the epub2 is fine and is preferred upload to Amazon, Smashwords (who send it to Apple, Kobo, Barnes & Noble etc), Google PlayBooks etc. |
![]() |
![]() |
![]() |
#28 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,771
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Again, I disagree. Epub2 is old, deprecated, and can not work with many languages. Epub3 is the current specification, it can do everything epub2 can, plus more. It can be made backwards compatible for older epub2 only readers. And Epub3 is perfectly accepted at Amazon, works just find with kindlegen, etc. No where does Amazon say in recent documentation that epub2 is preferred that I could find.
So to future proof your work, I strongly recommend epub3 over epub2. |
![]() |
![]() |
![]() |
#29 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,778
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
![]() |
![]() |
![]() |
#30 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
“Deprecated” is an extremely strong term… and I would say inaccurate. It is still supported on all devices and apps…. Unless there is an ePub3 only device out there???
I agree that ePub3 (and later) is the future… but I would think ePub2 “backwards compatible" support will last for several decades at least. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
can epub file images be centered using Sigil | provlima | Workshop | 2 | 04-23-2022 08:34 AM |
Sigil can't open my Epub file | Siegfried | Sigil | 2 | 05-27-2020 06:36 AM |
error from Sigil when loading particular epub file | JohnNC | Sigil | 15 | 08-08-2017 04:52 AM |
Vexing error in EPUB file created in Sigil | pstjmack | ePub | 7 | 08-02-2016 12:47 PM |
sigil doesn't open epub file | cyberbaffled | Sigil | 8 | 11-10-2009 03:28 PM |