Skip to content

Commit

Permalink
Fix unt: missing medial [ɣ] in unt L (2024) when vowel is [u]
Browse files Browse the repository at this point in the history
  • Loading branch information
untunt committed Feb 1, 2024
1 parent 0243b80 commit 156ee60
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions unt.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function get選項列表() {
isJ新版 && [1, '開j̈ 唇ʋ 合w', '開j̈ 唇ʋ 合ɥ̈', '開j̈ 唇β 合ɥ̈'].slice(0, is專業模式 ? 4 : 3) ||
isJ原版 && [1, '開j̈ 唇β 合ɥ̈ '] ||
is朗讀音 && [1, '開j̈ 唇ɥ̈ 合ẅ'] ||
is通俗 && [1, '開ɨ 唇低ɨ 唇非低ʉ 合ʉ', '開ɨ 唇ʉ 合ʉ'],
is通俗 && [1, '開ɨ 唇低ɨ 唇非低ʉ 合ʉ'],
],
['脂支魚虞', isJ2024 || isL ? [2,
'i ie ɨə uo',
Expand All @@ -76,17 +76,17 @@ function get選項列表() {
['j 韻尾去聲作 ɹ', isJ新版 || isL ? false : null], // 脂韻去聲則後加 ɹ
['見組非三等簡寫作軟腭音', isJ2024 ? false : null],
['見組非三等簡寫作軟腭音 ', is通俗 ? true : null],
].concat(is專業模式 && !is通俗 ? [
].concat(is專業模式 && !is通俗 && !is朗讀音 ? [
'高級選項',
['前部聲母非三等', isL ? [1, 'ᵱ ɫ', 'pˤ lˤ', 'p̙ l̙'] : null],
['知組', isJ原版 ? [2, 'ʈ', 'tɹ'] : null],
['二等元音記號', !is朗讀音 ? [1,
['二等元音記號', [1,
'咽化 ◌ˤ',
'r音鉤(帶空隙)◌˞ ',
'r音鉤(無空隙)◌˞',
'下等號 ◌͇',
'雙下橫線 ◌̳', // 僅在下等號顯示不正常時使用
] : null],
]],
['顯示純音位形式', isL ? false : null],
'', // 在 v0.1 推導器中使「恢復預設值」按鈕位於下一行
] : []);
Expand Down Expand Up @@ -281,7 +281,8 @@ function 調整聲母(音節) {
[isJ原版 || is朗讀音 || is通俗 || isJ2024, { 'ʡ': 'ʔ' }],
[isJ原版 || is朗讀音 || is通俗, { 'ɫ': 'l' }],
[isJ原版 || is朗讀音, { 'x': 'h' }],
[選項.見組非三等簡寫作軟腭音, { 'q': 'k', 'ɴ': 'ŋ', 'χ': 'x', 'ʁ': 'ɣ' }],
[選項.見組非三等簡寫作軟腭音, { 'q': 'k', 'ɴ': 'ŋ', 'χ': 'x' }],
[選項.見組非三等簡寫作軟腭音 && is通俗, { 'ʁ': 'ɣ' }],
[選項.知組 === 'tɹ', { 'ʈ': 'tɹ', 'ɖ': 'dɹ', 'ɳ': 'nɹ' }],
].reduce((prev, cur) => Object.assign(prev, cur[0] ? cur[1] : {}), {});

Expand All @@ -302,6 +303,7 @@ function 調整鈍C介音(音節) {
['歌陽韻', 鈍C唇低],
['', 鈍C唇非低],
]],
[isJ2024 && 音節.韻核 !== 'ɨ', 鈍C開],
[!['ɨ', 'u'].includes(音節.韻核) || '東尤韻', 鈍C開],
]],
]],
Expand Down

0 comments on commit 156ee60

Please sign in to comment.