Kaynağa Gözat

补充说明

max 2 hafta önce
ebeveyn
işleme
938fa87f9b
3 değiştirilmiş dosya ile 49 ekleme ve 4 silme
  1. BIN
      .DS_Store
  2. 6 1
      001/META-INF/container.xml
  3. 43 3
      README.md

BIN
.DS_Store


+ 6 - 1
001/META-INF/container.xml

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

+ 43 - 3
README.md

@@ -4,7 +4,7 @@
 
 Delphi Complete Works of H. Rider Haggard (Illustrated) (H. Rider Haggard) (Z-Library).epub
 
-# 
+#
 
 可以通过数据库查看翻译进度
 您可以运行脚本:
@@ -38,7 +38,47 @@ 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)
+004: Peter the Great His Life and World (The Romanovs 1) (Robert K. Massie) (Z-Library)
+
+## 输出epub文件
+
+```bash
+# 进入书籍目录
+cd mybook
+# 先单独添加mimetype(必须无压缩)
+zip -X0 ../book.epub mimetype
+# 添加其他文件
+zip -Xur ../book.epub *
+```
+
+### 手动创建EPUB(适合技术用户)​
+
+​​基础结构​​:
+
+```tree
+mybook/
+├── mimetype               (纯文本文件,内容固定为: `application/epub+zip`)
+├── META-INF/
+│   └── container.xml      (指向OPF文件的容器声明)
+├── OEBPS/
+│   ├── content.opf        (核心元数据文件)
+│   ├── toc.ncx            (导航目录)
+│   ├── chapter1.xhtml     (章节内容)
+│   └── styles.css         (样式表)
+└── images/                (存放图片)
+```
+
+2、​​关键文件示例​​:
+- - ​​container.xml​​
+
+```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>
+```
+