如何用 Calibre 转化为 PDF
简单的讲,直接在操作栏选择转换书籍,然后选择 PDF 即可,但是导出书籍的格式不一,最好还是有一些约定好的配置,兼顾阅读和打印,也可以避免版权问题。
需要准备的字体
- https://source.typekit.com/source-han-serif/cn/
- https://github.com/be5invis/Sarasa-Gothic
- https://github.com/laishulu/Sarasa-Term-SC-Nerd
善用 Brew:
# 思源宋体
brew install --cask font-noto-serif-cjk
brew install --cask font-source-han-serif-vf
# 更纱黑体
brew install --cask font-sarasa-gothic
# 更纱黑体等宽
brew tap laishulu/homebrew
brew install font-sarasa-nerd
# 源流明體
brew install --cask font-genryumin配置
- 转换书籍 → 输出格式 PDF
- 界面外观 → 字体 → 最小行高 → 180%
- 页面设置
- 输出配置文件 → 默认配置文件
- 输入配置文件 → 默认配置文件
- PDF 输出
- 纸张大小 → A4
- 衬线字体(正文) → 思源宋体(Noto Serif CJK SC / Source Han Serif SC VF)/ 源流明體(GenRyuMin2 TC)1
- 非衬线字体(标题/普通 UI) → 更纱黑体(Sarasa Gothic SC)
- 等宽字体(代码/表格/CLI) → 更纱黑体 Mono SC(Sarasa Mono SC)
- 默认字体大小 → 16 px
- 等宽字体大小 → 12 px
参考
- source-han-serif
- genryu-font
- Sarasa-Gothic
- LxgwWenKai
- https://lishouzhong.com/article/note/uncategoried/Calibre%20%E7%9B%B8%E5%85%B3/
- calibre有替代品吗 (bgm.tv) calibre
- 借助 Calibre 处理电子书的流程和技巧 - 少数派 (sspai.com)
- Use advanced book creation options in Pages - Apple Support
- Export InDesign documents to an EPUB format
- https://commandnotfound.cn/linux/1/519/mutool-%E547D%E4EE4
- https://github.com/qpdf/qpdf
- https://www.v2ex.com/t/913812
- https://ghostscript.com/releases/index.html