All Projects → ZhongshanHuang → PoReader

ZhongshanHuang / PoReader

Licence: MIT license
本地小说阅读器,支持深色模式,Wifi传书,代码简洁有注释(local text reader, support dark modal, upload text by wifi)

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to PoReader

learning-growth
主要是我的一些阅读、学习、社交、研究、思考、放松娱乐记录整理。
Stars: ✭ 73 (+78.05%)
Mutual labels:  read, reading
easy reader
⏮ ⏯ ⏭ A Rust library for easily navigating forward, backward or randomly through the lines of huge files.
Stars: ✭ 83 (+102.44%)
Mutual labels:  read, reader
readability-cli
A CLI for Mozilla Readability. Get clean, uncluttered, ready-to-read HTML from any webpage!
Stars: ✭ 41 (+0%)
Mutual labels:  read, reader
Eclector
A portable Common Lisp reader that is highly customizable, can recover from errors and can return concrete syntax trees
Stars: ✭ 94 (+129.27%)
Mutual labels:  reader
myreader
基于React实现的【绿色版电子书阅读器】,可以免费看任何小说,支持离线下载,不过还是得支持正版哦!
Stars: ✭ 27 (-34.15%)
Mutual labels:  reader
indices
Indices creates a Table of Contents sidebar for Medium articles, and enables you to skip around
Stars: ✭ 16 (-60.98%)
Mutual labels:  reading
EveReader
Epub Reader, focused on annotation.
Stars: ✭ 68 (+65.85%)
Mutual labels:  reader
dale-chall-formula
Formula to find the grade level according to the (revised) Dale–Chall Readability Formula (1995)
Stars: ✭ 26 (-36.59%)
Mutual labels:  reading
Mastering-Algorithms-with-C
This repository contains example files organized by chapters in Mastering Algorithms with C, by Kyle Loudon
Stars: ✭ 48 (+17.07%)
Mutual labels:  reading
omynote
众山小笔记 - 集中管理你的读书笔记
Stars: ✭ 154 (+275.61%)
Mutual labels:  reading
iobit
Package iobit provides primitives for reading & writing bits
Stars: ✭ 16 (-60.98%)
Mutual labels:  reader
FortniteReplayDecompressor
Read Fortnite replay files
Stars: ✭ 68 (+65.85%)
Mutual labels:  reader
plato
Document reader
Stars: ✭ 117 (+185.37%)
Mutual labels:  reader
vueman.ga
Delightful reading and tracking of your mangas.
Stars: ✭ 32 (-21.95%)
Mutual labels:  reading
FoOlSlide2
New version (FoolSlideX) out soon
Stars: ✭ 55 (+34.15%)
Mutual labels:  reader
flesch
Formula to detect the ease of reading a text according to Flesch Reading Ease (1975)
Stars: ✭ 25 (-39.02%)
Mutual labels:  reading
automated-readability
Formula to detect ease of reading according to the Automated Readability Index (1967)
Stars: ✭ 46 (+12.2%)
Mutual labels:  reading
JetStory
JetStory is an open source android app made to help you spend your waiting time reading stories that have similar length to your available time.
Stars: ✭ 20 (-51.22%)
Mutual labels:  reading
cbwebreader
Web Based CBR, CBZ and PDF file reader.
Stars: ✭ 31 (-24.39%)
Mutual labels:  reader
reader
tReader,又一个 txt 文本阅读器,Web App; Yet another txt reader
Stars: ✭ 49 (+19.51%)
Mutual labels:  txtreader

PoReader

本地小说阅读器,支持Wi-Fi传书,深色模式

目录

1.首页

2.Wi-Fi传书

3.阅读

首页

支持的功能
1.展示本地txt文件的书名、进度,最新看过的排在最前.长按进入编辑模式,可以删除不喜欢的书籍,支持多选

Wi-Fi传书

支持的功能
在电脑浏览器打开提示的地址,可以上传或删除txt文件

阅读

支持的功能
打开时跳转到之前页码,仿真翻页,调整字体大小,进度跳转,退出页面或者app关闭页面时保存当前页码
PS:没有实现背景颜色自由更改是因为被我删掉了,背景颜色更改对我来说使用频率太低,暗黑模式对我来说体验更好

每个小说阅读器可能有不同的显示样式,但是都无法避免最核心的部分---分页计算,一个txt文件可能会有几M或者十几M,如果直接将分页全部计算出来可能需要耗费十几秒甚至更多,不管你是将分页计算放在主线程还是子线程,都会导致用户等待很长时间才能看到文字显示。
文字要被一页页地展示给用户,分页计算是无可避免的。既要进行分页计算,又要降低分页计算的耗时,只有采用懒加载,推迟不必要的计算,只计算马上需要展示给用户的分页。这儿的思想其实与计算机的虚拟内存管理类似

1.文本分割
首先加载txt文件后对其进行切割,分割成一小段一小段的文本,这儿的切割标准有两类:
1)txt文件有章节划分,那我们就按章节来分割。(采用正则表达式分割)
2)有些txt文件就是一大团文字,没有划分标准。那我们按照固定字数来分割,这个固定的字数如何确定呢,需要自己测试,需要保证这段文字的分页计算耗时在用户无法察觉的范围

2.分页计算
txt文本切割成一段一段后,我们先不进行分页计算,用户看到哪一段我们就对哪一段进行分页计算。

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].