|
|
#241 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,941
Karma: 24259515
Join Date: Dec 2010
Device: Kindle PW2
|
EPUBCheck is intended for EPUB files. I've uploaded a new version that'll display a warning if you try to check non-EPUB books with it.
|
|
|
|
|
|
#242 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The attached ZIP file is a KePub. You can easily open it on any program that handles ePub by changing the extinction from .kepub to .epub. Last edited by JSWolf; 11-15-2026 at 04:01 PM. |
|
|
|
|
|
|
#243 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,941
Karma: 24259515
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
|
|
|
|
|
#244 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why did it close the editor when the extension was just .kepub? The thing is, the plugin creates .kepub. So that's what we have,
|
|
|
|
|
|
#245 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55,914
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
.kepub is what calibre uses internally with the driver changing the extension to .kepub.epub when sending to the device. Most programs use the file extension to determine the file type so epubcheck would need to be modified to see .kepub as being equivalent to .epub.
To me that is not something that I worry about since I seldom store kepub files in calibre uisng either calibre or an external program to convert to kepub before sending to the device. |
|
|
|
|
|
#246 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#247 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,228
Karma: 84699364
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Jon; epubcheck did not run on a kepub in the editor. Calibre does an implicit conversion to Epub when the editor is opened and it's that converted book is passed to epubcheck
|
|
|
|
|
|
#248 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
When doing the checking, the editor puts back in calibre's KePub code. That's why epubveri came up with 69 errors that are not in the KePub made by kepubveri. So epubcheck was checking KePub. It was checking using calibre's KePub code. As to why epubcheck closed the editor, I cannot say.
|
|
|
|
|
|
#249 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,941
Karma: 24259515
Join Date: Dec 2010
Device: Kindle PW2
|
|
|
|
|
|
|
#250 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It is ePub. It's just got a different file extension. So it should work. And yes, the editor is at fault for changing the code.
|
|
|
|
|
|
#251 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55,914
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Rather funny after all the times you complained about kepub and wanted to be able to edit without those kepub bits and bobs making your task harder.
|
|
|
|
|
|
#252 |
|
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Mar 2020
Device: Kindle PW3
|
When I try to run this plugin in the Ebook Editor, it shows an error message, and doesn't run:
Code:
NameError: name 'self' is not defined Code:
Traceback (most recent call last):
File "calibre_plugins.epub_check.main", line 166, in parse_epubcheck_json
data = json.loads(json_output)
File "/usr/lib/python3.14/json/__init__.py", line 352, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/usr/lib/python3.14/json/decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/json/decoder.py", line 363, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.epub_check.main", line 923, in ask_user
info = parse_epubcheck_json(stdout)
File "calibre_plugins.epub_check.main", line 169, in parse_epubcheck_json
self.gui,
^^^^
NameError: name 'self' is not defined
My guess is it might have something to do with the prompt that pops up asking to update EpubCheck, which I just haven't selected "Yes" to for a while, and it not popping up now, but thinking that it did? |
|
|
|
|
|
#253 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,941
Karma: 24259515
Join Date: Dec 2010
Device: Kindle PW2
|
I recently updated the plugin and introduced some bugs.
![]() Based on your error message, most likely Java isn't installed or wasn't found. If you don't get a version number, when you enter the following in a terminal Code:
java -version Code:
"java_path": "java", If it fixes your problem, I'll add it to the first post. Last edited by Doitsu; Today at 07:57 AM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| epubcheck plugin for Sigil | Doitsu | Plugins | 576 | 10-23-2026 08:56 AM |
| Open Metadata Editor from plugin | notbuu | Development | 5 | 10-05-2016 01:10 AM |
| Sample Plugin for the Editor | DiapDealer | Editor | 77 | 12-10-2014 08:16 AM |
| Editor plugin question | DiapDealer | Development | 2 | 07-28-2014 11:23 PM |
| Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 10:53 PM |