![]() |
#301 |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
|
![]() |
![]() |
![]() |
#302 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2016
Device: Kindle Paperwhite 2gen (fw 5.6.5)
|
But does work on linux?
once installed, it gave me this error: Error: Interpreter python3.4,python2.7 has no path set any suggestions? my machine has python 2.7 inside. i tried to install python 3.7 but nada |
![]() |
![]() |
![]() |
#303 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You have to go into Sigil's plugin preferences and tell it the python interpreter (must be 3.4+) to use. Auto should work, but you may have to Browse and select it manually.
|
![]() |
![]() |
![]() |
#304 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2016
Device: Kindle Paperwhite 2gen (fw 5.6.5)
|
|
![]() |
![]() |
![]() |
#305 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
This is a neat addition, so a belated thank you! I only now read the discussion.
|
![]() |
![]() |
![]() |
#306 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 683
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
I'm a linux user, on a windows laptop there is something wrong when I try to run epubcheck. It seems to be the same error no matter which epub, so I'm guessing it's something with the installation.
Code:
Status: failed Traceback (most recent call last): File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch self.exitcode = target_script.run(container) File "C:\Users\Patrik\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 228, in run arch = get_arch(java_path, os_encoding) File "C:\Users\Patrik\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 39, in get_arch _, stderr = jar_wrapper(*args) File "C:\Users\Patrik\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 49, in jar_wrapper process = Popen(args, stdout=PIPE, stderr=PIPE, shell=False) File "subprocess.py", line 775, in __init__ File "subprocess.py", line 1178, in _execute_child FileNotFoundError: [WinError 2] The system cannot find the file specified Error: [WinError 2] The system cannot find the file specified I think python is included in (windows)-sigil? I just went and downloaded and installed latest Python, no change. Ideas? |
![]() |
![]() |
![]() |
#307 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#308 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 683
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
|
![]() |
![]() |
![]() |
#309 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#310 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 683
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
Yes, that's a rational true statement.
But as an irrational human being, it's easy to conflate everything sigil-ish. ![]() |
![]() |
![]() |
![]() |
#311 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 270
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
I have just loaded this plugin to check an epub2 file because I haven't been able to get any response from http://validator.idpf.org/ - every attempt over the past few days has just timed out without any connection to the server. Is the online checker still in business?
The check with this plugin worked fine with 'No problems found'. Then I tried setting 'usage' to true and this produced a few errors (or suggestions) such as : USAGE(HTM-021): Content file doesn’t contain lang attribute. Col: 151: USAGE(ACC-013): Content file contains at least one inline style declaration. Can you point me to a reference where I can find the key to stuff like ACC-013 and HTM-021 ? |
![]() |
![]() |
![]() |
#312 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,842
Karma: 6120478
Join Date: Nov 2009
Device: many
|
They appear to me to be quite well defined. The first means neither your html tag nor the body tag has an lang="en" (or whatever language the page is in). Unless multiple languages are used, this is not an error or even a warning as the epub metadata defines the lang for the book.
The second says you are using inline styles, in other words a style defined in a style attribute of a html tag. This is not an error or warning as it is completely legal but many epub developers do not like them and they prefer standalone stylesheets for all styles. Neither of these matter in any way. |
![]() |
![]() |
![]() |
#313 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 270
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Hi Kevin - I realised from the first post in this thread that the info revealed by setting 'usage' to true was advisory for those seeking perfection and not critical. I was hoping for a quick lead to the source documentation which listed all these 'events' like CSS-024.
Quote:
<html xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml"> generated by export from LO Writer w. writer2epub a couple of years' ago. Should I replace "en-GB" with a plain "en"? I am happy to learn that inline styles are inoffensive. |
|
![]() |
![]() |
![]() |
#314 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
There's two possible items, lang and xml:lang. Epubcheck only seems to like one of them.
|
![]() |
![]() |
![]() |
#315 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,842
Karma: 6120478
Join Date: Nov 2009
Device: many
|
The current epub spec looks for just the lang attribute not xml::lang and if both are present lang takes precedence.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] PunctuationSmarten Sigil plugin | DiapDealer | Plugins | 143 | 07-30-2025 06:58 AM |
[Plugin] KindleImport Sigil plugin | DiapDealer | Plugins | 187 | 07-04-2022 10:11 AM |
Sigil Plugin Index | Thasaidon | Plugins | 0 | 10-04-2014 07:41 AM |
FC and Sigil 0.5.3 ePUBcheck failure | Hitch | Sigil | 32 | 04-17-2012 02:56 AM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 09:53 PM |