Git Product home page Git Product logo

shiji's Introduction

史记注译

文本来源

子夜星的注释本史记

制作方法

  • 制作带弹出式注释的epub电子书,适用于多看系统

    python3 generate.py 或者是 python3 generate.py -t duokan 在当前目录下生成目标文件shiji.epub

  • 制作带弹出式注释的mobi电子书,适用于原生的Kindle系统

    python3 generate.py -t kindle 在当前目录下生成目标文件shiji.epub。再使用Calibre将EPUB格式转化为MOBI格式。

需要用到的工具

python3, pandoc, calibre(用于将EPUB转换为MOBI)

版权申明

所有文本搜集自网络。

shiji's People

Contributors

catroll avatar da-liii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shiji's Issues

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/build/ch001.xhtml'

shiji [master] % python3 generate.py -t kindle
I will generate shiji.epub for Kindle
Converting the source file to Markdown format...
Generating raw epub file using pandoc...
Extracting the epub file...
Copying metadata...
Generating pop annotations...
Traceback (most recent call last):
  File "generate.py", line 205, in <module>
    replaceit(i, isMOBI)
  File "generate.py", line 86, in replaceit
    fin = open(filename,"r")
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/build/ch001.xhtml'
shiji [master] % ls /tmp/build/
EPUB  META-INF  cover.jpg  mimetype  stylesheet.css  title_page.xhtml

/tmp/build/ 目录下面确实没有 ch001.xhtml,咋回事啊 😂

UnicodeDecodeError

UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 8: illegal multibyte sequence

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.