页面顶部
已进入:阅读页
← 返回

动态2026-10-06GitHub作者:李笑来原文链接

tepub 发布 v0.5.0

TEPUB —— EPUB 电子书工具箱:翻译书籍、制作有声书,并导出成多种格式 发布了 v0.5.0。

这个版本更新了什么#

The command line, audited command by command against a real book.

⬆️ Upgrading#

  • export 会写入书籍旁边​,文件名由书名和语言组成 (book.zh-CN.bilingual.epub, book.zh-CN.epub, book.zh-CN.web.zip), and writes what its options say: --mode bilingual|translated|both (default the config's output_mode), --format epub|web, --out DIR. It used to write both EPUBs and a web version inside the workspace whatever --epub or --output-mode said. The old flags still work this release, with a warning.
  • extract 只写入工作区。 完整解压和 Markdown 文件 export, hundreds of files, are now --raw and --markdown.
  • translate 和 pipeline 在有单元翻译失败时以 3 退出​; --allow-failures keeps 0.
  • 只有已有的 .epub 才能单独运行 pipeline​:现在输入错误会 "No such command … Did you mean …?" instead of a missing-file error.
  • resume 现在叫 status;本版本仍支持使用 resume。
  • export 在无法插入翻译单元时以 3 退出​,并且 refuses to run while a translation holds the same workspace.
  • 配置文件必须包含设置​:不能只放一个值、一个列表或一个 explicit null is an error instead of being read as no settings.
  • 书籍自己的 skip_rules 会叠加到继承来的规则上​,正如它的 config.yaml says; they replaced them. A base_url the book sets is kept over OLLAMA_BASE_URL.

✨ Added#

  • tepub status BOOK:显示已翻译、失败和待处理的单元数,以及使用的引擎, glossary misses, outputs, the failed units and the next command.
  • translate --model、--provider 和 --dry-run;运行结束时显示摘要。
  • tepub config show [BOOK]:显示当前生效的设置,以及每项设置来自哪个文件 from, API keys never printed.
  • --version;命令后的参数也支持全局选项;帮助信息在 workflow order with an example.

🐛 Fixed#

  • 在 --work-dir 下也会应用书籍自己的 config.yaml;之前这里会被忽略。
  • -q 会隐藏进度条;没有终端时,进度会以普通文本行显示 instead of escape codes.
  • 没有终端时运行有声书,不会再自行选择声音。
  • format 和调试命令现在和其他命令一样接收书籍参数。
  • 配置中的 output_mode 现在接受 translated,和 --mode 一样。
  • 重新提取已编辑的书籍时,会重置那些文本……的单元翻译 changed, and keeps the rest; a translation was kept by position and exported as another paragraph's. Units a skip rule leaves out keep theirs.

(更新说明有删节,完整内容见下方链接。)

以上译自作者写在 GitHub 上的英文更新说明。查看原页面