README.md 2.0 KB

001

书籍名称

Delphi Complete Works of H. Rider Haggard (Illustrated) (H. Rider Haggard) (Z-Library).epub

#

可以通过数据库查看翻译进度 您可以运行脚本:

python translate_epub.py

如果需要查看进度,可以使用SQLite命令:

sqlite3 translation_progress.db "SELECT * FROM translation_progress;"
-- 查看文件进度
SELECT file_path, 
       ROUND(processed_lines * 100.0 / total_lines, 2) as progress_percent,
       status,
       last_updated
FROM file_progress;

-- 查看翻译组进度
SELECT file_path,
       group_index,
       status,
       updated_at
FROM group_progress
ORDER BY file_path, group_index;

目前翻译最稳定的是 translate_epub_v4(单线程版本)V3.py 脚本

001:Delphi Complete Works of H. Rider Haggard (Illustrated). 德尔斐经典丛书·哈葛德作品全集(插图版) 003: 文件格式整理 004: Peter the Great His Life and World (The Romanovs 1) (Robert K. Massie) (Z-Library)

输出epub文件

# 进入书籍目录
cd mybook
# 先单独添加mimetype(必须无压缩)
zip -X0 ../book.epub mimetype
# 添加其他文件
zip -Xur ../book.epub *

手动创建EPUB(适合技术用户)​

​​基础结构​​:

mybook/
├── mimetype               (纯文本文件,内容固定为: `application/epub+zip`)
├── META-INF/
│   └── container.xml      (指向OPF文件的容器声明)
├── OEBPS/
│   ├── content.opf        (核心元数据文件)
│   ├── toc.ncx            (导航目录)
│   ├── chapter1.xhtml     (章节内容)
│   └── styles.css         (样式表)
└── images/                (存放图片)

2、​​关键文件示例​​:

    • ​​container.xml​​

      <?xml version="1.0"?>
      <container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
      <rootfiles>
      <rootfile full-path="OEBPS/content.opf" media-type="application/oebps-package+xml"/>
      </rootfiles>
      </container>