Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 913 Bytes

README.md

File metadata and controls

38 lines (33 loc) · 913 Bytes

EPUB Implementation in Rust (WIP)

https://www.w3.org/TR/epub-33/

  • Stable
  • Base Header and Text Flow
  • ToC
  • Deflated Zip
  • Stored for valid decrypted files
  • UUID for XHTML's items
  • UUID for resources
  • UUID for paths
  • Validade data entries
  • Optional META_INF (encryption.xml, metadata.xml, manifest.xml, ...)
  • container.xml access
  • Images, Checkbox and List's
  • Custom Fonts

Example

let mut epub = EPUB::new(Info {
  title: String::from("A Nice Title"),
  description: String::from("A some description..."),
  publisher: String::from("..."),
  author: String::from("..."),
  toc_title: String::from("Table of Contents"),
  lang: String::from("en"),
  fonts: vec![String::from("Roboto")],
  css: None,
  version: 3
}, vec![macro_for_this_please![
  "Title",
  "A some content...",
]]);

epub.run();