newhouseb / zhread

chinese epub reader
MIT License
8 stars 1 forks source link

ben's hacky chinese ebook reader

disclaimer: i wrote this while binge watching ozark on netflix, so it's pretty much stream of conciousness. let this be proof that sometimes decent engineers can write miserable code :).

alt text

how to

  1. clone this repo
  2. acquire chinese epub books and put them in this folder
  3. run python -c "import SimpleHTTPServer; m = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map; m[''] = 'text/plain'; m.update(dict([(k, v + ';charset=UTF-8') for k, v in m.items()])); SimpleHTTPServer.test();"
  4. go to http://localhost:8000/#[epub filename renamed to ascii for best results].epub/0
  5. read some chinese (note, you may need to click through a few sections to get to meaningful material)

controls

credits

gotchas