03-04-2022, 05:07 AM | #16 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Plugin Update(v0.1.6):
1. This plugin can now process and convert pixels to em values in the css. My thanks to gregorio and Doitsu for the suggestion.
2. The plugin will not convert px to em values if the pixel values are being used within the following class properties: width, height, max-width, max-height and border. Last edited by slowsmile; 03-09-2022 at 11:48 PM. |
03-06-2022, 10:23 PM | #17 |
Bibliophagist
Posts: 40,431
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I rain into one oddment. The epub I was editing had the following in the CSS:
Code:
img.full { display: block; width: 100%; object-fit: contain; height: 100vh; margin-left: auto; margin-right: auto; } Code:
ValueError: could not convert string to float: ' conta' Error: could not convert string to float: ' conta' |
Advert | |
|
03-07-2022, 12:11 AM | #18 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@DNSB . . . Thanks for reporting that problem. I've already had a look at the problem and I've put in a fix. I'm testing the fix now. New plugin release soon.
Last edited by slowsmile; 03-07-2022 at 12:16 AM. |
03-07-2022, 12:55 AM | #19 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@DNSB. . . Regarding your test epub problem -- if I ran my plugin on your test file, it would always fail. But if I first run the cssRemoveUnusedSelectors plugin and then run my plugin on your test file afterwards then it always converts pixels to ems without any problems and with no errors. So the problem with your test epub css seems to be something structural that is not related to my plugin. And if you run the cssRemoveUnusedSelectors plugin prior to running my plugin it always seems to completely remove that problem.
Last edited by slowsmile; 03-07-2022 at 01:08 AM. |
03-07-2022, 02:36 PM | #20 |
Bibliophagist
Posts: 40,431
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I went back to the epub I was editing when I noticed the problem. Ran CSSRemoveUnusedSelectors and the error was still present:
Spoiler:
I've attached a scrambled and simplified copy of the epub where I ran into this issue. |
Advert | |
|
03-07-2022, 07:37 PM | #21 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@DNSB...I can confirm the problem that you reported above although I'm not sure why the plugin didn't do its job -- especially since the original plugin had the correct update version on it. Anyway, your problem or mix-up was probably my error, so my humble apologies for that. I've already fixed that problem so I'll put out another version of this plugin(as v0.1.7) sometime today.
Last edited by slowsmile; 03-08-2022 at 06:21 AM. |
03-07-2022, 08:29 PM | #22 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Plugin Update(v0.1.7):
Fixed a problem with inches conversion that DNSB reported.
Last edited by slowsmile; 03-07-2022 at 10:17 PM. |
12-11-2023, 01:00 PM | #23 | |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
To protect your intellectual property from being stolen or copied by any external website.
These are python plugins for Sigil. There are lots of them that perform useful functions. Quote:
|
|
12-11-2023, 01:40 PM | #24 |
Grand Sorcerer
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That's a spammer, Kevin. I'm going to get rid of him/it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 02:25 AM |
Problem with my ScrambleEbook plugin and the Plugin Updater tool | jackie_w | Development | 14 | 01-19-2017 11:49 PM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 03:24 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 01:11 PM |