Skip to content

Commit

Permalink
bug fix (不影響字型)
Browse files Browse the repository at this point in the history
  • Loading branch information
ButTaiwan committed May 16, 2020
1 parent bbe0133 commit 3e74549
Show file tree
Hide file tree
Showing 5 changed files with 188 additions and 267 deletions.
4 changes: 2 additions & 2 deletions ime/gen_jsdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
f = File.open('poyin_db.txt', 'w:utf-8')
f.puts "# 教育部「國語一字多音審訂表(初稿)」範圍"
db.each { |c, v|
next if v['g'] != 'A'
next if v['g'] !~ /A/

v['r'].each { |r, vs|
f.puts "[#{c}] #{r}\t" + vs.join('/') unless v['f']
Expand All @@ -75,7 +75,7 @@
f.puts
f.puts "# 國語一字多音審訂表未收錄範圍"
db.each { |c, v|
next if v['g'] == 'A'
next if v['g'] =~ /A/

v['r'].each { |r, vs|
f.puts "[#{c}] #{r}\t" + vs.join('/')
Expand Down
50 changes: 25 additions & 25 deletions ime/poyin_db.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@
[告] ㄍㄨˋ *朔
[呢] ˙ㄋㄜ
[呢] ㄋㄧˊ *喃/*絨
[呱] ㄍㄨㄚ 頂**/**叫
[呱] ㄨㄚ **墮地/**而泣
[呱] ㄍㄨ
[呵] ㄏㄜ
[呵] ㄛ
[和} ㄏㄜˊ 大*/*平/*風/*尚/總*
Expand All @@ -223,8 +226,14 @@
[和} ㄏㄨˊ *牌
[咎] ㄐㄧㄡˋ
[咎] ㄍㄠ
[咔] ㄎㄚ
[咔] ㄎㄚˇ
[咕] ㄍㄨ
[咕] ˙ㄍㄨ 嘀*
[咯] ˙ㄌㄛ
[咯] ㄍㄜ **叫
[咯] ㄎㄚˇ *血
[咯] ㄌㄨㄛˋ
[咱] ㄗㄢˊ *們
[咱] ㄗㄚˊ *家
[咳] ㄎㄜˊ *嗽/*血/夜*
Expand Down Expand Up @@ -262,6 +271,8 @@
[啞] ㄧㄚ **/嘔*
[啦] ˙ㄌㄚ
[啦] ㄌㄚ 啪*/**隊
[喏] ㄋㄨㄛˋ
[喏] ㄖㄜˇ 唱*/聲*
[喒] ㄗㄢˊ *們
[喒] ㄗㄚˊ *家
[喔] ㄛ
Expand All @@ -278,6 +289,8 @@
[嗎] ㄇㄚˇ *啡
[嗑] ㄎㄜˋ
[嗑] ㄏㄜˊ **/噬*
[嗒] ㄉㄚ
[嗒] ㄊㄚˋ
[嗦] ㄙㄨㄛ
[嗦] ˙ㄙㄨㄛ 哆*
[嘍] ㄌㄡˊ
Expand Down Expand Up @@ -1023,6 +1036,8 @@
[華] ㄏㄨㄚˊ
[華] ㄏㄨㄚ
[華] ㄏㄨㄚˋ *山
[菲] ㄈㄟ 芳*/**/*律賓
[菲] ㄈㄟˇ *薄/*食
[落] ㄌㄨㄛˋ *下/*地/降*
[落] ㄌㄚˋ *了/*在/*掉/*四
[落] ㄌㄠˋ *枕/蓮花*
Expand Down Expand Up @@ -1212,10 +1227,20 @@
[釐] ㄒㄧ 祝*/春*
[釘] ㄉㄧㄥ 鐵*
[釘] ㄉㄧㄥˋ *書/*門牌/*扣子/*書機/*書針
[鈷] ㄍㄨ
[鈷] ㄍㄨˇ *鉧
[鉛] ㄑㄧㄢ
[鉛] ㄧㄢˊ
[銻] ㄊㄧˋ
[銻] ㄊㄧˊ 鎕*
[銼] ㄘㄨㄛˋ
[銼] ㄗㄨㄛˋ
[鋪] ㄆㄨ
[鋪] ㄆㄨˋ 當*/店*/床*/商*/金*/臥*/上*/下*/地*/書*/酒*/香*/貨*/藥*/打*/吊*
[鋼] ㄍㄤ
[鋼] ㄍㄤˋ
[鏑] ㄉㄧˊ 鳴*/*鋒
[鏑] ㄉㄧ 化*
[鐺] ㄉㄤ 鋃*/鈴*
[鐺] ㄔㄥ 酒*/茶*
[鑽] ㄗㄨㄢ *洞
Expand Down Expand Up @@ -1954,9 +1979,6 @@
[呡] ㄇㄧㄣˊ
[呬] ㄒㄧˋ
[呬] ㄌㄧㄥˊ
[呱] ㄍㄨㄚ 頂**/**叫
[呱] ㄨㄚ **墮地/**而泣
[呱] ㄍㄨ
[呴] ㄒㄩˇ
[呴] ㄏㄡ
[呺] ㄒㄧㄠ
Expand All @@ -1974,8 +1996,6 @@
[咊] ㄏㄜˊ
[咑] ㄉㄚ
[咑] ˙ㄉㄚ
[咔] ㄎㄚ
[咔] ㄎㄚˇ
[咠] ㄑㄧˋ
[咠] ㄑㄧ
[咣] ㄍㄨㄥ
Expand All @@ -1984,10 +2004,6 @@
[咤] ㄓㄚˋ
[咥] ㄒㄧˋ
[咥] ㄉㄧㄝˊ
[咯] ˙ㄌㄛ
[咯] ㄍㄜ **叫
[咯] ㄎㄚˇ *血
[咯] ㄌㄨㄛˋ
[咰] ㄒㄩㄣˊ
[咰] ㄕㄨㄞˋ
[咶] ㄏㄨㄞˋ
Expand Down Expand Up @@ -2048,8 +2064,6 @@
[喁] ㄩㄥˊ
[喌] ㄓㄨˋ
[喌] ㄓㄡ
[喏] ㄋㄨㄛˋ
[喏] ㄖㄜˇ 唱*/聲*
[喞] ㄐㄧˊ
[喞] ㄐㄧ
[喡] ㄨㄟ
Expand All @@ -2071,8 +2085,6 @@
[嗌] ㄧˋ
[嗏] ㄔㄚˊ
[嗏] ㄔㄚ
[嗒] ㄉㄚ
[嗒] ㄊㄚˋ
[嗕] ㄖㄨˋ
[嗕] ㄋㄡˋ
[嗛] ㄑㄧㄢˇ
Expand Down Expand Up @@ -4848,8 +4860,6 @@
[菏] ㄍㄜ
[菟] ㄊㄨˋ
[菟] ㄊㄨˊ
[菲] ㄈㄟ 芳*/**/*律賓
[菲] ㄈㄟˇ *薄/*食
[萁] ㄑㄧˊ
[萁] ㄐㄧ
[萆] ㄅㄟ
Expand Down Expand Up @@ -5672,8 +5682,6 @@
[鈶] ㄙˋ
[鈶] ㄘˊ
[鈶] ㄊㄞˊ
[鈷] ㄍㄨ
[鈷] ㄍㄨˇ *鉧
[鈹] ㄆㄧˊ
[鈹] ㄆㄧ
[鈿] ㄉㄧㄢˋ
Expand All @@ -5685,8 +5693,6 @@
[鉇] ㄊㄚ
[鉈] ㄊㄚ
[鉈] ㄊㄨㄛˊ
[鉛] ㄑㄧㄢ
[鉛] ㄧㄢˊ
[鉟] ㄆㄧˊ
[鉟] ㄆㄧ
[鉢] ㄅㄛˊ
Expand All @@ -5712,10 +5718,6 @@
[銚] ㄉㄧㄠˋ
[銭] ㄑㄧㄢˊ
[銭] ㄐㄧㄢˇ
[銻] ㄊㄧˋ
[銻] ㄊㄧˊ 鎕*
[銼] ㄘㄨㄛˋ
[銼] ㄗㄨㄛˋ
[銽] ㄒㄧㄢ
[銽] ㄍㄨㄚ
[銽] ㄊㄧㄢˇ
Expand Down Expand Up @@ -5793,8 +5795,6 @@
[鏊] ㄠˋ
[鏏] ㄨㄟˋ
[鏏] ㄏㄨㄟˋ
[鏑] ㄉㄧˊ 鳴*/*鋒
[鏑] ㄉㄧ 化*
[鏒] ㄑㄧㄠ
[鏒] ㄙㄢˇ
[鏔] ㄧㄣˊ
Expand Down
8 changes: 4 additions & 4 deletions phonetic/make_ptable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def make_tableZ

rs.split(/\t/).each { |t|
read[c][t] = 100000 if !read[c].has_key?(t)
ptype[t] = 'C' if !ptype.has_key?(t) || ptype[c] == '?'
ptype[t] = 'C' if !ptype.has_key?(t) || ptype[t] == '?'
}
}
f.close
Expand All @@ -344,7 +344,7 @@ def make_tableZ

rs.split(/\t/).each { |t|
read[c][t] = 0 if !read[c].has_key?(t)
ptype[t] = 'B' if !ptype.has_key?(t) || ptype[c] == '?'
ptype[t] = 'B' if !ptype.has_key?(t) || ptype[t] == '?'
}
#tmp[3..-1].each { |t| ptype[t] = 'B' unless ptype.has_key?(t) }
end
Expand All @@ -363,7 +363,7 @@ def make_tableZ
src[c] = 'D'
rs.split(/\t/).each { |t|
read[c][t] = 0 if !read[c].has_key?(t)
ptype[t] = 'D' unless ptype.has_key?(t) || ptype[c] == '?'
ptype[t] = 'D' if !ptype.has_key?(t) || ptype[t] == '?'
}
end
}
Expand All @@ -380,7 +380,7 @@ def make_tableZ
read[c] = {} unless read.has_key?(c)
rs.split(/\t/).each { |t|
read[c][t] = 0 if !read[c].has_key?(t)
ptype[t] = 'E' unless ptype.has_key?(t) || ptype[c] == '?'
ptype[t] = 'E' if !ptype.has_key?(t) || ptype[t] == '?'
}
end
}
Expand Down
Loading

0 comments on commit 3e74549

Please sign in to comment.