GithubHelp home page GithubHelp logo

jglamine / hpmor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yxoque/hpmor

5.0 2.0 0.0 32.05 MB

Markdown and LaTeX versions of Eliezer Yudkowsky's Harry Potter fan fiction.

Python 78.65% Shell 21.35%

hpmor's Introduction

HPMOR - Harry Potter and the Methods of Rationality

This repository is a mirror of Eliezer Yudkowsky's Harry Potter fanfiction, Harry Potter and the Methods of Rationality. It includes scripts and a makefile to download chapters from hpmor.com and convert them to a number of formats.

For the sake of simplicity, author notes before and after chapters have been removed.

Formats

Each format has its own sub-directory. Raw extracted chapters reside in html-dump. These are then converted to markdown, which is the intermediate format from which all others are built. These include an html web page and latex generated pdfs.

PDFs

PDFs can be built with a number of styles and page sizes. The hpotter style is designed to resemble the American editions of Harry Potter books. The classic style is a more traditional, no-frills format. For easy printing of physical books (ex. at lulu.com) 6x9 inch trade paperback paper size is used.

Requirements

  • Python 2.7
    • BeautifulSoup
    • Requests
  • Pandoc
  • xelatex
    • xelatex comes standard with most LaTeX distributions, including MiKTeX and TeX Live
  • GNU Make
    • make comes standard on Unix based systems. Windows users should install MinGW or Cygwin

Building

A makefile is included for building all formats. Useful build target include:

Check for and downloads new chapters.

make update

Download new chapters and builds all formats.

make all

Build pdf versions with LaTeX.

make pdf

Convert raw html chapters to markdown.

make markdown

A number of other targets are available, such as building individual pdfs and short pdfs to test the layout. For a complete list of build targets, see the makefile.

Contributing

There is still much formatting work to be done, and pull requests are welcome. The markdown and LaTeX sources have a number of formatting errors which are badly in need of correction. Other ways to help include tweaking the LaTeX styles and creating build targets for PDFs with different paper sizes and styles. For instance, one could create book style pdfs or multi-volume pdfs suitable for printing as physical books.

For more ways to help, see TODO.md.

hpmor's People

Contributors

ckinlund avatar jglamine avatar 75th avatar bluej100 avatar

Stargazers

David Martínez Moreno avatar Benjamin Levy avatar Mickaël Andrieu avatar  avatar Sergei Dolgov avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.