A digitized archive of Rev. D.H. Davis's Shanghai Dialect Exercises in Romanized and Character with Key to Pronunciation and English Index (1910).
D.H. Davis 牧师所著《上海方言练习》(1910) 的数字化档案。
| Full Documentation / 完整文档 | digitized/README.md |
| Page Index / 页面索引 | digitized/PAGE_INDEX.md |
| Original Source / 原始来源 | Internet Archive |
-
Original Text (1910): Public Domain.
-
Digital Edition (Code & Layout): Licensed under CC BY 4.0.
-
原著文本 (1910): 公有领域。
-
数字化版本 (源码与排版): 基于 CC BY 4.0 协议授权。
├── digitized/ # Original digitized content / 数字化内容 (JXL images)
├── typst_source/ # Digital Edition Source / 数字化排版源码 (Typst)
│ ├── contents/ # Lessons, preliminary, and appendices / 课文与附件
│ ├── template.typ # Typography and styling / 样式与宏定义
│ └── main.typ # Main document entry / 主入口
├── src/ # Python backend for tools / 自动化工具源码
├── xtask.py # Project Management Tool / 项目管理工具入口
└── shanghai-dialect-exercises.pdf # Latest compiled edition / 最新编译成品
We use a specialized toolchain (xtask.py) to manage the digitization project, ensure phonetic consistency, and automate corrections.
我们使用专门的工具链 (xtask.py) 来管理数字化进程、确保发音一致性并自动化修正工作。
- Automated Quality Control: Phonetic consistency analysis and alignment shift (displacement) detection.
- Intelligent Fixer: Auto-correction of OCR artifacts (ghost numbers) and safe alignment fixes.
- Rule Induction: Automatically learns phonetic mapping rules from the corpus to guide corrections.
- Typst Integration: One-click compilation of the digital edition with standardized metadata.
Requires uv or standard Python 3.10+.
# Analysis
uv run python xtask.py analyze all # Run all quality checks
uv run python xtask.py analyze displacement # Check for page alignment issues
# Repair
uv run python xtask.py fix --auto # Apply safe fixes project-wide
# Build
uv run python xtask.py compile # Build the PDF editionDigitized & Maintained 2026-01-15