veripublica/epubveri
关于
Pure-Rust EPUB validator — a fast, JVM-free, embeddable alternative to epubcheck
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- +3
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文epubveri
epubveri checks an EPUB file against the EPUB specification and tells you what is wrong with it and where. It does the same job as W3C's epubcheck and reports the same message IDs, so its output will look familiar if you know that tool. epubcheck needs Java. epubveri doesn't: it's a small program written in Rust, and it also runs in a web browser, where your book never leaves the page.
I built it for people who make ebooks, and for software that has to check them, such as editors and conversion pipelines, where shipping a Java runtime is a problem.
To check a book right now, try it in your browser. If you edit in Sigil or calibre, my plugins for Sigil and calibre run it for you. Otherwise download the program from the releases page (step by step) or install it with Rust:
cargo install epubveri
Then point it at a book:
$ epubveri -i book.epub
ERROR RSC-007: 'cover.jpg' points to 'OEBPS/cover.jpg', which is not in the publication [OEBPS/ch1.xhtml:6:4]
— 1 error(s), 0 warning(s): INVALID
It's also a Rust crate, and an npm package called @veripublica/epubveri-wasm.
epubveri never changes your book. Its sibling epubsana repairs the problems that have one right answer. If a retailer asks for epubcheck by name, run epubcheck as well: epubveri follows the specification where the two disagree, so passing one isn't the same as passing the other. The differences are listed in AGENTS.md.
If epubveri reports an error on a book you believe is fine, please open an issue. That's the report I most want.
The licence is AGPL-3.0. If that doesn't work for your product, a commercial licence is available: see LICENSING.md or write to [email protected]. I can't accept pull requests yet, and CONTRIBUTING.md explains why.
Options, exit codes, the API, limits, measurements and how to build it are all in AGENTS.md.
探索相关项目
加载中…