How yfengg/scanlate works
Scanlate is a multilingual comic-translation workbench. Users create projects and chapters, import pages, detect or define text regions, OCR or enter source text, generate translation candidates, review warnings and terminology, then edit and approve translations. Approval records trusted translations in project memory and can suggest glossary decisions. The graph includes documented validation, sound-effect, and page-imaging capabilities; rendering/export are not implemented. Some links reflect README statements or source-index references rather than inspected call sites, so uncertain integrations are marked dashed.
Main entry points: pipeline.py Translation decisions · app.py HTTP API · repository.py Project repository · service.py Page workflow
Components 27
Translation workflow
- Translation decisions
src/scanlate/pipeline/pipeline.py - Human approval
src/scanlate/pipeline/approval.py - Translation validators
src/scanlate/validation/validators.py
Page imaging
- Page workflow
src/scanlate/imaging/service.py - Page import
src/scanlate/imaging/importer.py - Region detection
src/scanlate/imaging/detection.py - OCR
src/scanlate/imaging/ocr.py - Region geometry
src/scanlate/imaging/layout.py
Language intelligence
- Language adapters
src/scanlate/core/adapter.py - Linguistic analysis
src/scanlate/core/analysis.py - Japanese adapter
src/scanlate/languages/ja/adapter.py - Korean adapter
src/scanlate/languages/ko/adapter.py - English adapter
src/scanlate/languages/en/adapter.py - Local context
src/scanlate/context/local.py - SFX rendering
src/scanlate/sfx/renderer.py - SFX categories
src/scanlate/sfx/categories.py
Project knowledge
- Project glossary
src/scanlate/glossary/store.py - Translation memory
src/scanlate/memory/store.py
Application platform
- HTTP API
src/scanlate/api/app.py - Page routes
src/scanlate/api/pages.py - Workbench UI
src/scanlate/workbench/view.py - Response schemas
src/scanlate/api/schemas.py - Project repository
src/scanlate/storage/repository.py - Domain records
src/scanlate/storage/models.py - Transaction boundary
src/scanlate/storage/unit_of_work.py
Other components
- Translator
- MT backend
Connections 37
- Translator → Workbench UI: uses
README.md - Workbench UI → HTTP API: requests
README.md - HTTP API → Page routes: routes pages
src/scanlate/api/app.py - HTTP API → Translation decisions: calls
- HTTP API → Human approval: calls
src/scanlate/api/app.py - HTTP API → Project repository: reads and writes
src/scanlate/api/app.py - HTTP API → Response schemas: serializes
src/scanlate/api/app.py - Page routes → Page workflow: delegates
src/scanlate/api/pages.py - Page routes → Project repository: reads and writes
src/scanlate/api/pages.py - Page workflow → Page import: imports pages
src/scanlate/imaging/service.py - Page workflow → Region detection: detects regions
src/scanlate/imaging/service.py - Page workflow → OCR: reads regions
src/scanlate/imaging/service.py - Page workflow → Region geometry: uses geometry
src/scanlate/imaging/service.py - Page workflow → Project repository: persists segments
src/scanlate/imaging/service.py - Translation decisions → Language adapters: analyzes text
src/scanlate/pipeline/pipeline.py - Translation decisions → Project glossary: checks terms
src/scanlate/pipeline/pipeline.py - Translation decisions → Translation memory: checks precedent
src/scanlate/pipeline/pipeline.py - Translation decisions → Local context: gets context
src/scanlate/pipeline/pipeline.py - Translation decisions → Translation validators: reports issues
src/scanlate/pipeline/pipeline.py - Translation decisions → SFX rendering: renders SFX
src/scanlate/pipeline/pipeline.py - Translation decisions → MT backend: requests candidate
src/scanlate/pipeline/pipeline.py - Translation decisions → Project repository: loads segments
src/scanlate/pipeline/pipeline.py - Language adapters → Linguistic analysis: produces analysis
src/scanlate/core/adapter.py - Japanese adapter → Language adapters: implements
src/scanlate/languages/ja/adapter.py - Korean adapter → Language adapters: implements
src/scanlate/languages/ko/adapter.py - English adapter → Language adapters: implements
src/scanlate/languages/en/adapter.py - SFX rendering → SFX categories: uses categories
src/scanlate/sfx/renderer.py - Human approval → Project repository: updates state
src/scanlate/pipeline/approval.py - Human approval → Translation memory: records approval
src/scanlate/pipeline/approval.py - Human approval → Project glossary: suggests terms
src/scanlate/pipeline/approval.py - Human approval → Transaction boundary: commits atomically
src/scanlate/pipeline/approval.py - Project glossary → Transaction boundary: uses transactions
src/scanlate/glossary/store.py - Translation memory → Transaction boundary: uses transactions
src/scanlate/memory/store.py - Project repository → Domain records: maps records
src/scanlate/storage/repository.py - Project repository → Transaction boundary: shares boundary
src/scanlate/storage/repository.py - HTTP API → Workbench UI: serves page
src/scanlate/api/app.py - Translation validators → Project glossary: checks decisions
src/scanlate/validation/validators.py