![]() |
#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 10:48 PM. |
![]() |
![]() |
![]() |
#17 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39,095
Karma: 153098470
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' |
![]() |
![]() |
![]() |
#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-06-2022 at 11:16 PM. |
![]() |
![]() |
![]() |
#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 12:08 AM. |
![]() |
![]() |
![]() |
#20 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39,095
Karma: 153098470
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. |
![]() |
![]() |
![]() |
#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 05:21 AM. |
![]() |
![]() |
![]() |
#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 09:17 PM. |
![]() |
![]() |
![]() |
#23 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,076
Karma: 5450184
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:
|
|
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,867
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That's a spammer, Kevin. I'm going to get rid of him/it.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 01:25 AM |
Problem with my ScrambleEbook plugin and the Plugin Updater tool | jackie_w | Development | 14 | 01-19-2017 10:49 PM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |