Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated pinyin based on suggestions from jeffreyxuan-san #17

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

MaruTama
Copy link
Owner

@MaruTama MaruTama commented Jul 7, 2024

Issue

#7

Commits

Updated Pinyin based on pypinyin v0.51.0

Main

  • b07db87 : Updated the pinyin of the characters in the support
  • 5f5e465 : Temporarily removed unsupported phonetic symbols of pinyin
  • cdd2fa7 : Resolved build errors caused by updating override.txt
  • b58b034 : Update artifacts

Additional fixes

  • 2d06766 : Add find_circular_reference_gid.py
  • ac89354 : Add error message

方針

現時点ではcmapのGlyphID は65565個までしか対応できない。
結構ギリギリなので、本PR では「通用规范汉字表」「大五码−2023」「常用漢字表」の漢字の拼音のみ更新する。

$ python src/main.py --style han_serif
glyph_order table を追加完了
  ==> glyf num : 63140

$ python src/main.py --style handwritten
glyph_order table を追加完了
  ==> glyf num : 65195

「通用规范汉字表」「大五码−2023」「常用漢字表」範囲外の漢字の拼音サポート方法おいおい検討予定。
(.ttcのフォントコレクションにするか、もしくはCFF2のFontDICTSelectを使う等)
下記ファイルは jeffreyxuan-san's marged-mapping-table.txt から「通用规范汉字表」「大五码−2023」「常用漢字表」範囲外の漢字を抽出したもの。

また、国字の拼音対応も進める。

あと、Temporarily removed unsupported phonetic symbols of pinyin で回避している発声文字のê, ế, も対応する

@MaruTama
Copy link
Owner Author

MaruTama commented Jul 7, 2024

cdd2fa7overwrite.txt変更点

多音字の参照関係でエラーになったもののみ変更した。軽声は優先度低めにしている。

  • 划 は 佰划 が足りてないのでpypinyin に合わせる
  • 刨 は拼音の順番はどっちでもいいが pypinyin に合わせる
  • 阴 の拼音の順番を変える。大陸では通常 yīn なので
  • 差 は拼音の順番はどっちでもいいが pypinyin に合わせる
  • 朝は pypinyin に合わせる
  • 夕 は拼音の順番はどっちでもいいが pypinyin に合わせる
  • 相 は拼音の順番はどっちでもいいが pypinyin に合わせる
  • 称 は拼音の順番はどっちでもいいが pypinyin に合わせる
  • 头 は pypinyin に合わせる
  • 价 の拼音の順番を変える。大陸では通常 jià なので
  • 重 は pypinyin に合わせる
  • 戏 の拼音の順番を変える。大陸では通常 xì なので
  • 双 ****の拼音の順番を変える。shuāng
  • 种 は pypinyin に合わせる
  • 畜 は pypinyin に合わせる
  • 担 の拼音の順番を変える。 dān
  • 弹 は pypinyin に合わせる
  • 当 の拼音の順番を変える。dāng
  • 归の拼音の順番を変える。大陸では通常 guī
  • 过 は pypinyin に合わせる
  • 分 は pypinyin に合わせる
  • 干 は àn を追加した
  • 将 は pypinyin に合わせる
  • 行 は pypinyin に合わせる
  • 会の拼音の順番を変える。大陸では通常huì
  • 胜 は pypinyin に合わせる
  • 假 は gēi を追加
  • 期 は qí を追加。大陸では qī
  • 角 は pypinyin に合わせる
  • 斗 は dǒu を前にする
  • 校 は pypinyin に合わせる
  • 金 は pypinyin に合わせる
  • 脱 は tuǒ を追加
  • 壳 は quèを追加
  • 样 yàng を標準にして、xiàngを追加
  • 儿 ēr,ní,r を追加
  • 马 軽声を削除
  • 脚は pypinyin に合わせる
  • 模 軽声を削除
  • 悄 qiǎoを標準にした
  • 切 qiēを標準にした
  • 洁 は pypinyin に合わせる
  • 企 は pypinyin に合わせる
  • 关 はxiàoを追加
  • 亲 xīnを追加
  • 省 は pypinyin に合わせる
  • 挑 は pypinyin に合わせる
  • 熨 は pypinyin に合わせる
  • 帖 は tiè,tiě,tiē にした
  • 宁 は pypinyin に合わせる
  • 血 は pypinyin に合わせる
  • 迹 は pypinyin に合わせる
  • 泊 はjeffey-san の方に合わせる
  • 要 は pypinyin に合わせる
  • 挣 は pypinyin に合わせる
  • 扎 は pypinyin に合わせる 軽声を削除
  • 尽 はjeffey-san の方に合わせる
  • 着 はjeffey-san の方に合わせる
  • 门 mēnを追加。阿门のため
  • 兀 は pypinyin に合わせる

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.

1 participant