Files
epub_bilingual_translator/archive/v0.09/test_spacing.py
T
谭凯 7a93c52b42 feat: Release v0.10 - Modular Architecture & External Config
- Refactor codebase into src/ (preprocessing, translation, assembly)
- Add pipeline/ scripts for individual stages
- Externalize configuration to config/config.yaml
- Fix Cover Image preservation
- Update documentation and manuals
2026-01-31 22:49:44 +08:00

17 lines
400 B
Python

from src.utils import add_spacing_between_cn_and_en_num
cases = [
"在全φ1φ员会议",
"全φ1φ员",
"φ1φTable Talkφ/1φ",
"测试φ12φ测试",
"测试φ/12φ测试"
]
for text in cases:
processed = add_spacing_between_cn_and_en_num(text)
print(f"Original: '{text}'")
print(f"Processed: '{processed}'")
print(f"Changed: {text != processed}")
print()