shen
|
d20196ee34
|
feat: configurable chapter window & parallel metadata parsing with benchmark
1. Configurable chapter window size (onDemandChapterWindowSize: 3-15)
- Parameterized window radius in RDEPUBChapterRuntimeStore
- Updated RDEPUBChapterWindowCoordinator to use configurable radius
- RDEPUBChapterWindowSnapshot.from() accepts chapter array instead of fixed prev/next
- Even numbers round up to odd (4→5), min 3, max 15
2. Configurable metadata parsing concurrency (metadataParsingConcurrency)
- Default equals CPU core count
- Parallel execution via OperationQueue in paginateMetadataOnly
- Each worker creates independent builder instance
- NSLock protects result aggregation
3. Per-chapter and total wall-clock timing instrumentation
- Separated render vs I/O timing per chapter
- Summary log with wallClockMs, renderTotalMs, writeTotalMs, avgRenderMs
- Timing stored in RDEPUBReaderContext for test access
4. UI automation test infrastructure
- Added --demo-window-size, --demo-concurrency, --demo-clear-cache launch args
- DemoReaderState exposes windowSize, parseMs, parseConcurrency
- ConfigurableWindowTests: 5 test cases for window size 3/5/15
- ConcurrentParsingTests: 4 test cases for concurrency 2/4
- MetadataParseBenchmarkTests: serial vs parallel benchmark
5. Bug fixes
- Fixed page snap-back during background parsing (isUserInteracting check)
- Reduced BookPageMap refresh frequency from 16 to 32 chapters
- Moved waitForReadingInteractionToSettle outside operation loop
6. Design doc: dual-layer PageMap (estimated + precise mixed)
|
2026-06-03 23:38:11 +08:00 |
|
shenlei
|
feb05eaf87
|
feat: complete large-book pagination runtime and UI coverage
|
2026-06-03 17:47:16 +08:00 |
|
shenlei
|
9801af05d3
|
test: 增强 UI 测试基础设施与阅读器自动化测试
- 新增 BookmarkTests/PageNavigationTests/TableOfContentsTests 等阅读器功能测试
- 扩展 AccessibilityIdentifiers 支持更多 UI 元素定位
- XCUIApplication+Launch: 增加启动参数支持(reset state、自定义书籍)
- ReaderAnnotationTests: 完善标注测试覆盖
- ViewController: 支持 --demo-reset-state 参数清理持久化状态
- 新增凡人修仙传测试样本
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-02 21:17:04 +08:00 |
|
shen
|
1c6108061c
|
feat: improve native text selection and annotation actions
|
2026-06-01 21:29:41 +08:00 |
|
shenlei
|
70133e4e6e
|
refactor(reader): 重构高亮选区绘制架构,对齐 WXRead 实现方案
- 移除 RDEPUBSelectableTextView,改用原生 UITextView
- 新增 NSAttributedString 自定义属性(com.rdreader.highlight/underline)注入高亮
- RDEPUBTextPageRenderView 统一绘制高亮背景、文字和选区
- RDEPUBTextSelectionController 精简,选区矩形传递给 RenderView 绘制
- 新增高亮选区复刻 WXRead 实现方案文档
- UI 测试适配新架构
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-01 20:57:27 +08:00 |
|
shen
|
948004eed1
|
docs: 补充注释、修正过时文档、清理重复内容
源码注释:
- 为 ~60 个 Swift 文件补充缺失的 doc comment(file header、类型、属性、方法)
- 修正 4 处错误注释:翻页模式数量、搜索行为描述、手势识别器描述、悬空文档块
文档维护:
- 删除重复文档:WXRead/读书EPUB阅读器实现架构.md(与微信读书版完全一致)
- 合并重叠文档:阅读器规划.md → 阅读器功能开发计划.md(单一真值)
- 修正过时内容:所有文档中"四种翻页模式"→"三种",移除 horizontalCoverScroll
- 更新架构图:补齐 EPUBUI/ReaderController、Paging/、Typesetter/ 等子目录
- 更新 index.md 索引:新增开发计划和架构对比文档引用
|
2026-06-01 09:33:23 +08:00 |
|
shen
|
1efb9d172f
|
feat(reader): 增强阅读器功能与 UI 测试支持
- 新增字体选择(系统/宋体/圆体/等宽)与暗色图片柔化配置
- 文本选择改为自定义手势+操作栏(拷贝/高亮/批注)
- 添加 accessibilityIdentifier 支持自动化 UI 测试
- 新增 UITests 覆盖阅读器打开/关闭、工具栏、设置面板、批注等
- 添加 Demo 测试用 EPUB 书源(宝山辽墓材料与释读)
- 新增文档:UI 自动化测试、功能开发计划、阅读器规划
|
2026-05-31 23:56:54 +08:00 |
|
shen
|
44202357c0
|
refactor: split reader architecture and chrome handling
|
2026-05-31 21:47:54 +08:00 |
|
shen
|
ea21c6a831
|
epub问题修改
|
2026-05-26 23:27:52 +08:00 |
|
shen
|
83b705b9ae
|
修改分页问题
|
2026-05-26 21:08:27 +08:00 |
|
shen
|
0e7d952fe5
|
feat(epub): complete wxread parity scope
|
2026-05-26 09:19:37 +08:00 |
|
shen
|
23182e8b5a
|
feat(epub): align wxread css and overlay pagination behavior
|
2026-05-25 22:15:24 +08:00 |
|
shen
|
2a94921e88
|
feat(wxread): align pagination, rendering, and docs
|
2026-05-24 15:36:01 +08:00 |
|
shen
|
3e2669d8a8
|
目前阅读稳定版本,需要修改图片阅读方式
|
2026-05-23 15:50:53 +08:00 |
|
shen
|
d7339aa255
|
feat(07): close native text pagination semantics loop
|
2026-05-22 20:39:26 +08:00 |
|
shen
|
5698aeaead
|
chore: checkpoint current milestone work
|
2026-05-22 13:28:53 +08:00 |
|
shen
|
daa36d8fe7
|
Epub阅读器0.0.1
|
2026-05-21 19:40:51 +08:00 |
|