All Projects → nothot → Duareader

nothot / Duareader

电子书阅读器,支持txt,e-pub(图文混排),纯swift编写,支持OC混编。 An e-book reader that supports TXT and e-pub formats. This project is written in swift and supports hybrid compilation with objective OC

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Duareader

Readingcloud
An ebook reader written in Rails.
Stars: ✭ 33 (-87.21%)
Mutual labels:  reader, epub
Reader
高仿多看阅读器apk,支持PDF解析.文档支持搜索,高亮文字,墨迹等功能
Stars: ✭ 98 (-62.02%)
Mutual labels:  epub, reader
Koreader
An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats, running on Cervantes, Kindle, Kobo, PocketBook and Android devices
Stars: ✭ 9,467 (+3569.38%)
Mutual labels:  reader, epub
Lector
Qt based ebook reader
Stars: ✭ 1,218 (+372.09%)
Mutual labels:  reader, epub
z-reader
📘 [vscode插件] 小说阅读器,支持在线搜索和本地阅读,支持txt和epub格式
Stars: ✭ 205 (-20.54%)
Mutual labels:  epub, reader
Koodo Reader
A modern ebook manager and reader with sync and backup capacities for Windows, macOS, Linux and Web
Stars: ✭ 2,938 (+1038.76%)
Mutual labels:  reader, epub
Kreader
Android阅读器
Stars: ✭ 117 (-54.65%)
Mutual labels:  reader, epub
Thorium Reader
A cross platform desktop reading app, based on the Readium Desktop toolkit
Stars: ✭ 319 (+23.64%)
Mutual labels:  reader, epub
EveReader
Epub Reader, focused on annotation.
Stars: ✭ 68 (-73.64%)
Mutual labels:  epub, reader
plato
Document reader
Stars: ✭ 117 (-54.65%)
Mutual labels:  epub, reader
react-viewer
Online EPUB/Comics viewer
Stars: ✭ 52 (-79.84%)
Mutual labels:  epub, reader
eBookReaderNX
A Nintendo Switch eBook Reader
Stars: ✭ 15 (-94.19%)
Mutual labels:  epub, reader
BookReader
📕 "任阅" 网络小说阅读器,3D翻页效果、txt/pdf/epub书籍阅读、Wifi传书~
Stars: ✭ 6,113 (+2269.38%)
Mutual labels:  epub, reader
bookery
Manage all your ebooks and send them to your reader
Stars: ✭ 35 (-86.43%)
Mutual labels:  epub, reader
bookworm
The Universally Accessible document Reader
Stars: ✭ 50 (-80.62%)
Mutual labels:  epub
ebook-converter
Commandline tool for converting between several e-books formats, based on Calibre project.
Stars: ✭ 21 (-91.86%)
Mutual labels:  epub
HtmlOrMarkdownConvertedToPdf
📚 NodeJS爬虫 + percollate获取网络教程并转成PDF电子书,持续更新
Stars: ✭ 62 (-75.97%)
Mutual labels:  epub
any-text
Get text content from any file
Stars: ✭ 19 (-92.64%)
Mutual labels:  reader
bookr-mod-vita
A book reader for the Vita and Switch. Still a work in progress.
Stars: ✭ 51 (-80.23%)
Mutual labels:  epub
kthoom
Comic Book Reader in the Browser
Stars: ✭ 97 (-62.4%)
Mutual labels:  epub

DUAReader

电子书阅读器,支持txt,epub(图文混排),纯swift编写,自动提取章节,支持翻页模式切换,更改背景,字体字号,章节跳转等各种常用功能

An e-book reader, supporting txt, epub, written in swift, has a variety of commonly used features, including automatic extraction of chapters, page turning mode switching, changing the background, font size, chapter jump, etc.

image

20180721 Updated

DUAReader现全面支持Objective-C,兼容Objective-C的版本将在fitOC分支单独维护,获取方式:

DUAReader now fully supports Objective-C, and the Objective-C compatible version will be maintained separately in the fitOC branch

  • 克隆代码到本地

git clone https://github.com/nothot/DUAReader.git

  • 切换到fitOC分支

git checkout -b fitOC origin/fitOC

Example

        // txt示例
        mreader = DUAReader()
        let configuration = DUAConfiguration.init()
        configuration.backgroundImage = UIImage.init(named: "backImg.jpg")
        mreader.config = configuration
        mreader.delegate = self
        self.present(mreader, animated: true, completion: nil)
        let bookPath = Bundle.main.path(forResource: "郭黄之恋", ofType: "txt")
        mreader.readWith(filePath: bookPath!, pageIndex: 1)
        // epub示例
        mreader = DUAReader()
        let configuration = DUAConfiguration.init()
        configuration.backgroundImage = UIImage.init(named: "backImg.jpg")
        configuration.bookType = .epub // 默认TXT类型
        mreader.config = configuration
        mreader.delegate = self
        self.present(mreader, animated: true, completion: nil)
        let epubPath = Bundle.main.path(forResource: "每天懂一点好玩心理学", ofType: "epub")
        mreader.readWith(filePath: epubPath!, pageIndex: 1)

更多细节可参考demo

See demo for more details

可以引入源码或编译为framework进行使用,注意工程需要添加libxml2动态库依赖,可参看demo工程(epub解析需要)

说明 项目中引入了三个第三方framework是由objective-C编写,项目本身为swift编写

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].