Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epub validation #79

Open
ArbeidW opened this issue May 15, 2023 · 2 comments
Open

epub validation #79

ArbeidW opened this issue May 15, 2023 · 2 comments

Comments

@ArbeidW
Copy link

ArbeidW commented May 15, 2023

epub не проходит валидацию в epubcheck, и из-за того невозможно добавить книгу в books.google.com.
Пока что как workaround выгружаю в fb2 и конвертирую онлайн.

Лог и скрин ниже

log

ERROR(PKG-006): ./Элиза Цванг - Никита.epub/./%D0%AD%D0%BB%D0%B8%D0%B7%D0%B0%20%D0%A6%D0%B2%D0%B0%D0%BD%D0%B3%20-%20%D0%9D%D0%B8%D0%BA%D0%B8%D1%82%D0%B0.epub(-1,-1): Mimetype file entry is missing or is not the first file in the archive.

Validating using EPUB version 3.3 rules.
ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/package.opf(8,47): Error while parsing file: found attribute "scheme", but no attributes allowed here

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/package.opf(9,14): Error while parsing file: element "metadata" incomplete; missing required element "dc:language"

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/package.opf(13,104): Error while parsing file: value of attribute "id" is invalid; must be an XML name without colons

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/package.opf(14,103): Error while parsing file: value of attribute "id" is invalid; must be an XML name without colons

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/package.opf(15,95): Error while parsing file: value of attribute "id" is invalid; must be an XML name without colons

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/package.opf(21,12): Error while parsing file: element "guide" incomplete; missing required element "reference"

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/package.opf(3,13): Error while parsing file: package dcterms:modified meta element must occur exactly once

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/package.opf(10,13): Error while parsing file: Exactly one manifest item must declare the "nav" property (number of "nav" items: 0).

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/toc.ncx(2,51): Error while parsing file: element "ncx" missing required attribute "version"

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/toc.ncx(3,11): Error while parsing file: element "head" incomplete; missing required element "meta"

ERROR(RSC-005): ./Элиза Цванг - Никита.epub/EPUB/toc.ncx(4,11): Error while parsing file: element "navMap" not allowed yet; missing required element "docTitle"

INFO(CSS-007): ./Элиза Цванг - Никита.epub/EPUB/stylesheet.css(5,3): Font-face reference "https://acb183c8-e1e5-423d-8ee6-046c008d081d.epubcheck.w3c.org/EPUB/Roboto-Regular.ttf" refers to non-standard font type "font/truetype".

INFO(CSS-007): ./Элиза Цванг - Никита.epub/EPUB/stylesheet.css(13,3): Font-face reference "https://acb183c8-e1e5-423d-8ee6-046c008d081d.epubcheck.w3c.org/EPUB/Roboto-Italic.ttf" refers to non-standard font type "font/truetype".

Check finished with errors

Messages: 0 fatals / 12 errors / 0 warnings / 2 infos

EPUBCheck completed

image
@OnlyFart
Copy link
Owner

А приложите сюда файл, который получается программой Elib2Ebook и валидный файл получаемый при конвертации из fb2

@ArbeidW
Copy link
Author

ArbeidW commented May 15, 2023

samples.zip

"валидный файл" тоже не супер, валидатор нашел одну ошибку, но ее пропускает, видимо не критичная.

log
 Validating using EPUB version 2.0.1 rules.

 ERROR(RSC-012): ./Элиза Цванг - Никита-2.epub/index_split_000.xhtml(12,110): Fragment identifier is not defined.

 Check finished with errors

 Messages: 0 fatals / 1 error / 0 warnings / 0 infos

 EPUBCheck completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants