quarb-text-epub 0.32.0
“EPUB producer for the Quarb text level: the declared spine, each chapter through the HTML reading”
Package under two months oldRelease published within seven days
SHA-25682e057c9848ce2a4eef70e682e067c7a269c8b5f07bef143d10ab4f1f45783b2
MaleculeH(F)Md(Pa₂)
Evidence
1//! An EPUB built in-test: the container → package → spine chain,
2//! spine order over manifest order, linear="no" skipped …
2:61… efs
3//! resolved against the package directory (with percent-escapes),
4//! and the chapters' own headings carrying the outline.
5
6use std::io::Write;
7
8use quarb::QueryResult;
9use quarb_text_epub::parse;
10
11const CONTAINER: &str = r#"<?xml version="1.0"?>
12<container xmlns="urn:oasis:names:tc:opendoc …
53:19… p::write::SimpleFileOptions::default();
54 for (name, body) in [
55 ("META-INF/container.xml", CONTAINER),
56 ("OEBPS/conten …
60:7… ] {
61 z.start_file(name, o).unwrap();
62 z.write_all(body.as_bytes()).unwrap();
63 }
64 z.finish().unwrap();
⋯5 lines
70:24… model).unwrap() {
71 QueryResult::Values(vs) => vs.iter().map(|v| v.to_string()).collect(),
72 QueryResult::Nodes(ns) => ns.iter().map(|n| model.locator(*n)).collect(),
73 }
74}
75
76#[test]
77fn spine_order_and_chapter_outline() {
78 let m = parse(&epub()).unwrap();
79 // declared spine order, not manifest order; th …
No evidence locations were recorded for this file. Raw result