|
2 hafta önce | |
---|---|---|
001 | 2 hafta önce | |
003 | 1 ay önce | |
004 | 1 ay önce | |
code | 1 ay önce | |
.DS_Store | 2 hafta önce | |
.gitignore | 1 ay önce | |
CLAUDE.md | 1 ay önce | |
CLAUDE_CN.md | 1 ay önce | |
README.md | 2 hafta önce | |
push.sh | 1 ay önce |
书籍名称
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;
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)
# 进入书籍目录
cd mybook
# 先单独添加mimetype(必须无压缩)
zip -X0 ../book.epub mimetype
# 添加其他文件
zip -Xur ../book.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>