这个版本更新了什么#
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'soutput_mode),--format epub|web,--out DIR. It used to write both EPUBs and a web version inside the workspace whatever--epubor--output-modesaid. The old flags still work this release, with a warning.extract只写入工作区。 完整解压和 Markdown 文件 export, hundreds of files, are now--rawand--markdown.translate和pipeline在有单元翻译失败时以 3 退出;--allow-failureskeeps 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
nullis an error instead of being read as no settings. - 书籍自己的
skip_rules会叠加到继承来的规则上,正如它的config.yamlsays; they replaced them. Abase_urlthe book sets is kept overOLLAMA_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 上的英文更新说明。查看原页面