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

老國音 #60

Open
wants to merge 58 commits into
base: main
Choose a base branch
from
Open

老國音 #60

wants to merge 58 commits into from

Conversation

307587
Copy link

@307587 307587 commented Sep 9, 2024

未完成

@syimyuzya
Copy link
Member

  • 未完成,應該用 draft 而非 open 狀態
  • 列出的三項參考資料,僅第二項 rime-bepemefeve 宜作參考,而第一項 Old-National-Pronunciation 不完整,第三項 lau_guoq_in 是「偽老國音」

※ 關於「偽老國音」請參:https://www.bilibili.com/read/cv17377530/

@syimyuzya syimyuzya marked this pull request as draft October 8, 2024 08:27
@syimyuzya syimyuzya mentioned this pull request Oct 8, 2024
@307587
Copy link
Author

307587 commented Oct 24, 2024

爲什麼要改上面「攷」部份的連結?WV條目有什麼問題?那版本的推導器不是廢了嗎?

@syimyuzya syimyuzya mentioned this pull request Oct 25, 2024
老國音.js Outdated Show resolved Hide resolved
老國音.js Outdated
['喉塞|標示入聲喉塞音韻尾\n啟用「注音符號」時無效', true],
['調式', [8, '調值(趙元任)', '調值(王璞)', '調線(趙元任)', '調線(王璞)', '附標', '調號上標', '調號', '調符']],
['聲調在前\n調式爲「附標」時無效', false],
['隔聲韻調\n調式爲「附標」時只隔聲和韻', [3, '空格', '定位', '無']],
Copy link
Member

@graphemecluster graphemecluster Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
['隔聲韻調\n調式爲「附標」時只隔聲和韻', [3, '空格', '定位', '無']],
[`隔聲韻調
調式爲「附標」時只隔聲和韻`, [3,
{ text: '空格', value: ' ' },
{ text: '定位', value: '\t' },
{ text: '無', value: '' },
]],

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這樣改會令推導器顯示方括號有問題

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這樣改會令推導器顯示方括號有問題

不明白


現在在推導器中傳回陣列結果雖然看起來與直接 concatenate 沒有分別,但實際上是連續的 text nodes
所以我認為可以先傳回陣列,這些選項留待日後加入到複製/匯出設定,見 nk2028/tshet-uinh-autoderiver#54
@syimyuzya 這樣可以嗎

老國音.js Outdated Show resolved Hide resolved
老國音.js Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
test/main.js Outdated Show resolved Hide resolved
307587 and others added 5 commits November 22, 2024 16:52
Co-authored-by: graphemecluster <[email protected]>
Co-authored-by: graphemecluster <[email protected]>
Co-authored-by: graphemecluster <[email protected]>
Co-authored-by: graphemecluster <[email protected]>
Co-authored-by: graphemecluster <[email protected]>
307587 and others added 2 commits November 22, 2024 17:51
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

隔聲韻調的選項這樣改會令推導器標示方括號有問題;let 隔位那些也可以廢了吧

@ayaka14732
Copy link
Member

那不如全轉回中文名吧,畢竟更易明

那也可以。那就保留 老國音.js,先 merge 看看有沒有問題。如果沒問題再改其他的。

不太好……这样在引用云上的 .js 文件 URL 时,文件名会不好写

具體是在什麼場合會用到?

@untunt
Copy link
Member

untunt commented Nov 23, 2024

那不如全轉回中文名吧,畢竟更易明

那也可以。那就保留 老國音.js,先 merge 看看有沒有問題。如果沒問題再改其他的。

不太好……这样在引用云上的 .js 文件 URL 时,文件名会不好写

具體是在什麼場合會用到?

例如切韵新韵图需要 fetch 一些推导方案QYS4MCPDict 需要下载一些推导方案

if (['p', 'pʰ', 'm', 'f'].includes(聲母) && 韻母[0] === 'u' && 韻母[1] && !['n', 'ŋ', 'ʔ'].includes(韻母[1])) 韻母 = 韻母.slice(1);
if (['f', 'ʋ'].includes(聲母) && 韻母[0] === 'i') 韻母 = 韻母.slice(1) || 'əi';

if (選項.注音符號 !== true && 韻母 === 'uən' && ['t', 'tʰ', 'n', 'l', 'ts', 'tsʰ', 's'].includes(聲母)) 韻母 = 選項.ㄨㄣ; //ㄨㄣ元音
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (選項.注音符號 !== true && 韻母 === 'uən' && ['t', 'tʰ', 'n', 'l', 'ts', 'tsʰ', 's'].includes(聲母)) 韻母 = 選項.ㄨㄣ; //ㄨㄣ元音
if (選項.注音符號 !== true && 韻母 === 'uən') 韻母 = 選項.ㄨㄣ; //ㄨㄣ元音

同上面评论

老國音.js Outdated Show resolved Hide resolved
老國音.js Outdated
...(選項.注音符號 === false ? ['附標'] : []), '調號上標', '調號', '調符',
]],
['聲調在前\n調式爲「附標」時無效', false],
['隔聲韻調|隔聲韻調\n調式爲「附標」時只隔聲和韻', ''], //待加?留空則爲跳格:(選項.隔聲韻調 || '\t')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

隔聲韻調的意义是?普通用户好像要不到这个功能,我建议隐藏这个选项

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他的意思是分隔符,但的確好像沒甚麼意思

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是爲進階用戶而設,將推導結果貼到試算表可以直接分開聲韻調統計

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

進階用戶或許可以直接修改程式碼

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看這個 comment
#60 (comment)

老國音.js Outdated Show resolved Hide resolved
老國音.js Outdated
{ text: '半元音:j w ɥ', value: '半元音' },
], { hidden: 選項.注音符號 === true }],
['ㄚ|ㄚ元音\nㄧㄞ:寬式/iai/、嚴式[iæi]\nㄧ、ㄩ後的ㄢ:寬式/-an/、嚴式[-ɛn]', [2, '嚴式', '寬式']],
['ㄨㄣ|舌冠聲母後的ㄨㄣ讀音\n趙元任《國音新詩韻》:「ㄨㄣ」也可以一律照樣拼念作「ㄨㄜㄋ」,但是在「ㄉ,ㄊ,ㄋ,ㄌ;ㄗ,ㄘ,ㄙ」七個聲母後頭可以省去「ㄜ」音念「ㄨㄋ」', [2, 'un', 'uən']],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
['ㄨㄣ|舌冠聲母後的ㄨㄣ讀音\n趙元任《國音新詩韻》:「ㄨㄣ」也可以一律照樣拼念作「ㄨㄜㄋ」,但是在「ㄉ,ㄊ,ㄋ,ㄌ;ㄗ,ㄘ,ㄙ」七個聲母後頭可以省去「ㄜ」音念「ㄨㄋ」', [2, 'un', 'uən']],
['ㄨㄣ|\n趙元任《國音新詩韻》:「ㄨㄣ」也可以一律照樣拼念作「ㄨㄜㄋ」,但是在「ㄉ,ㄊ,ㄋ,ㄌ;ㄗ,ㄘ,ㄙ」七個聲母後頭可以省去「ㄜ」音念「ㄨㄋ」', [2, 'un', 'uən'], { hidden: 選項.注音符號 !== false }],

[un] vs [uən] 是对这个韵母记音处理的区别,不是为了表示不同声母后的区别,所以这个选项应当对所有声母都适用

老國音.js Outdated Show resolved Hide resolved
老國音.js Outdated
Comment on lines 25 to 29
['調式', ['調符',
'調值(趙元任)', '調值(王璞)', '調線(趙元任)', '調線(王璞)',
...(選項.注音符號 === false ? ['附標'] : []), '調號上標', '調號', '調符',
]],
['聲調在前\n調式爲「附標」時無效', false],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
['調式', ['調符',
'調值(趙元任)', '調值(王璞)', '調線(趙元任)', '調線(王璞)',
...(選項.注音符號 === false ? ['附標'] : []), '調號上標', '調號', '調符',
]],
['聲調在前\n調式爲「附標」時無效', false],
['聲調', [1, '五度符號(趙元任)', '五度符號(王璞)', '調值數字(趙元任)', '調值數字(王璞)', '調類數字', '調類數字(不上標)'], { hidden: 選項.注音符號 !== false }],

可以考虑这样。注音符号的调号不能用在国际音标上。调号标在前的作用是什么?另外可以考虑对注音符号加一个“省略陰平調號”的选项

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注音符号的调号不能用在国际音标上

那是組合附加符號,目的就是讓你與其他字元自由搭配

调号标在前

是參考「寬式國際音標(wong_ipa」的標法

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

国际音标里 ā 是中平调,á 是高平调,ǎ 是升调,à 是低平调,所以这套附加符号不能直接搬进国际音标;现代汉语研究也几乎没人在写国际音标时用附加符号表示声调,所以就不用考虑这个选项啦。调形标在音节前的写法在 1989 年就作废了,现在国内外学界没有人用,所以也不用考虑啦

老國音.js Show resolved Hide resolved
@graphemecluster
Copy link
Member

這樣會過多 { hidden: 選項.注音符號 !== false },我建議 refactor 一下該成 ...(選項.注音符號 !== false ? [/* ... */] : []) 這樣

307587 and others added 5 commits November 23, 2024 09:52
不明覺厲

Co-authored-by: unt <[email protected]>
Co-authored-by: graphemecluster <[email protected]>
@307587
Copy link
Author

307587 commented Nov 23, 2024

@syimyuzya 至於考察「古代同地位演變成現今不同音」的正音問題,我找到最齊全的就只有@baopaau 的字音表,@baopaau 你對推導這些地位的今音有什麼看法?(如莊組臻韻入聲)

@untunt
Copy link
Member

untunt commented Nov 24, 2024

@syimyuzya 至於考察「古代同地位演變成現今不同音」的正音問題,我找到最齊全的就只有@baopaau 的字音表,@baopaau 你對推導這些地位的今音有什麼看法?(如莊組臻韻入聲)

这种通常不需要“我们”提供看法,看实际字音的分化情况就能判断了。例如庄组臻摄入声,用音韻地位查詢器莊組 臻韻 入聲 字,再查 baopaau 的字表(不算其中《康熙字典》的):

  • 庄母:楖瀄 ㄓ˙、㘉 ㄗ˙/ㄗㄧ˙、櫛 ㄗㄧㄝ˙
  • 初母:㓼䜉 ㄔ˙
  • 崇母:𪗨 ㄔㄨㄛ˙
  • 生母:瑟蝨璱 ㄕㄜ˙、飋 ㄕㄛ˙

尽管它实际上是不规则分化,但我们仍然可以放心写下这样的规则:

  ['真臻殷韻', [
    ['生母', 'əʔ'],
    ['莊組', 'ʅʔ'],
    ['', 'iʔ'],
  ]],

像“見組泰合韻韻母”,实际上它不是个问题,疑母泰韵合口去声变 uai 这是一个规则演变,只是它只涉及这一个音节罢了,不能类推给其他见组

(我还意识到,韵母演变规则应该以摄 + 音韻地位.韻圖等 为条件来写,不过可以留待本 pr 合入之后我们再改)

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.

5 participants