02-11-2023, 10:07 PM | #106 |
Sigil Developer
Posts: 7,878
Karma: 5449552
Join Date: Nov 2009
Device: many
|
And I just noticed you had a similar error with this plugin earlier and DiapDealer gave you the solution then:
see https://www.mobileread.com/forums/sh...3&postcount=81 and the next post is your reply. Same issue I think. Perhaps look for the latest version of that C runtime. |
02-12-2023, 12:15 AM | #107 |
Bibliophagist
Posts: 37,939
Karma: 150333332
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I ran into an error trying to use CustomCleanerPlus on an epub 2.0 that has an .svg image file in the images directory:
Spoiler:
Deleting the svg image file allowed CustomCleanerPlus to run. However despite setting the Remove all hyphen class properties from the CSS, the webkit-hyphenate-limit-whatever lines survived. |
Advert | |
|
02-12-2023, 12:20 AM | #108 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@KevinH...Much thanks for that. I knew about the earlier occurrence of this same fault but I completely missed the solution by DiapDealer!
|
02-12-2023, 01:14 AM | #109 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@DNSB...I think that you are probably using that svg image as a compound image saved in Sigil's Images dir. That's also probably why it needs to be read as bytes whereas jpg images are read in binary. I'll look into that problem now.
Regarding the failure of the Remove all hyphen class properties from the CSS option to remove all your hyphen properties -- could you please give me a list of all the hyphen class property names that you wish to remove so I can add them for removal in the plugin code? TIA. Last edited by slowsmile; 02-12-2023 at 04:16 AM. |
02-12-2023, 07:19 AM | #110 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
@KevinH: Thanks for your investigative suggestions! My former problem had occurred on my old 32bit computer, but this time it's on my new 64bit. However, I installed the latest version of Visual C++, but the error message is still the same.
And: The python version is (and has always been) 32bit. Should I replace that by a 64bit version? Last edited by Leonatus; 02-12-2023 at 07:22 AM. |
Advert | |
|
02-12-2023, 09:47 AM | #111 |
Sigil Developer
Posts: 7,878
Karma: 5449552
Join Date: Nov 2009
Device: many
|
The versions of Windows, Sigil, and Python (64 vs 32 bits) should always match when trying to make calls across dlls. Other setups are just more error prone trying to link the correct dll.
And did you try adding the exact version that DiapDealer recommended? The problem is that it is an old runtime library that newer computers do not have installed by default anymore. Last edited by KevinH; 02-12-2023 at 10:11 AM. |
02-12-2023, 10:26 AM | #112 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
I downloaded and installed the latest 64bit version, following DiapDealer's hints.
|
02-12-2023, 04:37 PM | #113 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@Leonatus...In order to fix your problem using the Remove all hyphen class properties from the CSS option from my plugin, could you please send me a list of the hyphen class property names that were not removed when you ran my plugin? I can't fix that problem without that information.
|
02-12-2023, 05:48 PM | #114 | ||
Bibliophagist
Posts: 37,939
Karma: 150333332
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
-webkit-hyphenate-limit-after: 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-lines: 2; -webkit-hyphenate-character:"\2010"; |
||
02-12-2023, 08:46 PM | #115 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Update(v0.5.1):
Last edited by slowsmile; 02-12-2023 at 08:51 PM. |
02-13-2023, 12:19 AM | #116 |
Bibliophagist
Posts: 37,939
Karma: 150333332
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Tested v0.5.1 on several epubs and the only issue I ran into was after using calibre's ModifyePub plugin to add a cover image. This adds a line in the cover xhtml file reading:
Code:
<meta content="true" name="calibre:cover"/> Last edited by DNSB; 02-13-2023 at 12:22 AM. |
02-13-2023, 05:53 AM | #117 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
@slowsmile: I don't know if it still matters, but in the epubs I tested there were no hyphen classes in the css at all that would have been an object for removal..
|
02-13-2023, 05:56 AM | #118 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
And I downloaded V. 0.5.1, but the issue remains.
|
02-13-2023, 08:10 AM | #119 |
Sigil Developer
Posts: 7,878
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Are you using 64 bit version of python, 64 bit version of windows, and 64 bit version of tidy?
Are you sure you have all the runtime files and dlls that tidy needs on your new computer? |
02-13-2023, 09:40 AM | #120 |
Wizard
Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Well, as I said in #110, the python version is 32bit; that has worked without issues generally, although the OS being 64bit. And how to check the 64 or 32bit version of tidy, I ignore, and do not know if I have all the runtime files and dlls needed by tidy; I can only say that I installed the latest 64bit version of Visual C++.
|
|
Similar Threads | ||||
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 |