📖 03. Reader & Typography

Guide to refined reading controls and exquisite, comfortable typography.
Category: Reader Typography · Estimated Reading Time: 4 minutes
The essence of reading lies in comfortable typography, natural page turns, and relaxed eyes. BookFun brings publication-grade paper book aesthetics, unified gesture responsiveness, and thoughtful navigation gestures. This guide details typesetting craftsmanship, the three-slot page-turn container, slide/flip dynamics, the “Back to Position” jump capsule, notes, and accessibility features.


📑 In This Guide

  1. Publication-Grade Typography: Punctuation & Alignment
  2. Unified Page-Turn Feel & Three-Slot Viewport Container
  3. Seamless Chapter Transitions & In-Memory Pre-Pagination
  4. Table of Contents, Full-Text Search & Pinned Volumes
  5. Sentence Highlighting, Thoughts & One-Tap Notes Export
  6. Never Lose Your Spot: “Back to Position” Capsule
  7. Thoughtful Layout for Large Images & Headings
  8. Scientific Eye-Care Palettes & Blue-Light Filter
  9. Accessibility, Dynamic Type & Batch Correction

1. Publication-Grade Typography: Punctuation & Alignment

Ordinary readers often produce loose, ragged text. BookFun adheres strictly to formal physical publication typesetting rules:

  • Natural Paragraph Indentation: Clean, proper indent at the start of each paragraph;
  • Strict Punctuation Wrap Rules (Kinsoku Shori / Line-Break Control):
    • Commas, periods, closing quotes, and question marks never hang alone as the first character of a new line;
    • Opening brackets and quotes never linger as the final character of a line;
  • Orphan & Widow Control: Prevents awkward single-word lines dangling onto the next page;
  • Full Justification on Both Margins: Micro-adjusts letter spacing and spaces based on character metrics to keep page margins straight and publication-ready.

2. Unified Page-Turn Feel & Three-Slot Viewport Container

Tap the screen center to summon the menu, then navigate to “Typography Settings → Page Turn Mode” to choose your style:

ModeVisual & Touch SensationBest Scenarios
Horizontal SlideFrictionless, smooth lateral push transition without visual dizzinessFast browsing, marathon reading sessions
Horizontal FlipLayered book-leaf reveal with firm tactile boundary feedbackImmersive, page-by-page literature reading

2.1 Unified Gesture Responsiveness across Formats

In BookFun, gesture damping constants, velocity thresholds, and interruption handling are strictly synchronized across TXT, EPUB, and Markdown. Whether dragging slowly or flicking rapidly, page turning feels identical regardless of book format.

2.2 Three-Slot Viewport Container (ThreeSlotPageTurnContainer)

  • Constant Topology: Employs a fixed [Slot -1: Previous, Slot 0: Current, Slot +1: Next] structure;
  • Zero View Destruction: Bidirectional scrubbing and rapid direction reversals cause 0 view destructions or recreations, completely eliminating frame drops and touch pipeline hitches;
  • Lightweight Overlay Shadows: Realistic edge curl shadows are rendered as an efficient overlay layer, maintaining smooth 60/120fps motion.

3. Seamless Chapter Transitions & In-Memory Pre-Pagination

Reading novels should never be interrupted by awkward chapter-boundary loading spinners:

  • Background Boundary Pre-Pagination: When your reading position approaches the beginning or end of a chapter (pageIndex <= 1 or pageIndex >= count - 2), the background engine quietly pre-calculates typography for adjacent chapters, ensuring 0ms instant display when turning past chapter boundaries;
  • High-Speed In-Memory Cache (ChapterTextMemoryCache): A dedicated 15MB/15-chapter in-memory text cache eliminates repetitive SQLite queries on page turns, delivering 100% cache hits and zero disk I/O bottlenecks;
  • Debounced Chapter Switching: Gesture navigation across chapter boundaries features a 500ms debounce guard and a 3-chapter sliding window, preventing database locking and memory spikes.

4. Table of Contents, Full-Text Search & Pinned Volumes

Effortlessly browse outlines, locate content, or jump chapters in massive epics:

4.1 TOC Panel & Multi-Volume Navigation

  • Reading Progress & “Go to Current”: The top of the panel displays progress stats (e.g. [Read 3, 384 Left]); tap the “Go to Current” crosshair icon to instantly center the current chapter;
  • Volume Header Pinning & Word Counts: Multi-volume epics are structured hierarchically with sticky volume headers upon scrolling; word counts are shown for each chapter;
  • Instant Chapter Filter: Type in the top search box to filter chapters by name or number immediately.

TOC Tree & Volume Pinning

  • Sub-Millisecond Search: Enter character names, places, or keywords for instant full-text results across the entire book with match counts;
  • Chapter Folders & Highlight Snippets: Results are organized by chapter with context snippets and highlighted keywords.

Full-Text Keyword Search

4.3 Direct Search Jump & “Back to Position” Capsule

  • Tap to Jump to Sentence: Tapping any result navigates straight to that page with the keyword highlighted;
  • Floating Anti-Lost Capsule: A capsule bar appears at the bottom. Tap “Back to Position” to return to your original page, or tap “Read Here” to continue reading from the searched page.

Quick Jump & Back Capsule


5. Sentence Highlighting, Thoughts & One-Tap Notes Export

Thoughts and Notes

  • Long-Press Highlight: Long-press any sentence, drag the boundary handles, and choose your favorite tint (Bright Yellow, Fresh Green, Soft Pink, Serene Blue);
  • Capture Moments & Thoughts: Tap “Add Thought” to jot down reflections; a dotted underline marks the sentence;
  • Full Book Notes Aggregation & Export: Switch to “Notes” in the TOC panel to view all highlights and thoughts in one place, with one-tap export to a clean Markdown document.

6. Never Lose Your Spot: “Back to Position” Capsule

Jumping across chapters to check character references often causes readers to forget their original page number. BookFun solves this with the “Anti-Lost Jump Capsule”:

Bookmark Jump
Search Jump

  • Return in One Tap: However far you jump, a capsule appears at the bottom. Tap “Back to Position” to snap right back;
  • Commit to New Spot: If you prefer reading forward from the target, tap “Read Here”;
  • Automatic Auto-Commit on 3 Page Turns: Turning 3 or more consecutive pages at the new spot automatically adopts it as your active progress;
  • Safe Exit Without Pollution: Exiting the reader during a jump will safely restore your original reading spot upon reopening!

7. Thoughtful Layout for Large Images & Headings

  • Adaptive Image Scaling: Large illustrations automatically scale to available viewport height without falling off-screen;
  • Smart Heading Height Calculation: No matter how large you set chapter titles, sufficient margin is reserved below, ensuring the first sentence of the body text is never cropped.

8. Scientific Eye-Care Palettes & Blue-Light Filter

  • 4 Classic Textures:
    • 📜 Parchment: Warm and nostalgic, reducing harsh reflections;
    • 🌿 Eye-Care Green: Gentle leafy tone for long reading sessions;
    • 🌙 Night OLED Pure Black: Zero-emission pixels for true eye protection in the dark;
    • ⚪ Paper White: Crisp, modern bright white;
  • Blue-Light Kelvin Slider: Adjust color warmth like a physical optical lens to eliminate high-energy blue rays;
  • Deep Software Dimming: Allows dimming beyond the iPhone’s minimum hardware brightness for comfortable bedtime reading.

9. Accessibility, Dynamic Type & Batch Correction

BookFun deeply enhances assistive features for all readers:

9.1 VoiceOver & Dynamic Type

  • Comprehensive VoiceOver Accessibility: All icon controls, bottom bars, and reading tools include descriptive accessibility labels (a11y) and contextual hints for visually impaired users;
  • Dynamic Type Layout Elasticity: Reader control sheets, grid menus, and text containers automatically adjust geometry when system font sizes are enlarged, preventing clipping or cramped touch targets.

9.2 Quick Typo & Flaw Fixing

Quick Typo Correction

  • Full-Book Batch Replacement: Batch correct and replace specific words, symbols, or typos across the entire book with streaming iteration to prevent memory spikes;
  • Side-by-Side Comparison: Long-press text and select “Batch Correction” to preview before-and-after text changes in a comparison drawer.

Tip

Continue exploring with: