feat: replace wanakana with english-to-kana 49K dictionary

- Vendor english-kana-matcher.js (english-to-kana, MIT, 49216 words)
- Rewrite bridge: dictionary lookup + letter-by-letter fallback for OOV words
- Convert English punctuation (,.!?) to Japanese pauses (、。)
- Fix Chinese fullwidth comma being stripped by filter_kana
- Preserve decimal points in numbers (3.5 -> スリーファイブ)
- main.py now applies filter_kana (matches web UI behavior)
- Remove wanakana dependency; rebuild portable zip (82.5 MB)
This commit is contained in:
2026-08-08 15:06:34 +08:00
parent fd5c732d8a
commit 0c0e63161d
8 changed files with 152 additions and 40 deletions
-22
View File
@@ -1,22 +0,0 @@
{
"name": "bililive-touhou-tts",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "bililive-touhou-tts",
"dependencies": {
"wanakana": "^5.3.1"
}
},
"node_modules/wanakana": {
"version": "5.3.1",
"resolved": "https://registry.npmmirror.com/wanakana/-/wanakana-5.3.1.tgz",
"integrity": "sha512-OSDqupzTlzl2LGyqTdhcXcl6ezMiFhcUwLBP8YKaBIbMYW1wAwDvupw2T9G9oVaKT9RmaSpyTXjxddFPUcFFIw==",
"license": "MIT",
"engines": {
"node": ">=12"
}
}
}
}