Skip to main content

Crate nexcore_publishing

Crate nexcore_publishing 

Source
Expand description

§nexcore-publishing

Book publishing pipeline for NexVigilant. Converts .docx manuscripts to publication-ready EPUB 3.0 and Kindle-compliant ebooks.

§Pipeline

Seven stages: INGEST → METADATA → STRUCTURE → STYLE → COVER → GENERATE → VALIDATE

.docx → DocxDocument → BookMetadata + Chapters → EPUB 3.0 → Validated .epub
                                                     ↓
                                              KDP Compliance Report

§Quick Start

use nexcore_publishing::pipeline::{PipelineConfig, PublishingTarget};

let config = PipelineConfig::new("manuscript.docx", "./output")
    .with_target(PublishingTarget::Kindle);

let result = nexcore_publishing::pipeline::run(&config)?;
println!("{}", result.to_report());

§Modules

  • docx — DOCX reader (ZIP + XML, no external deps)
  • epub — EPUB 3.0 writer with NCX backward compatibility
  • metadata — Dublin Core metadata with ISBN validation
  • chapter — Chapter extraction and heading detection
  • cover — Cover image validation (EPUB + KDP requirements)
  • kindle — KDP compliance checking
  • validate — EPUB structural validation
  • pipeline — Orchestrates all stages end-to-end

Modules§

chapter
Chapter extraction, ordering, and content representation.
cover
Cover image validation for EPUB and Kindle publishing.
docx
DOCX file reader.
epub
EPUB 3.0 writer.
error
Publishing error types.
kindle
Kindle/KDP compliance checking.
metadata
Book metadata following Dublin Core and EPUB/Kindle standards.
pipeline
Publishing pipeline orchestrator.
read
EPUB reader — extract content from existing .epub files.
validate
EPUB validation.