A generic EPUB parser and generator library for Ruby that supports EPUB 2 and EPUB 3 specifications.
gepub is a Ruby library for parsing and generating EPUB files that supports both EPUB 2 and EPUB 3 specifications. It provides a programmatic way to create, modify, and read EPUB documents, handling metadata, content structure, and navigation.
Ruby developers working with digital publishing, ebook creation tools, or EPUB processing pipelines who need programmatic control over EPUB files.
It offers a native Ruby solution with comprehensive EPUB standard support, flexible APIs for both simple and complex use cases, and the ability to handle both parsing and generation within a single library.
a generic EPUB library for Ruby : supports EPUB 3
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Handles both EPUB 2 and EPUB 3 specifications comprehensively, including all metadata and structure, as highlighted in the README's key features.
Provides a single library for both parsing existing EPUB files and generating new ones from scratch, demonstrated in the synopsis with GEPUB::Book.
Offers a high-level Builder for simplicity and a low-level Book class for direct control, allowing customization for complex workflows as noted in FEATURES/PROBLEMS.
Generates simple navigation documents automatically if none are provided, reducing boilerplate code for basic EPUBs, as mentioned in the synopsis.
The README admits that GEPUB::Builder evaluates blocks inside the instance, which can be unintuitive and may require switching to GEPUB::Book for finer control.
Beyond basic examples, documentation is minimal; users often need to rely on source code or community issues for advanced usage, as the README is brief.
As a Ruby-specific gem, it's not cross-language compatible, limiting integration in polyglot environments or projects using other programming stacks.