DOC-FULL-016 P1 | EPUB metadata / spine / toc / chapter 【status:todo】 #72
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
读取 EPUB zip/container.xml/OPF metadata/spine/nav/toc/chapter list/chapter HTML/chapter search/EpubReadingPosition
M-DOC-FULL 里程碑 issue。详见设计文档。
DOC-FULL-016 P1 | EPUB metadata / spine / toc / chapter 模块to DOC-FULL-016 P1 | EPUB metadata / spine / toc / chapter 【status:todo】审查结论:document runtime 当前有文件类型识别/MaterialType/PreviewMode/DocumentInfo(基本)/Markdown解析/Text解析/ImageMeta/Search(V1 Markdown+Text)/NoteAnchor(V1)/ReadingEvent(V1)/ReadingPosition(V1)/EventBuffer(V1基础)/iOS构建/UniFFI绑定/docs。但 V2 核心模型(ReadingSession/EventV2/ActiveTimeTracker)不存在,EventBuffer 缺 ack/failed,Position 缺 camelCase+clamp,PDF/EPUB/Office 为 stub,测试覆盖不足 V2。
本 Issue: epub.rs 仅 4 行 stub。
状态: status:todo
工作类型: work:new-module
完成报告
改动
Cargo.toml: 新增zip = "2"依赖epub.rs(REWRITE):EpubMetadata(title/author/chapter_count/file_size) +EpubChapter(chapter_id/title/path/play_order)epub.rs:read_epub_metadata()— ZIP→container.xml→OPF→metadata + spine 计数epub.rs:read_epub_chapters()— spine + NCX TOC→章节列表,标题回退 "Chapter N"epub.rs: 内部 XML 解析器(无需额外依赖):extract_attr/extract_tag_content/parse_opf/extract_opf_manifest/extract_opf_spine/parse_ncx_navpointsepub.rs: 5 测试(含 fixture 验证)read_epub_metadata_ffi+read_epub_chapters_ffi+ UDL已知限制
read_epub_metadata与read_epub_chapters重复打开 ZIP验证