feat(wxread): align pagination, rendering, and docs

This commit is contained in:
shen
2026-05-24 15:36:01 +08:00
parent a318c0e3d0
commit 2a94921e88
103 changed files with 6124 additions and 4623 deletions
@@ -2,7 +2,7 @@
// DTHTMLAttributedStringBuilder.h
// DTCoreText (WeRead custom fork)
//
// Reverse-engineered from WeChat Reading (微信读书) binary.
// Reverse-engineered from WeChat Reading (读书) binary.
// This class converts HTML DOM into NSAttributedString via SAX-style parsing.
//
+1 -1
View File
@@ -2,7 +2,7 @@
// DTHTMLElement.h
// DTCoreText (WeRead custom fork)
//
// Reverse-engineered from WeChat Reading (微信读书) binary.
// Reverse-engineered from WeChat Reading (读书) binary.
// Represents a single HTML element in the DOM tree built during parsing.
// Each node can produce an NSAttributedString via -attributedString.
//
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRBookmark.h
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered header
//
// Bookmark model. Stores bookId, chapterUid, and position information.
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRBookmark.m
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered implementation reconstruction
//
// Detailed pseudo-code based on binary analysis (many NSString ivars,
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRChapterData.h
// WeRead (微信读书)
// WeRead (读书)
//
// Reverse-engineered header reconstruction.
// Chapter data model. Stores the typeset NSAttributedString.
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRChapterData.m
// WeRead (微信读书)
// WeRead (读书)
//
// Detailed pseudo-code reconstruction of the chapter data model.
// Stores the typeset NSAttributedString, manages highlights, underlines,
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRChapterPageCount.h
// WeRead (微信读书)
// WeRead (读书)
//
// Reverse-engineered header reconstruction.
// Pagination calculator. Manages NSRange for each page within a chapter.
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRChapterPageCount.m
// WeRead (微信读书)
// WeRead (读书)
//
// Detailed pseudo-code reconstruction of the pagination calculator.
// Computes page breaks by simulating CoreText line layout and fitting
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WREpubParser.h
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered header
//
// EPUB file parser. Parses OPF (content.opf), NCX (toc.ncx), and XHTML chapter files.
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WREpubParser.m
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered implementation reconstruction
//
// Detailed pseudo-code based on binary analysis, ivar types, known methods,
@@ -1,6 +1,6 @@
//
// WREpubPositionConverter.h
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered header
//
// Position converter between file positions and character positions.
@@ -1,6 +1,6 @@
//
// WREpubPositionConverter.m
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered implementation reconstruction
//
// Detailed pseudo-code based on binary analysis, ivar types, known methods,
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WREpubTypesetter.h
// WeRead (微信读书) - Reverse Engineered
// WeRead (读书) - Reverse Engineered
//
// EPUB Typesetter: Converts XHTML content into NSAttributedString
// via DTHTMLAttributedStringBuilder with CSS cascade, image handling,
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WREpubTypesetter.m
// WeRead (微信读书) - Reverse Engineered Implementation Reconstruction
// WeRead (读书) - Reverse Engineered Implementation Reconstruction
//
// This is a detailed pseudo-code reconstruction based on:
// - Binary strings output (method signatures, CSS filenames, attribute names)
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageHighlight.h
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered header
//
// Annotation model for text highlights. Stores the highlighted text range,
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageHighlight.m
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered implementation reconstruction
//
// 3 methods identified from binary. WRPageHighlight is a lightweight
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageMark.h
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered header
//
// Annotation model for page bookmarks/marks (dog-ear style).
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageMark.m
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered implementation reconstruction
//
// 25 methods identified from binary. WRPageMark is the most comprehensive
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageUnderline.h
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered header
//
// Annotation model for text underlines. 10 methods identified from binary.
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageUnderline.m
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered implementation reconstruction
//
// 10 methods identified from binary. WRPageUnderline renders underline
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageView.h
// WeRead (微信读书)
// WeRead (读书)
//
// Reverse-engineered header reconstruction.
// The page rendering view. Inherits UIView. Uses CoreText direct drawing
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageView.m
// WeRead (微信读书)
// WeRead (读书)
//
// Detailed pseudo-code reconstruction of the page rendering view.
// This view draws text directly via CoreText into CGContext — no UILabel
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageViewController.h
// WeRead (微信读书)
// WeRead (读书)
//
// Reverse-engineered header reconstruction.
// Based on UIPageViewController. Supports UIPageCurl (simulation) and
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPageViewController.m
// WeRead (微信读书)
// WeRead (读书)
//
// Detailed pseudo-code reconstruction of the page view controller.
// Wraps UIPageViewController with fault detection and patching for
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPreloadBookManager.h
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered header
//
// Preload manager. Predicts which chapters to preload based on book ranking
+1 -1
View File
@@ -1,6 +1,6 @@
//
// WRPreloadBookManager.m
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered implementation reconstruction
//
// Detailed pseudo-code based on binary analysis, ivar types (NSMutableDictionary),
@@ -1,6 +1,6 @@
//
// WRReaderPencilNoteManager.h
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered header
//
// Apple Pencil note manager. 11 class methods identified from binary.
@@ -1,6 +1,6 @@
//
// WRReaderPencilNoteManager.m
// WeRead (微信读书)
// WeRead (读书)
// Reverse-engineered implementation reconstruction
//
// 11 class methods identified from binary. Manages Apple Pencil
@@ -1,6 +1,6 @@
//
// WRReaderViewController.h
// WeRead (微信读书)
// WeRead (读书)
//
// Reverse-engineered header reconstruction.
// Main reader controller. Manages reading state, progress saving,
@@ -1,6 +1,6 @@
//
// WRReaderViewController.m
// WeRead (微信读书)
// WeRead (读书)
//
// Detailed pseudo-code reconstruction of the main reader controller.
// 431 methods total. This file covers the key methods for page rendering,