Repository navigation
Add classical-context phrases to STPhrases for one-to-many s2t characters - #1479
Conversation
…ters Book titles from pre-modern Chinese corpora were mis-converted because characters such as 征/咸/斗/里/范/岳/冲/郁/谷 fall back to STCharacters, whose first candidate is chosen for modern usage. Adding phrase entries fixes 46 of 47 wrong titles found in the 殆知閣 collection without changing any modern-sense conversion. Detailed Changes: - **STPhrases.txt**: - Added conquest senses of 征 (征南/征东/征西/征北/征缅/征台/征乌梁海/从征实录/从征缅). - Added reign titles and adverbial senses of 咸 (咸淳/咸平/咸通/咸康/咸熙/咸雍/咸同/咸宾/少长咸集/咸有一德). - Added constellation senses of 斗 (斗姆/斗母/四斗/贯斗/说东斗/说西斗/东斗星君/西斗星君). - Added place names and transliterations for 里 (里乘/步里客谈/碧里杂存/甫里/锦里/花里活/摩里支/矩里迦/村屯里数). - Added surname senses of 范 and 岳 (范文正/范太史/范忠宣/范德机/范叔/范氏/范公/岳武穆/岳王/岳王庙/景岳). - Added Daoist senses of 冲 (道冲/圣诞冲举/冲碧丹经) and Sanskrit transliterations of 郁 (郁迦罗越/郁多罗). - Changed 谷神 to keep 谷 (《老子》「谷神不死」); 谷神星 still maps to 穀神星 via the longer key. - Added 干禄, 姜斋, 泛胜之, 授时历, 大统历, 历指, 历引, 沈馆录, 石屋余沈, 石屋续沈, 警寤钟, 薛仁贵. - **testcases.json**: - Added eight s2t cases covering each character group. - Added a guard case asserting modern senses stay unchanged (股東鬥毆, 服從徵召, 散步裏面, 學歷指標, 示範公司, 鹹魚鹹菜).
0ac431a to
35b5fce
Compare
這批詞條的來歷本 PR 的詞條不是憑印象挑的,而是來自一份外部語料庫產生的「已標註錯誤集」。 背景。 daizhige.org(殆知閣)是一個古籍語料庫,每筆記錄的 錯誤集。 殆知閣近期一個 commit 訂正了 56 條這類篇名(去重後 52 條)。把這些簡體 這些首選項對現代文本是對的(鹹魚、鬥毆、徵收、範例),不應更動。修正該落在 擴大掃描。 沒有止步於這 56 條,而是把全庫 18,056 條不重複的簡體篇名全部轉換後與 詞條在回歸測試後做過收窄初稿為每個義項取了最短的自然鍵。用現代語句探測後發現有幾個會跨詞邊界誤命中,遂改為
有兩條提案完全撤下: 驗證
回饋給語料庫這次掃描也找出兩條是殆知閣自己錯、而非 OpenCC 錯的篇名——大宋中興通俗演義嶽王傳 |
Bump every version string to 1.4.2, finalize the NEWS entry, and adjust
the Debian packaging so the release build stamps the new version. The
C++ ABI is unchanged from 1.4.1, so OPENCC_ABI_VERSION stays at 1.4.
Detailed Changes:
- **Version strings**:
- `cmake/GitVersion.cmake`: `_OPENCC_FALLBACK_REVISION` 1 -> 2.
- `scripts/compute-version.sh`: `FALLBACK_VERSION` 1.2.1 -> 1.4.2; it
had drifted out of sync with `cmake/GitVersion.cmake` since 1.2.1.
- `setup.py`, `MODULE.bazel`, `node/BUILD.bazel`,
`scripts/build-cli-windows-zig.sh`,
`scripts/build-node-windows-zig.sh`: bumped to 1.4.2.
- `package.json` and `plugins/jieba/node/package.json`: version and the
five `@opencc/*` optional dependencies bumped to 1.4.2.
- `package-lock.json`: version bumped and the `node_modules/@opencc/*`
entries dropped; their integrity hashes are regenerated after the
scoped binary packages are published, as in 1.4.1.
- **NEWS.md**:
- `Unreleased` becomes `Version 1.4.2` with the release date.
- Added the STPhrases classical-context entries for one-to-many s2t
characters found while cleaning up the Daizhige corpus (#1479).
- Noted the fallback-version bump and the resulting Debian patch drop.
- **README.md**: prebuilt binary links and the release-focus paragraph
updated to 1.4.2.
- **Debian packaging**:
- Added a `1.4.2-1` changelog entry; `release-deb.yml` names its
artifacts from `dpkg-parsechangelog`, which would otherwise still
report `1.4.1+ds1-7`.
- Dropped `0010-fix-git-version-fallback.patch`: it moves the fallback
revision from 0 to 1, which neither applies nor reverse-applies once
upstream ships 2, and would abort `scripts/build-deb-packages.sh`.
- `packaging/debian/README.md`: refreshed the baseline, patch list and
refresh instructions to describe the two deltas above.
Book titles from pre-modern Chinese corpora daizhige.org were mis-converted because characters such as 征/咸/斗/里/范/岳/冲/郁/谷 fall back to STCharacters, whose first candidate is chosen for modern usage. Adding phrase entries fixes 46 of 47 wrong titles found in the 殆知閣 collection without changing any modern-sense conversion.
Detailed Changes: