07-03-2023, 07:24 AM | #46 |
A Hairy Wizard
Posts: 3,151
Karma: 18843349
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
|
|
07-03-2023, 08:20 AM | #47 | |
Resident Curmudgeon
Posts: 75,598
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
vw/h does not work on the version of RMSDK on a Kobo and a lot of people on MR have one and do use ePub. So it's best to go with % and it's best that your sample code does as well. |
|
Advert | |
|
07-03-2023, 09:36 AM | #48 | |
Evangelist
Posts: 435
Karma: 7446396
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
Quote:
Code:
mm, in, cm, px, pt, %, em, rem, ex |
|
07-03-2023, 10:18 AM | #49 | |
A Hairy Wizard
Posts: 3,151
Karma: 18843349
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
|
Quote:
Unlike some here, Jon, I don't expect people to do things the way I do it...and then get all upset if they don't. I offer solutions...it is up to the reader to make sure my solution works for their situation before using it. Using % does NOT work all the time. I do NOT use % because it was creating a problem that was solved when I used vw/vh. I don't care about older software or devices. My software handles vh/vw just fine. Last edited by Turtle91; 07-03-2023 at 10:33 AM. |
|
07-03-2023, 10:25 AM | #50 |
Grand Sorcerer
Posts: 27,798
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
While we try to accommodate basic compatibility with conversion to Kindlebooks wherever possible, Sigil is firstly concerned with creating spec-compliant EPUBs. We have no interest in making Sigil EPUBs work in all of the various scenarios where Amazon chooses to ignore, avoid, and/or cherry-pick the EPUB spec in their Kindlebook publishing guidelines. Sigil is first and foremost an EPUB editor. Those using the EPUBs Sigil creates as Kindlebook source-code will ultimately be responsible for tweaking things to work as expected when converting to Kindlebook formats.
Last edited by DiapDealer; 07-03-2023 at 11:27 AM. |
Advert | |
|
07-03-2023, 11:09 AM | #51 | |
Bibliophagist
Posts: 38,714
Karma: 152906060
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
The usual issues with renderers doing their own damn thing. |
|
07-03-2023, 11:50 AM | #52 |
Bibliophagist
Posts: 38,714
Karma: 152906060
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Jon, what I will use in an ebook edited for my use and what I will use in an ebook intended for distribution are often very different. I suspect most people who are editing ebooks for distribution know the differences between their target software/devices.
|
07-03-2023, 01:25 PM | #53 | ||
Oracle Pig Keeper
Posts: 26
Karma: 5024
Join Date: Jun 2023
Device: Kindle Fire HD, Samsung Tab
|
With regard to using percent in the height and width declaration (e.g. 100%), I found this article rather informative on the subject.
Contained within are these nuggets of information: Quote:
Quote:
Thanks again for everyone's input on this. I'll keep researching this and update you with my findings. |
||
07-03-2023, 01:45 PM | #54 | |
Resident Curmudgeon
Posts: 75,598
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Last edited by JSWolf; 07-03-2023 at 01:51 PM. |
|
07-03-2023, 02:10 PM | #55 |
Oracle Pig Keeper
Posts: 26
Karma: 5024
Join Date: Jun 2023
Device: Kindle Fire HD, Samsung Tab
|
Why not? I'm curious what you're basing that statement on. Is it for technical reasons? If so, please share what you know on the subject.
Maybe on a related note, when I tried that code my image was smaller. Most HTML code guidelines do carry over to epubs, as far as I have read, but it's the areas that don't that seem poorly documented. I won't know what works best until I've tried all the various combinations. Must be nice to be a large publisher with a room filled with coders, each with specific knowledge about the device they specialize in... Early on in this adventure, I came across the Blitz CSS Reset for epub. They did all the work on tweaking settings for each device. Too bad the project ended in 2020. It would have been a nice toolbox for someone like me just getting started. |
07-03-2023, 02:16 PM | #56 |
Grand Sorcerer
Posts: 27,798
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Moderator Notice
Knock it off Jon (JSWolf). Your pet rants and insistence on things being done your way are not welcome here. |
07-04-2023, 03:09 PM | #57 | |
Evangelist
Posts: 435
Karma: 7446396
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
Quote:
Full-page images (like covers) using SVG don't have a lot of extra CSS blocks around them, and what your code shows should have 0 margin from the edge of the screen, but there can be CSS in the user-agent-stylesheet that is taking effect. It's tough to know if you can't inspect the element and figure out what is getting applied. |
|
09-12-2023, 01:10 PM | #58 |
Junior Member
Posts: 1
Karma: 10
Join Date: Sep 2023
Device: MacOS
|
Problem with ADE - Windows version
I can assume so. I tested my epub on ADE 4.5.12.85 for MacOS and version 4.5.12.112 on Windows 11.
On Mac and all other readers I tested, the setting for the cover image not to exceed the height of the viewport was ok, but in ADE on Windows the cover image appears cropped. Would this option of including the image in an SVG container be viable to solve this problem? |
09-12-2023, 01:51 PM | #59 |
Sigil Developer
Posts: 7,981
Karma: 5449552
Join Date: Nov 2009
Device: many
|
The ADE bug this thread is talking about has already had a workaround added to Sigil. Have you tried the svg code added by Sigil 2.0.1 as it should include the workaround.
|
12-28-2023, 01:00 PM | #60 | |
Member
Posts: 10
Karma: 10
Join Date: Dec 2023
Device: none
|
Quote:
Yesterday I reported in this thread that: "Many of my eBooks have cover photos that appear too large, too small (thumbnail), and/or are not positioned at the center of the page." A perfect cover page for me looks like this: 1. It is placed at the center 2. It fits the entire page I was trying to find a solution to fix that in Calibre to no avail, until I came across this thread. I replaced the height and width % with vh and vw respectively, and it seems to work now. The question is for how long? Will applying this fix cause me some problems later on? Say when ADE gets an update and fixes this bug? I'd appreciate your opinion. PS: I know nothing about code, and I'm a complete newbie. |
|
|
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 |