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.
V24.1-R4 SOTA) and click Transcribe (Ctrl+Enter) or Batch (Ctrl+Shift+Enter)..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
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.pdfdocument 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
.pdfopens the Import Multi-Page PDF dialog:- Specify a flexible Page Range such as
1-10,1,4,7-12, orall. - Choose a Rasterization Resolution: 150 DPI (fast preview), 220 DPI (recommended paleographic fidelity), or 300 DPI (ultra-fine epigraphic detail).
- Specify a flexible Page Range such as
- 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 / Unprocessedfolios 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.8polygon 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 a0.40 × median_line_heightvertical diacritic cushion. Adjustable via the Minimum Interlinear Gap (px) slider. - Multi-Column Reading Order:
Automatic Column Detectionidentifies dual-column folios (and full-width titles above columns) automatically; switch toStrict Top-to-Bottom Rowswhen 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%to1000%). - 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.5pxbaseline rules on unselected lines (dashed amber forNeeds review, sage forVerified) while illuminating full core-band boxes only on the hovered or active line. Press B (or click Spotlight in the HUD) to cycleSpotlight → 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-DBNeton 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
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%, Amber45%–74%, Red< 45%). Clicking any line highlights its box on the canvas; clicking an individual Cham grapheme zooms the canvas to175%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
Focus → All → Off anytime.
U+AA00–U+AA5F), categories, canonical Logical Order status, and minimal-pair alerts.
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), or9-Row Canonical(traditional articulatory varga grouping). - Phonetic Legends & Glyph Scaling: Switch key sub-labels between
TraditionalCham romanization,Sanskritindological equivalents, orGlyph Only, and scale keycap glyphs from16pxto22px. - 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):
.txt).md).json)scripts/ingest_studio_to_realscan_gold.py..xml)<Coords> and <Unicode> text equivalents for interoperability with Transkribus and eScriptorium..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 / ⌘K | Global | Open / close the fuzzy-search Command Palette |
| Ctrl + O | Global | Open file picker to upload multiple images or a multi-page PDF |
| Ctrl + V | Global | Paste manuscript image directly from system clipboard |
| Ctrl + Enter | Global | Execute OCR transcription on the active manuscript folio |
| Ctrl + Shift + Enter | Global | Start automated Batch OCR across all unprocessed folios in queue |
| Ctrl + E | Global | Open the Multi-Format & ZIP Corpus Export modal |
| Alt + 1 .. Alt + 4 | Layout | Switch between 3-Pane, Compare, Stacked, and Reader modes |
| Alt + Q | Layout | Toggle the collapsible Corpus Queue drawer |
| Alt + C | Editor | Cycle synced line cutout mode (Focus → All → Off) |
| Alt + K | Keyboard | Toggle the floating Akhar Thrah Virtual Keyboard |
| Alt + P | Editor | Toggle Diplomatic Lines ↔ Continuous Stanza / Paragraph Flow |
| Alt + T | Editor | Toggle live Romanized transliteration subtitles (Aa Roman) |
| Alt + U | Editor | Toggle the Unicode Paleographic Cluster Inspector drawer (U+ Cluster) |
| Ctrl + F | Editor | Open Find & Replace across the active folio |
| Ctrl + Z / Ctrl + Y | Editor | Undo / Redo editorial changes (40-step history stack) |
| ↑ / ↓ | Editor | Select previous / next textline |
| Enter | Editor | Open inline edit for selected line (or commit active edit) |
| A | Review | Verify selected line (100% human-verified) and advance to next line |
| W | Review | Flag selected line as Needs review |
| S | Review | Split selected line (at caret position when editing, or midpoint) |
| M | Review | Merge selected line with the succeeding line below |
| R | Review | Re-run neural OCR on the selected line's bounding box |
| Delete / Backspace | Review | Delete selected textline (when not typing inside an input) |
| [ / ] | Review | Jump to previous / next flagged or low-confidence textline |
| B | Canvas | Cycle Bounding Box overlay (Spotlight → All Boxes → Hidden) |
| D | Canvas | Toggle manual Draw Bounding Box mode |
| P | Canvas | Toggle curved Cham-DBNet Polygon Ribbon overlay |
| L | Canvas | Toggle 2.6× Paleographic Magnifier Loupe |
| Esc | Global | Cancel 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?
150%–190%.
When should I choose V26.1 SOTA vs. Auto Router vs. Historical Baselines (V25 / V24 / V23)?
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?
Why does my folio say "OCR done" instead of "Verified" even when all confidences are high?
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.