Skip to content

fix(tw): 修正雲端相關詞彙中誤留簡體「云」的問題 - #418

Merged
Vonng merged 1 commit into
Vonng:mainfrom
JYu1999:fix/tw-cloud-character
Sep 19, 2026
Merged

Vonng merged 1 commit into
Vonng:mainfrom
JYu1999:fix/tw-cloud-character

Conversation

@JYu1999

@JYu1999 JYu1999 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

繁體版有三處「云」應為「雲」:

位置 現況 應為
content/tw/ch1.md:248 原生系統 原生系統
content/tw/ch1.md:217 有云服務 有雲服務
content/v1_tw/ch8.md:126 有云服務 有雲服務

原因是 OpenCC 的 s2twp 把「有云」「但云」斷成文言的「云(曰)」,因此沒有轉換。

因為 content/tw/content/v1_tw/ 是由 bin/zh-tw.py 生成的,只改 Markdown 會在下次 make translate 被蓋掉,所以修正加在腳本既有的例外清單中,並同步更新生成檔:

.replace('云原生', '雲原生')
.replace('云服務', '雲服務'),

content/tw/ch10.md:14 的「古諺有云」是正確的文言用法,兩條規則都不會匹配到,維持原狀。

OpenCC's s2twp segments 現有云服務 / 公有云服務 / 但云原生 with the
classical 云 ("to say", as in 古諺有云) and therefore leaves the
character unconverted, where 雲 is meant.

Add two post-conversion fixups to bin/zh-tw.py alongside the existing
exception list, and apply them to the generated files:

- content/tw/ch1.md:217  現有云服務  -> 現有雲服務
- content/tw/ch1.md:248  但云原生系統 -> 但雲原生系統
- content/v1_tw/ch8.md:126 公有云服務 -> 公有雲服務

The genuine classical usage in content/tw/ch10.md:14 (古諺有云) is
deliberately left alone; neither rule matches it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants