ReadViewSDK/Sources/RDEpubReaderView/README.md

21 lines
916 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# RDEpubReaderView
项目内置的 EPUB、TXT、MOBI 与 CBZ 阅读器 CocoaPods 源码。
统一使用 `RDEpubURLReaderController(bookURL:)` 打开文件,支持扩展名:
- `epub`:完整 EPUB 解析与排版
- `txt`:纯文本章节识别与排版
- `mobi`:无 DRM 的经典 MOBI6/PalmDOC未压缩或 PalmDOC 压缩)
- `cbz`ZIP 漫画图片包,文件名自然排序、图片分页与阅读进度保存
MOBI 的 HUFF/CDIC 压缩、KF8 专有排版以及 DRM 内容会返回明确的不支持错误CBZ 会限制页数和解压体积,避免异常压缩包耗尽设备资源。
`Podfile` 通过 `:path => 'Vendor/RDEpubReaderView'` 引用本目录;自动复制工程到其他目录打包时,不再依赖仓库外的 `ReadViewSDK` 路径。
更新 SDK 时请同步更新本目录中的 `Sources/``RDEpubReaderView.podspec`,然后执行:
```sh
pod install --no-repo-update
```