Skip to content

samnung/epubtoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# ncx2xhtml

Converter from EPUB 2 TOC (ncx) to EPUB 3 TOC (xhtml). Now supports reverse way.

Output is now readable (pretty printing output XML)

Dependecies

  • lxml (for python3)

Usage

Type into Terminal:

python3 epubtoc.py --from ncx --to xhtml toc.ncx nav.xhtml

Or

python3 epubtoc.py --from xhtml --to ncx nav.xhtml toc.ncx

TODO:

  • pretty print output xhtml ✓
  • reverse way (epub 3 to epub 2) ✓
  • adding landmarks from .opf file

About

Converter from EPUB 2 TOC (ncx) to EPUB 3 TOC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published