I have problems to read this format by atril. Atril crashes with a segmentation fault:

/tmp/atril-65485/darktable_user_manual_en-4.4.epubCR7961/OEBPS/toc.ncx:10: parser error : Opening and ending tag mismatch: meta line 5 and head
 </head>
        ^
/tmp/atril-65485/darktable_user_manual_en-4.4.epubCR7961/OEBPS/toc.ncx:2245: parser error : Opening and ending tag mismatch: head line 4 and ncx
</ncx>
     ^
/tmp/atril-65485/darktable_user_manual_en-4.4.epubCR7961/OEBPS/toc.ncx:2246: parser error : Premature end of data in tag ncx line 2

^
[1] 65485 segmentation fault atril darktable_user_manual_en-4.4.epub


So I checked this EPUB by 'epubcheck', which doesn't look very nice: epubcheck darktable_user_manual_en-4.4.epub 2>& 1|grep -E "^(FATAL|ERROR)" ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/content.opf(23,44): Error while parsing file: character content of element "meta" invalid; must be a string with length at least 1 (actual length was 0) ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/toc.ncx(6,53): Error while parsing file: element "meta" not allowed here; expected the element end-tag ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/toc.ncx(7,46): Error while parsing file: element "meta" not allowed here; expected the element end-tag ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/toc.ncx(8,55): Error while parsing file: element "meta" not allowed here; expected the element end-tag ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/toc.ncx(9,54): Error while parsing file: element "meta" not allowed here; expected the element end-tag FATAL(RSC-016): darktable_user_manual_en-4.4.epub/OEBPS/toc.ncx(10,5): Fatal Error while parsing file: The element type "meta" must be terminated by the matching end-tag "</meta>". ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/toc.ncx(-1,-1): Error while parsing file: The element type "meta" must be terminated by the matching end-tag "</meta>". ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/toc.xhtml(6,10): Error while parsing file: element "title" not allowed here; expected the element end-tag ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/toc.xhtml(11,59): Error while parsing file: element "link" not allowed here; expected the element end-tag FATAL(RSC-016): darktable_user_manual_en-4.4.epub/OEBPS/toc.xhtml(13,4): Fatal Error while parsing file: The element type "meta" must be terminated by the matching end-tag "</meta>". ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/toc.xhtml(-1,-1): Error while parsing file: The element type "meta" must be terminated by the matching end-tag "</meta>". ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/index.html(10,59): Error while parsing file: element "link" not allowed here; expected the element end-tag FATAL(RSC-016): darktable_user_manual_en-4.4.epub/OEBPS/index.html(12,3): Fatal Error while parsing file: The element type "meta" must be terminated by the matching end-tag "</meta>". ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/index.html(-1,-1): Error while parsing file: The element type "meta" must be terminated by the matching end-tag "</meta>". ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/front-cover.html(3,30): Error while parsing file: value of attribute "xml:lang" is invalid; must be an RFC 3066 language identifier or must be equal to "" ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/front-cover.html(4,11): Error while parsing file: element "body" not allowed yet; missing required element "head" ERROR(CSS-008): darktable_user_manual_en-4.4.epub/OEBPS/style.css(146,3): An error occurred while parsing the CSS: Token "@top-left-corner" not allowed here, expecting a property name. ERROR(CSS-008): darktable_user_manual_en-4.4.epub/OEBPS/style.css(165,22): An error occurred while parsing the CSS: Token "}" not allowed here. ERROR(CSS-008): darktable_user_manual_en-4.4.epub/OEBPS/style.css(212,3): An error occurred while parsing the CSS: Token "@top-left-corner" not allowed here, expecting a property name. ERROR(CSS-008): darktable_user_manual_en-4.4.epub/OEBPS/style.css(231,20): An error occurred while parsing the CSS: Token "}" not allowed here. FATAL(RSC-016): darktable_user_manual_en-4.4.epub/OEBPS/module-reference/utility-modules/shared/metadata-editor.html(25,129): Fatal Error while parsing file: Attribute name "unchanged" associated with an element type "leave" must be followed by the ' = ' character. ERROR(RSC-005): darktable_user_manual_en-4.4.epub/OEBPS/module-reference/utility-modules/shared/metadata-editor.html(-1,-1): Error while parsing file: Attribute name "unchanged" associated with an element type "leave" must be followed by the ' = ' character. ERROR(RSC-008): darktable_user_manual_en-4.4.epub/OEBPS/style.css(137,5): Referenced resource "OEBPS/darktable-logo.svg" is not declared in the OPF manifest. ERROR(RSC-007): darktable_user_manual_en-4.4.epub/OEBPS/lighttable/digital-asset-management/thumbnails.html(31,343): Referenced resource "special-topics/memory.md" could not be found in the EPUB. ERROR(RSC-007): darktable_user_manual_en-4.4.epub/OEBPS/lighttable/digital-asset-management/thumbnails.html(52,267): Referenced resource "special-topics/memory.md" could not be found in the EPUB. ERROR(RSC-007): darktable_user_manual_en-4.4.epub/OEBPS/module-reference/processing-modules/vignetting.html(49,398): Referenced resource "OEBPS/module-reference/processing-modules/dithering.md" could not be found in the EPUB. ERROR(RSC-012): darktable_user_manual_en-4.4.epub/OEBPS/module-reference/utility-modules/shared/collection-filters.html(29,96): Fragment identifier is not defined. ERROR(RSC-012): darktable_user_manual_en-4.4.epub/OEBPS/preferences-settings/miscellaneous.html(42,386): Fragment identifier is not defined.

(There are many WARNINGS too.)


Is there a way to make the EPUB format better readable (parsable)?
I don't know which tool is used to create the EPUB.
____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org

Reply via email to