Cham OCR Studio — User Guide Complete Feature Manual & Paleographic Workflow Reference
Open OCR Workbench Technical Report
Official Documentation · https://ocr.cham.asia

Cham OCR Studio — Complete User Guide

Welcome to Cham OCR Studio, an open-source digital paleography and optical character recognition workbench purpose-built for historical and modern Eastern Cham (Akhar Thrah, ꨀꨇꩉ ꨔꨴꩍ) manuscripts, bilingual glossaries, and multi-page archival corpora.

1
Load Manuscripts
Upload multiple images, rasterize a multi-page PDF, paste via Ctrl+V, or click an Archival Specimen.
2
Run Transcription
Select a model (default V24.1-R4 SOTA) and click Transcribe (Ctrl+Enter) or Batch (Ctrl+Shift+Enter).
3
Inspect & Verify
Inspect polygon ribbons, optical filters, Romanized transliteration, and Unicode clusters; verify lines with A.
4
Export Corpus
Export active folio or full multi-page queue to .txt, .md, .json, PAGE-XML, or Active Learning .zip.

01 Workspace Architecture & Layout Modes

Different physical manuscript formats—from tall bark-paper codices (kertas) to wide horizontal palm-leaf strips (agal)—demand adaptable screen geometry. Use the Layout ▾ dropdown in the right header cluster (or press Alt+1..4) to switch layouts instantaneously without losing your zoom, selection, or unsaved edits.

1.1 Four Specialized View Modes

3-Pane Workbench (Default) Alt + 1
Displays the Corpus Queue on the left, the interactive Manuscript Canvas in the center, and the Transcription Editor on the right. Ideal for managing multi-page archival projects.
Compare (2-Pane Side-by-Side) Alt + 2
Collapses the left Queue Sidebar to dedicate 100% of horizontal width to side-by-side diplomatic collation between the high-resolution folio scan and the extracted Cham textlines.
Stacked (Horizontal–Vertical Split) Alt + 3
Places the Manuscript Canvas in a wide top viewport directly above a full-width Transcription Editor below. Purpose-built for elongated horizontal palm-leaf (agal) folios and wide epigraphic rubbings.
Reader (Focus Scholarly Edition) Alt + 4
Hides surrounding chrome to present a centered, book-like reading column complete with inline cropped textline strips, stanza reconstruction, and Romanized subtitles.

1.2 Smart Queue Drawer, Draggable Resizers & Command Palette

  • Smart Auto-Collapsing Queue (Alt + Q): On initial launch or single-folio proofreading, the left Corpus Queue collapses automatically to maximize reading width; importing a multi-page batch or PDF expands it automatically. Click the floating Queue pill at the top-left of the canvas (or press Alt + Q) anytime to toggle it manually.
  • Drag-to-Resize Dividers: Drag the vertical hairline dividers between panes (or the horizontal divider in Stacked mode) to customize column proportions. All dimensions persist automatically in browser storage; double-click any divider to snap back to its default width.
  • Command Palette (Ctrl + K / ⌘K): Click Ctrl+K in the top header to fuzzy-search and trigger any Studio operation—switching layouts, running batch OCR, toggling overlays, or exporting corpora—entirely from the keyboard.

02 Corpus Intake, Multi-Page PDF Import & Batch Queue

2.1 Five Ways to Load Manuscript Folios

  • Add Images / PDF (Ctrl + O): Select one or dozens of image files (.png, .jpg, .webp, .bmp) or a multi-page .pdf document simultaneously.
  • Drag & Drop: Drag image files or PDFs from your file manager directly onto either the left Corpus Queue intake box or the central Manuscript Canvas.
  • Direct Clipboard Paste (Ctrl + V): Copy any screenshot or cropped manuscript region to your system clipboard and press Ctrl + V anywhere in the Studio to enqueue it immediately.
  • Multi-Page PDF Importer: Dropping or selecting a .pdf opens the Import Multi-Page PDF dialog:
    • Specify a flexible Page Range such as 1-10, 1,4,7-12, or all.
    • Choose a Rasterization Resolution: 150 DPI (fast preview), 220 DPI (recommended paleographic fidelity), or 300 DPI (ultra-fine epigraphic detail).
  • Curated Archival Specimens: Click Specimens in the Corpus Queue (or click one of the Instant Archival Specimens cards on the empty stage) to load real benchmark folios—including Panduranga palm-leaf agal, curved baselines, two-column Wijaya layouts, and bilingual Cham–Vietnamese pages—or click Load 4-Folio Demo Batch to test batch processing immediately.

2.2 Automated Batch OCR Queue

  • Batch Button (Ctrl + Shift + Enter): Located directly in the Corpus Queue pane header, clicking Batch processes all Pending / Unprocessed folios in the queue sequentially. A live progress banner displays the current folio index, filename, progress bar, and a safe Stop button that halts cleanly after the active page finishes.
  • Auto-Transcribe on Upload: Enable the checkbox inside the Queue intake box to start OCR automatically whenever new images or PDF pages are imported.
  • Local IndexedDB Persistence: High-resolution manuscript images and extracted transcriptions are stored locally inside your browser's IndexedDB (ChamOCRStudioDB), preserving your queue across page refreshes without re-uploading.

2.3 Document Status Badges & Queue Controls

Each queued folio displays a strict semantic status badge that distinguishes machine output from human scholarly verification:

Status Badge Meaning & Trigger Condition
Unprocessed Folio has been loaded into the queue and is awaiting transcription.
OCR done Automatic neural transcription completed with no quality-gate warnings. Note: Automatic OCR never marks a document as human-verified.
Needs review Server quality gates or user flagged the folio due to low line confidence (< 60%), uncovered text-like ink (≥ 12%), suspected merged line height, or manual W flagging.
No text Blank or non-text page detected by the ink-density gate, preventing blank-page hallucinations.
Verified Awarded exclusively after a human scholar confirms every single line on the folio (via Verify A, inline edit, split, merge, or batch high-confidence verification).

Use the Filter Pills (All, Review, OCR Done, Verified, Pending) and filename search box to isolate pages needing attention, drag and drop folio cards to reorder pagination, or hover any card to re-run OCR (▶) or remove it (✕).

03 Neural Recognition Models & Segmentation Engine

3.1 Choosing the Right Recognition Model

Model Selector Input Geometry Recommended Paleographic Use Case
V26.1 SOTA (v24_1_r4) (Default) [3, 48, 480] Primary pure-Cham production specialist. Padding-masked 114-token Akhar Thrah Masked-SVTR with WiSE-FT real-scan calibration (6/6 Gates, 2.07% real-camera crop CER / 3.07% live E2E); prevents stray Latin character hallucinations on aged manuscripts.
Auto Router (auto) Adaptive Tri-Engine Best for interleaved Cham + Vietnamese pages. Runs W=480 Cham primary, selectively adjudicates narrow/lower-confidence crops with W=320 archival specialist, and hands off Vietnamese lines (including digit/punctuation-heavy glosses) to PP-OCRv5 with per-line selected_recognizer provenance.
V24.1-R3.1 [3, 48, 320] Compact W=320 specialist tuned for heavily degraded Level-5 archival crops and tight symbol gate closure.
V24.1-R2.1.6 [3, 48, 320] Clean HarfBuzz & editorial punctuation specialist (100% accuracy across 14 mandatory symbols and multi-context hyphens).
Vietnamese (vi) Dynamic Fine-tuned PP-OCRv5 recognizer dedicated to modern Vietnamese translations, headers, and catalog cards.
V25 Bilingual (Legacy) / V24 / V23 [3, 48, 480 / 320] Historical reference models retained for longitudinal academic benchmarking. Note: V25 (40-epoch 162-token unmasked bilingual experiment, 0.72% in-domain val CER) exhibits unmasked W=480 padding & CTC Latin dispersion on raw E2E crops—always prefer Auto Router or V26.1 SOTA for production use.

3.2 Segmentation Pipeline Parameters (⚙ Popover)

Click the gear icon (⚙) beside the Model dropdown to configure line detection and reading order:

  • Hybrid Cham-DBNet (Polygon Ribbon) (Recommended): Uses a Legacy-First quality gate paired with fine-tuned Cham-DBNet v1_poly_u1.8 polygon contours that trace undulating baselines, rectify curved ribbons into straight horizontal strips, and mask out intruding ascenders/descenders from neighboring lines.
  • Indic Valley-Cut Projection / Adaptive Profile: Horizontal ink-projection fallbacks with Connected Component exclusion (difference_update) and a 0.40 × median_line_height vertical diacritic cushion. Adjustable via the Minimum Interlinear Gap (px) slider.
  • Multi-Column Reading Order: Automatic Column Detection identifies dual-column folios (and full-width titles above columns) automatically; switch to Strict Top-to-Bottom Rows when transcribing single-column tables or fragmented scraps.

04 Paleographic Manuscript Canvas & Optical HUD

4.1 Full-Bleed Canvas & Floating Glass Pill HUD

  • Floating Glass Pill HUD: Instead of stacking a second top toolbar over the manuscript, viewport controls float inside a translucent warm-parchment capsule centered at the bottom of the canvas so historical scans extend edge-to-edge right beneath the main header.
  • Pan & Cursor-Centered Zoom: Drag anywhere on the canvas to pan; scroll the mouse wheel to zoom smoothly toward the cursor position (8% to 1000%).
  • Quick Zoom Presets: Use HUD buttons for Fit Folio in Viewport, Fit Folio Width, 1:1 Actual Pixel Size, Zoom Out (−), and Zoom In (+).
  • Rotate 90° Clockwise (↻): Permanently rotates sideways camera scans by 90° clockwise and updates the thumbnail so subsequent OCR runs on upright textlines.

4.2 Spotlight Bounding Boxes, Polygons & Manual Region Annotation

  • Spotlight Bounding Box Mode (B) (Default): Eliminates visual "grid clutter" over delicate Cham vowel ascenders (◌ꨪ, ◌ꨫ) and subjoined medials (◌ꨳ, ◌ꨶ) by rendering subtle 1.5px baseline rules on unselected lines (dashed amber for Needs review, sage for Verified) while illuminating full core-band boxes only on the hovered or active line. Press B (or click Spotlight in the HUD) to cycle Spotlight → All Boxes → Hidden.
  • Interactive Corner Resize Handles: Selecting any line reveals four corner handles (NW, NE, SW, SE) on its bounding box. Drag any corner to refine crop boundaries, then press R (Re-OCR) to re-transcribe the adjusted region.
  • Curved Polygon Ribbons (P): Toggles the SVG polygonal contour layer generated by Cham-DBNet on wavy or warped folios.
  • Draw Manual Bounding Box (D): Activates crosshair annotation mode—drag across any missed marginal note, stanza number, or interlinear gloss to crop, transcribe via /ocr_crop, and insert it at the exact vertical reading position.

4.3 Paleographic Magnifier Loupe & Optical Filters

2.6× Magnifier Loupe L
Opens a circular 2.6× optical lens tracking your cursor across the folio—ideal for inspecting eroded vowel strokes, distinguishing ◌ꨲ (Vowel UE) from ◌ꨶ (Medial WA), or checking double dandas (꩝꩝ vs ꩞).
Non-Destructive Optical Filters ◐ Icon
Adjust Contrast (60%–240%), Brightness (50%–180%), Monochrome Desaturation, or toggle Invert Dark/Rubbing Ink to read low-contrast palm leaves, faded ink, and white-on-black stone inscription rubbings without altering the underlying file.

05 Scholarly Transcription Editor & Linguistic Tools

5.1 Diplomatic Lines vs. Continuous Stanza Flow

  • Lines (Diplomatic Edition): Displays every detected textline in exact folio lineation with a color-coded confidence bar (Green ≥ 75%, Amber 45%–74%, Red < 45%). Clicking any line highlights its box on the canvas; clicking an individual Cham grapheme zooms the canvas to 175% and highlights that specific character cluster proportionally.
  • Stanza Flow (Alt + P): Invokes the linguistic & geometric reconstruction engine (paragraph_flow.py) to distinguish soft line wraps from hard stanza/paragraph breaks (using Danda/Double Danda terminators ꩝ / ꩞, stanza numerals ꩑꩞, indentation, and interlinear gap ratios). Click any sentence segment to highlight its source line on the folio, or double-click to edit.

5.2 Line Crops, Romanized Transliteration & Unicode Cluster Inspector

Crop: Focus Alt + C
By default, unfolds the high-contrast manuscript cutout strip exclusively above the active line you are editing (eliminating left-right eye saccade fatigue without doubling list height). Cycle Focus → All → Off anytime.
Aa Roman Alt + T
Generates live scholarly EFEO/Inrasara-style Latin transliteration beneath every Cham line and stanza (e.g., ꨌꩌ ꨚꨤꨬ → cam palei) to accelerate cross-checking.
U+ Cluster Inspector Alt + U
Opens the bottom paleographic inspector decomposing the selected grapheme into exact Unicode codepoints (U+AA00–U+AA5F), categories, canonical Logical Order status, and minimal-pair alerts.
Canonical Brahmic Logical Order Guarantee Whenever you edit or save a line, Cham OCR Studio automatically canonicalizes combining marks into strict Unicode Logical Order: Base Consonant → Medials (Ra/La, Ya/Wa) → Pre-Vowels (O/Ai) → Dependent Vowels → Lengthener AA → Final Signs, preventing visual-order encoding corruption.

5.3 Typewriter Editing Flow, Inline Line Actions, Search & History

  • Typewriter Inline Edit (Enter / Shift+Enter / Ctrl+Enter): Double-click or press Enter on a selected line to open persistent Unicode Cham editing. While editing, press Enter to save and advance directly into editing the next line while gently centering the canvas (Shift+Enter steps up to the previous line; Ctrl+Enter or Save commits and exits edit mode).
  • Contextual Inline Action Bar: Selecting any line reveals Edit, ✓ Verify, ↻ Re-OCR, Split, Merge ↓, Flag, U+, and 🗑 directly inside that line card—eliminating eye travel to the bottom of the screen.
  • Verify (A) & Batch Verify (≥75%): Marks the selected line as 100% human-verified and advances automatically to the next line, or approves all high-confidence lines (≥ 75%) in one click.
  • Split (S): When inline edit mode is open, splits the line at your exact text cursor (caret) position; otherwise splits cleanly near the midpoint word/danda boundary while dividing the bounding box vertically.
  • Merge Down (M): Concatenates the selected line with the line immediately below and unifies their bounding boxes.
  • Re-OCR (R), Flag (W), Delete (Del): Re-runs recognition on the line's box, flags an ambiguous line for review, or removes false-positive noise detections.
  • Review Navigation ([ and ]): Jumps directly to the previous or next unverified low-confidence / flagged line and centers the manuscript viewport on it.
  • Find & Replace (Ctrl + F) & Undo / Redo (Ctrl + Z / Ctrl + Y): Full 40-step per-folio undo/redo stack covering edits, splits, merges, box adjustments, and batch replacements.

06 Akhar Thrah Virtual Keyboard (Alt + K)

Because standard operating systems rarely ship ergonomic Eastern Cham keymaps, Cham OCR Studio includes a floating, draggable paleographic keyboard covering the entire Unicode Cham block (U+AA00–U+AA5F), triggered via the KB button in the Transcription Editor toolbar or Alt + K:

  • Direct Non-Blur Typing: Open an inline line edit (Enter) and click keys on the Virtual Keyboard—characters insert directly at your cursor position without stealing input focus.
  • Three Ergonomic Grid Layouts: Choose 5-Row Compact (17–19 keys/row), 6-Row Balanced (14 keys/row), or 9-Row Canonical (traditional articulatory varga grouping).
  • Phonetic Legends & Glyph Scaling: Switch key sub-labels between Traditional Cham romanization, Sanskrit indological equivalents, or Glyph Only, and scale keycap glyphs from 16px to 22px.
  • Scratchpad & Logical Order Normalizer: Compose text independently in the scratchpad bar, click Normalize to enforce canonical cluster order, Copy to clipboard, or click Insert ↵ to append into the active transcription line. Drag the ⋮⋮ title bar anywhere on screen, or click ⟲ to re-dock to the bottom-right corner.

07 Multi-Format Corpus & Active Learning Export (Ctrl + E)

Click Export in the top header to export either the Active Manuscript Folio Only or the Entire Transcribed Corpus Queue (Multi-Page):

📋 Copy Plaintext & 📄 Unicode TXT (.txt)
Clean UTF-8 diplomatic line transcriptions normalized in canonical Brahmic Logical Order, separated by folio headers in multi-page mode.
📑 Scholarly Markdown Report (.md)
Publication-ready document bundling folio status, numbered Cham textlines, confidence percentages, and italic Romanized transliterations.
🗂 Structured JSON (.json)
Preserves exact bounding boxes, polygon vertices, confidences, and verification flags; 100% compatible with scripts/ingest_studio_to_realscan_gold.py.
🏛 Archival PAGE-XML (.xml)
PRImA 2019 XML schema encoding polygonal <Coords> and <Unicode> text equivalents for interoperability with Transkribus and eScriptorium.
⚡ Active Learning Dataset Package (.zip) Select Active Learning Dataset (.zip) to generate a self-contained training archive on the server containing cropped line images (crops/*.png), tab-delimited PaddleOCR training pairs (train_list.txt), active-learning metadata (corrections.jsonl), corpus_manifest.json, and per-folio plaintext/Markdown transcriptions.

08 Master Keyboard Shortcuts Reference

Type in the sidebar search box (/) to filter this shortcut table instantaneously:

Shortcut Scope Action
Ctrl + K / ⌘KGlobalOpen / close the fuzzy-search Command Palette
Ctrl + OGlobalOpen file picker to upload multiple images or a multi-page PDF
Ctrl + VGlobalPaste manuscript image directly from system clipboard
Ctrl + EnterGlobalExecute OCR transcription on the active manuscript folio
Ctrl + Shift + EnterGlobalStart automated Batch OCR across all unprocessed folios in queue
Ctrl + EGlobalOpen the Multi-Format & ZIP Corpus Export modal
Alt + 1 .. Alt + 4LayoutSwitch between 3-Pane, Compare, Stacked, and Reader modes
Alt + QLayoutToggle the collapsible Corpus Queue drawer
Alt + CEditorCycle synced line cutout mode (Focus → All → Off)
Alt + KKeyboardToggle the floating Akhar Thrah Virtual Keyboard
Alt + PEditorToggle Diplomatic Lines ↔ Continuous Stanza / Paragraph Flow
Alt + TEditorToggle live Romanized transliteration subtitles (Aa Roman)
Alt + UEditorToggle the Unicode Paleographic Cluster Inspector drawer (U+ Cluster)
Ctrl + FEditorOpen Find & Replace across the active folio
Ctrl + Z / Ctrl + YEditorUndo / Redo editorial changes (40-step history stack)
↑ / ↓EditorSelect previous / next textline
EnterEditorOpen inline edit for selected line (or commit active edit)
AReviewVerify selected line (100% human-verified) and advance to next line
WReviewFlag selected line as Needs review
SReviewSplit selected line (at caret position when editing, or midpoint)
MReviewMerge selected line with the succeeding line below
RReviewRe-run neural OCR on the selected line's bounding box
Delete / BackspaceReviewDelete selected textline (when not typing inside an input)
[ / ]ReviewJump to previous / next flagged or low-confidence textline
BCanvasCycle Bounding Box overlay (Spotlight → All Boxes → Hidden)
DCanvasToggle manual Draw Bounding Box mode
PCanvasToggle curved Cham-DBNet Polygon Ribbon overlay
LCanvasToggle 2.6× Paleographic Magnifier Loupe
EscGlobalCancel inline edit, exit Draw/Loupe mode, or close open modal/keyboard

09 Paleographic Best Practices & Troubleshooting FAQ

My palm-leaf or stone rubbing scan is sideways, dark, or white-ink-on-black. How should I prepare it?
First, if the folio is rotated 90°/270°, click the Rotate 90° Clockwise button in the canvas toolbar until textlines run horizontally—rotation updates the actual image sent to the OCR engine. For visual proofreading of dark palm leaves or white-on-black stone rubbings, open Optical Filters (◐) and enable Invert Dark/Rubbing Ink or boost Contrast to 150%–190%.
When should I choose V26.1 SOTA vs. Auto Router vs. Historical Baselines (V25 / V24 / V23)?
Use V26.1 SOTA (v24_1_r4) for pure Eastern Cham (Akhar Thrah) manuscripts and printed Cham poetry—its padding-masked W=480 canvas and isolated 114-token vocabulary prevent stray Latin characters on aged paper. Choose Auto Router whenever pages mix or alternate Cham stanzas with Vietnamese translations and headers. Keep V25 / V24 / V23 strictly for historical comparative benchmarking rather than production transcription.
A line was missed or its bounding box clipped a character at the margin. How do I fix it without re-running the whole page?
If an existing line's box is slightly too narrow, click the line to reveal its 4 corner resize handles, drag the corner outward to cover the clipped glyph, and press R (Re-OCR). If a line was missed altogether, press D (Draw Manual Bounding Box) and drag a rectangle over the missed textline—the Studio crops, transcribes, and inserts it into the exact vertical reading position automatically.
Why does my folio say "OCR done" instead of "Verified" even when all confidences are high?
To uphold archival ground-truth integrity, automatic neural predictions are never marked Verified on their own. Once you review the folio—or click Verify ≥75% and manually verify any remaining lines with A—the folio badge transitions to green Verified.