06-06-2019, 06:55 AM | #16 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
No. I still don't know how to fix this. However, you could try the Calibre version by thiago.eec.
If the Calibre version works on your Mac, I might be able to update the code for Macs. |
09-10-2019, 01:38 PM | #17 |
Junior Member
Posts: 4
Karma: 10
Join Date: Dec 2018
Device: iBooks
|
Error: Using unsupported cfi feature
We've been using this plugin for quite a while now, and we're suddenly getting an error!
I cannot seem to track down why. We've tried using older / current versions of sigil, ace is installed at 1.1.1, we're running windows 10. It also seems to not be related to our epub, as we're able to open sigil and have a new file created, save it, run, and we still get the error. We've also verified the error occurs on several machines. Is anyone else getting this error now? Status: failed Running ACE ... please wait. Traceback (most recent call last): File "C:\Users\*redacted*\AppData\Local\sigil-ebook\sigil\plugins\ACE\plugin.py", line 155, in run res = cfi_convert(bk, real_epubcfi) File "C:\Users\*redacted*\AppData\Local\sigil-ebook\sigil\plugins\ACE\cficonvert.py", line 37, in cfi_convert raise CFIConvertException("Error: Using unsupported cfi feature") cficonvert.CFIConvertException: Error: Using unsupported cfi feature During handling of the above exception, another exception occurred: 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\*redacted*\AppData\Local\sigil-ebook\sigil\plugins\ACE\plugin.py", line 159, in run print(str(e)) NameError: name 'e' is not defined Error: name 'e' is not defined |
Advert | |
|
09-10-2019, 02:18 PM | #18 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
I'll investigate and try to update the plugin. |
|
09-11-2019, 09:07 AM | #19 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
For example, ACE will flag the following tag: Code:
<body epub:type="chapter" id="chapter001"> Last edited by Doitsu; 09-11-2019 at 09:58 AM. |
|
09-12-2019, 03:59 PM | #20 |
Junior Member
Posts: 4
Karma: 10
Join Date: Dec 2018
Device: iBooks
|
All fixed up!
Thanks so much for your quick response, we've tested and this seems to have resolved the issue!
|
Advert | |
|
12-13-2020, 03:13 AM | #21 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2017
Device: Android Tablet
|
Hi,
I have been trying to use the ACE plugin with Sigil, and keep running into problems. I'm hoping someone can help me. I have used ACE with Calibre and have never had a problem. When trying to install in Sigil, I followed the instructions to use the command: $ npm install -g @daisy/ace. I kept getting the message: '$' is not recognized as an internal or external command. Then I realized I installed the Calibre plugin without the $, so ran it without, and it installed no problem. Anybody know why ACE says to use $ yet I get '$' is not recognized as a command? (My apologies if this is dumb question, I am a beginner.) Next I attempted to run it through Sigil and received an error message: 'ace' is not recognized as an internal or external command, operable program or batch file. I went back to the command window and tried to run some commands suggested. Had no problem when asking for help, and the version. (As long as I left out the $). When I ran: ace ~C:/Books/Looking for Clara - Simona Grossi.epub error: Couldn’t find EPUB file info: Closing logs. Re-run Ace using the --verbose option to enable full debug logging. When I ran: ace --verbose I got: error: Input required Ace by DAISY, an Accessibility Checker for EPUB Usage: ace [options] <input> Options: -h, --help output usage information -v, --version output the version number -o, --outdir <path> save final reports to the specified directory -t, --tempdir <path> specify a custom directory to store the temporary reports -f, --force override any existing output file or directory --subdir output reports to a sub-directory named after the input EPUB -V, --verbose display verbose output -s, --silent do not display any output -l, --lang <language> language code for localized messages (e.g. "fr"), default is "en" Examples $ ace -o out ~/Documents/book.epub I even tried several variations of the: ace ~/C:/Books/Looking for Clara - Simona Grossi.epub. I even copied the path from my file explorer and tried that: ~C:\Books\Looking for Clara - Simona Grossi.epub. I get the the same error every time. Please, I am lost and don't know what to do. It's probably something basic that I did wrong, I am a beginner. |
12-13-2020, 03:45 AM | #22 | ||
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
($ is the default Linux/macOS terminal command line prompt.) Quote:
If you want to test whether ace works, you'll need to enclose path names in double quotation marks and omit the tilde. Code:
ace "C:/Books/Looking for Clara - Simona Grossi.epub" (You should see some messages with curly braces, but that's by design.) If the plugin doesn't work, please copy and paste the complete plugin output. Also please provide the following information: 1. Operating system 2. Sigil version Last edited by Doitsu; 12-13-2020 at 03:53 AM. |
||
12-13-2020, 10:23 PM | #23 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2017
Device: Android Tablet
|
Hi,
I'm pleased to say, I have figured everything out. I now have ACE running successfully on both terminal and Sigil. I've also figured out the "$" meant to run the code in the terminal, (not to run the $ as code). The rest of my problem had to do with the space in my epub's file location. I am very happy to have the plugin working! Thanks for an awesome plugin. |
12-29-2020, 02:15 AM | #24 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2017
Device: Android Tablet
|
I wonder if anyone else has experienced the same issue as me. After running Access-Aide on an epub 2 and then running ACE, ACE consistently flags the same 4 errors:
Code:
content.opf Serious Publications must declare the 'schema:accessMode' metadata content.opf Moderate Publications must declare the 'schema:accessModeSufficient' metadata content.opf Serious Publications must declare the 'schema:accessibilityFeature' metadata content.opf Serious Publications must declare the 'schema:accessibilitySummary’ metadata Code:
<meta content="This publication conforms to WCAG 2.0 AA." name="schema:accessibilitySummary"/> <meta content="textual" name="schema:accessMode"/> <meta content="textual" name="schema:accessModeSufficient"/> <meta content="structuralNavigation" name="schema:accessibilityFeature"/> Is this normal? |
12-29-2020, 04:39 AM | #25 | |
Imperfect Perfectionist
Posts: 542
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
Regards, Kim |
|
12-29-2020, 05:12 PM | #26 |
Sigil Developer
Posts: 8,158
Karma: 5450818
Join Date: Nov 2009
Device: many
|
In the daisy/ace epub-utils/epub-parser.js it only extracts epub3 style meta tags (those using the "property" attribute) and dc: tags, but has no code to extract a epub2 style meta tag with name and content attributes.
Thus you get that false error message. You can choose to ignore that false error but if you truly care about accessibility then opting for an epub3 is probably your best path forward. That said a bug report against daisy-ace to support epub2 metadata meta tags in epub2 OPF couldn't hurt. |
09-14-2021, 12:38 AM | #27 |
Wizard
Posts: 1,571
Karma: 11380098
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
First, thanks for the plugin!
I just today installed the Ace by Daisy app and the plugin. However, running my first ePUB through it came up with ONE single, solitary, but supposedly serious error, the gist of which is that I need to: Add a 'schema:accessibilityHazard' metadata property to the Package Document FWIW, the epub is fiction, primarily text, there are no flashing hazards or audio hazards or anything I can think of that could be hazardous about it! There are: a cover image (JPG), a title page image (PNG), a author photo (JPG) and one small vector image (SVG). There is no audio, video, or any kind of script calling such, no links to external content, no embedded fonts, it's a very simple little epub of a 150 page novel. I'm old and not so technical, could someone tell me how to add this to my epub with the Sigil metadata editor? Because if it's a problem on this epub, it's going to crop up in any other epub I make. Or if it's not doable in the Sigil metadata editor, does anyone know what I should put in the .opf directly? It sounds like I would need to declare a value of "none" for the 'schema:accessibilityHazard' metadata property. EDIT: Can I just stick something like this in the .opf? Code:
<meta property="schema:accessibilityHazard">none</meta> Last edited by graycyn; 09-14-2021 at 01:20 AM. |
09-14-2021, 11:08 AM | #28 |
Sigil Developer
Posts: 8,158
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Based on the Daisy docs shown here:
http://kb.daisy.org/publishing/docs/...ityHazard.html that should be absolutely correct. I am just not sure why it is even needed if there is no audio or video resources. Have you added the metadata that tells the user that this is a text only epub: ie: schema:accessMode schema:accessModeSufficient set to be "textual". See: http://kb.daisy.org/publishing/docs/...ccessMode.html http://kb.daisy.org/publishing/docs/...ufficient.html |
09-14-2021, 04:58 PM | #29 |
Wizard
Posts: 1,571
Karma: 11380098
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
Thanks, Kevin!
I had run my epub through Access-Aide plugin prior, this is what was already in the metadata when I ran it through the Ace by Daisy app: Code:
<meta property="schema:accessibilitySummary">This publication conforms to WCAG 2.0 AA.</meta> <meta property="schema:accessMode">textual</meta> <meta property="schema:accessMode">visual</meta> <meta property="schema:accessModeSufficient">textual</meta> <meta property="schema:accessibilityFeature">structuralNavigation</meta> Code:
<meta property="schema:accessModeSufficient">textual,visual</meta> There's NOTHING in the epub that wasn't put there by me, Sigil, Access-Aide or the Pagelist plugin. The only things I can remotely imagine triggering this are the non-transparent title page image (a shocker in night mode, but transparency creates black on black in most apps) and I do have a few Spanish words marked up with: Code:
xml:lang="es" Here's what they had: Code:
<meta property="schema:accessibilityHazard">noFlashingHazard</meta> <meta property="schema:accessibilityHazard">noSoundHazard</meta> <meta property="schema:accessibilityHazard">noMotionSimulationHazard</meta> Question, should I go with the value as none which appeared to satisfy ACE by Daisy, or copy what HC did? I'm a hobbyist, I have no idea what all the accessibility requirements are, I'd just like to cover the bare-bones basics and have my book pass the check. |
09-14-2021, 05:34 PM | #30 | |
Wizard
Posts: 1,571
Karma: 11380098
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
I also found this page where they write it slightly differently:
Code:
<meta property="schema:accessibilityHazard">noFlashing</meta> <meta property="schema:accessibilityHazard">noSound</meta> <meta property="schema:accessibilityHazard">noMotionSimulation</meta> Code:
<meta property="schema:accessibilityHazard">none</meta> From https://www.w3.org/wiki/WebSchemas/Accessibility it says: Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
URL Checker plugin | Doitsu | Plugins | 20 | 04-18-2021 04:13 PM |
[Plugin] CSSLint - Simple CSSLint wrapper | Doitsu | Plugins | 1 | 03-23-2016 07:51 PM |
epub checker | drMerry | Development | 3 | 06-17-2011 03:04 PM |
Epub Revision - accessibility support | Nate the great | ePub | 1 | 02-23-2011 04:47 AM |
ePub to Mobi checker | MarcusStringer | ePub | 6 | 07-10-2010 02:34 AM |