05-26-2023, 02:43 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2023
Device: none
|
A bug in 1.9.30?
Hi, everybody,
It is Jaco, a newbie here. After to install Sigil all was right. But I found a problem. If I include a cover using Tools/to add cover to a epub3, it makes a code that doesn't work with Adobe Digital Editions neither other visors. Cover dissapear or it shows tiny. I spent 2 days working and asking in Telegram groups of CSS/HTML. Nobody undestood the problem, nobody had a solution. Finally I get the solution here, https://ebookflightdeck.com/handbook/coverimage I hope it helps to another people. Best, |
05-27-2023, 04:01 PM | #2 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Using add cover adds an svg wrapped cover image to the epub3, adds the correct cover semantics, add the proper epub3 manifest properties. It passes all epubcheck cover related checks.
My guess is your ADE version is quite old and it probably does not support svg which is a required part of the epub3/html5 spec. Please test with a known epub3 compliant reader such as Thorium. So no bug. Just an out of date reader that does not properly support svg image scaling. |
05-27-2023, 07:08 PM | #3 | |
Imperfect Perfectionist
Posts: 464
Karma: 724664
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
style="height:98vh;" (the "98" can be any percentage) into the SVG-code forces ADE to render it correctly, and doesn't seem to bother other readers. It only works by putting it directly in the SVG-code. Sample: <svg version="1.1" xmlns="http://www.w3.org/2000/svg" style="height:98vh;" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 1650 2200" preserveAspectRatio="xMidYMid meet"> <image width="1650" height="2200" xlink:href="../Images/hawthorne-det_roede_bogstav.jpg"/> (the code may not be "state of THE art", just state of MY art ) Regards Kim |
|
05-27-2023, 07:23 PM | #4 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
@elibrarian,
Interesting! Thanks for that info. I will try adding that into the next version of Sigil if there is not a better solution. I do wonder if changing from 100% to 100vw for width and 100vh for height (or your 98, but without the style) would effectively do the same thing for all chrome based and webkit based engines? Code:
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100vw" height="100vh" viewBox="0 0 1650 2200" preserveAspectRatio="xMidYMid meet"> <image width="1650" height="2200" xlink:href="../Images/hawthorne-det_roede_bogstav.jpg"/> Last edited by KevinH; 05-27-2023 at 07:32 PM. |
05-27-2023, 07:40 PM | #5 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
If so, then ade 1 and 2 differ from ade 4 and up! So your svg style may be the only way to create a solution that works generally.
Thanks! Last edited by KevinH; 05-27-2023 at 07:44 PM. |
05-27-2023, 09:03 PM | #6 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Hey, welcome to MobileRead!
Quote:
See my post from: I even included many images showing the different possibilities. Quote:
I haven't upgraded my ADE in a while, so I'm on:
which is from around February 2021... and the SVG wrapper code works perfectly fine as it always has. Last edited by Tex2002ans; 05-27-2023 at 09:07 PM. |
||
05-27-2023, 09:23 PM | #7 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hmm ... perhaps the ADE bug is platform specific?
|
05-28-2023, 03:21 AM | #8 |
Imperfect Perfectionist
Posts: 464
Karma: 724664
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Maybe. I'm on Windows 11, but it was there in Windows 10 too.
It's been a long time since I tried out Linux for some years and my last skirmish with Apple/ Mac was in prehistoric times (Apple II or something). I seem to remember that other people has reported the problem to Adobe, but nothing happens. Regards, Kim |
05-28-2023, 04:36 AM | #9 | |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-28-2023, 04:40 AM | #10 | |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
RMSDK as used by Kobo is too old to woth with hv or vw. Only % is going to work. So a change to 100% is what's needed tow work properly. Last edited by JSWolf; 05-28-2023 at 04:43 AM. |
|
05-28-2023, 07:50 AM | #11 |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Not necessarily.
I had issues with full screen images ‘bleeding’ into a 2nd page when I used 100%. When I switched to vw/vh it cleared it right up. As with anything, check your target device(s) and see which one you want to use. |
05-28-2023, 08:15 AM | #12 | |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Quote:
|
|
05-28-2023, 11:00 AM | #13 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
If anyone has Adobe Digital Editions versions on their machines could they please test the use of "100%" for width and height in an svg cover versus "100vw" for width and "100vh" for height (or 98 or 95 or ...). And report back.
Also please test elibrarian's inline style workaround if you find a version of ADE that has the bug and report that back also. That way we can make a more informed decision on how best to workaround this ADE bug for use in the next version of Sigil. Thanks KevinH From my own machine: ADE Version 4.5.11.187606 for Mac OS - does NOT exhibit this bug. It works just fine with either "100%" for svg width/height or "100vw" and "100vh" for width and height respectively. But this is the only version of ADE I was able to find directly from Adobe for download to my Mac. Last edited by KevinH; 05-28-2023 at 11:13 AM. |
05-28-2023, 12:17 PM | #14 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(I used this MR book for the test.) Cover code: Spoiler:
However, the cover of this epub3 MR book was not correctly rendered in ADE 4.5.11. (It was rendered fine in ADE 2.0.1.) Cover code: Spoiler:
After implementing the change recommended by elibrarian, the cover was correctly rendered. (I used height:100vh; instead of height:98vh;) Spoiler:
|
|
05-28-2023, 12:33 PM | #15 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
@Doitsu,
So the exact same version of ADE 4.5.11.187303 on Windows works fine for epub2 with 100% but not for epub3? Or did I misread and you tested with a slightly different build number? Code:
<div style="height:100vh; text-align: center; padding: 0pt; margin: 0pt;"> <svg xmlns="http://www.w3.org/2000/svg" height="100%" width="100%" version="1.1" preserveAspectRatio="xMidYMid meet" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1080 1430"><image width="1080" xlink:href="../Images/cover.jpg" height="1430"/></svg> </div> Sigil does have epub version specific code for the cover so adding that workaround to the epub3 version is easily doable. Last edited by KevinH; 05-28-2023 at 12:46 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible bug? | RbnJrg | Sigil | 142 | 09-17-2021 06:51 PM |
[BUG] - M96 out of memory - [BUG] | Alf77 | Onyx Boox | 5 | 02-05-2015 11:47 AM |
DR800 Help, I've got a bug!! A bug on my screen!! | Franky | iRex | 4 | 06-21-2011 11:45 AM |
Embedded font bug or CSS bug in ADE | JSWolf | ePub | 10 | 06-11-2011 02:34 PM |
PRS-505 bug or eBookLib bug? | porkupan | Sony Reader | 3 | 10-07-2007 10:44 PM |