Git Product home page Git Product logo

paul-graham's Introduction

Essays: Paul Graham

中文版

After I crawled all the essays, I have done the following works:

  • Design book cover
  • Convert webpage encoding from cp1252 to utf-8 to prevent garbled characters
  • Added three chapters: Favorite, Hackers and Painters, Latest
  • Group essays alphabetically
  • Add a few articles that are not original written by the author but are on the author's website(Richard Hamming, Donald E. Knuth...)
  • Correct several punctuation mistakes (dashes and quotation marks) in the essays
  • Delete 2 broken links, remove 1 obsolete essay with too short content
  • Fix some unmatched tags in web pages to prevent text overflow on Kindles

If you are familiar with python and html, then you can add or remove essays/chapters easily! First, editing calibre.recipe or index.html, then follow the following steps:

1. Clone this repo and start a local web server

git clone https://github.com/evmn/Paul-Graham.git
cd Paul-Graham
python -m http.server 8000

2. Test recipe

Debug your recipe with the following command:

ebook-convert calibre.recipe .mobi --test -vv --debug-pipeline debug

3. Generate Your E-Book

You can choose from Calibre and command line.

Calibre

Open Calibre, right click Fetch news, then choose Add or edit a custom news source, click New recipe, then Switch to advanced mode and paste your recipe there, then click Save and choose Download this recipe. It takes less than a minute to make a Kindle books with local server.

You can also refer to this demo video in Telegram.

Command Line

ebook-convert "calibre.recipe" .mobi \
        --authors="Paul Graham" \
        --title="Essays of Paul Graham" \
        --pubdate="2021-10-24" \
        --output-profile=kindle_pw3 \
        --mobi-file-type=new \
        -vv

4. Read on Kindle/PC

Known Bugs

  • Footnotes link can't work properly

Resource

paul-graham's People

Contributors

evmn 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.