Skip to content

Convert the HPMOR source data into a book-friendly format.

Notifications You must be signed in to change notification settings

coriolinus/hpmor-book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HPMOR Book

Harry Potter and the Methods of Rationality is a very good book. Unfortunately, its presentation leaves something to be desired: its styling and presentation feels very much like it came straight from fanfiction.net, which isn't ideal when what you want is a nice ebook.

This project attempts to build a better ebook, with authors' notes, omake, and other distractions from the actual text moved into appendices.

Usage

  1. Fetch the HPMOR source data. A useful command:

    wget -nc -nH -w1 --random-wait -P book-src --cut-dirs=2 -r -l0 -k -m -Dwww.hpmor.com -Ichapter --adjust-extension http://www.hpmor.com/chapter/1
  2. Run the converter:

    src/hpmor.py
  3. If the output is not as desired, it's possible to adjust config.toml manually, but a better bet is often to use interactive mode.

    src/hpmor.py -i

    If the configuration is fully specified, but wrong, it's possible to interactively redo it:

    src/hpmor.py -iR
  4. When all is done, add target/000_toc.html to Calibre, which will automatically import it. Use Calibre to convert into the desired ebook format.

About

Convert the HPMOR source data into a book-friendly format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages