This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Usage ./epub2html.rb thing.epub thing.html | |
# | |
# ePub files are just XHTML with a ton of (often useless) stuff layered on top | |
# This script extracts the XHTML content and sticks it together | |
# It tries to preserve common metadata | |
# It tries to preserve images | |
# It converts Google Books' crap .gtxt_heading to <h1> |
NewerOlder