Skip to content

Update consts.ts:這些就是我說的在白表加更多內容#40

Open
307587 wants to merge 13 commits intonk2028:mainfrom
307587:patch-1
Open

Update consts.ts:這些就是我說的在白表加更多內容#40
307587 wants to merge 13 commits intonk2028:mainfrom
307587:patch-1

Conversation

@307587
Copy link
Copy Markdown

@307587 307587 commented Oct 10, 2024

Copy link
Copy Markdown
Member

@syimyuzya syimyuzya left a comment

Choose a reason for hiding this comment

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

好耶~仔細看了一下,感覺稍加改進就可以合併了

@307587 307587 changed the title Update consts.ts:這些就是我說的在白表加更多內容,#58 Update consts.ts:這些就是我說的在白表加更多內容 Dec 9, 2024
307587 and others added 8 commits December 15, 2024 15:48
Co-authored-by: Sêkai Zhou <syimyuzya@gmail.com>
Co-authored-by: graphemecluster <graphemecluster@gmail.com>
Co-authored-by: graphemecluster <graphemecluster@gmail.com>
Co-authored-by: Sêkai Zhou <syimyuzya@gmail.com>
Co-authored-by: graphemecluster <graphemecluster@gmail.com>
Co-authored-by: graphemecluster <graphemecluster@gmail.com>
@307587
Copy link
Copy Markdown
Author

307587 commented Jan 10, 2025

應該可以了

@307587
Copy link
Copy Markdown
Author

307587 commented Dec 23, 2025

為什麼還未合併?是不是還有什麼問題?

@syimyuzya
Copy link
Copy Markdown
Member

為什麼還未合併?是不是還有什麼問題?

啊不好意思😂 一直沒發現已經做完了

Copy link
Copy Markdown
Member

@syimyuzya syimyuzya left a comment

Choose a reason for hiding this comment

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

討論了一下,這個結構的推導方案模板,還是不太適合效法。

參考最近我們寫的較新的推導方案(例如新版 unt 擬音平水韻(盛唐)擬音,以及稍早些的《中原音韻》擬音等等),再提一些需要調整的地方:

  • 聲母規則 等名字不適合用作函數名,作 get聲母 這樣的動詞成分為佳
  • 推聲母、韻母、聲調三者,然後作調整,這種邏輯說不上好用。可以像上述參考的方案那樣,定義 get音節,然後在裡面依照具體需要,去定義音節成分或屬性,比如聲母、介音、韻基(或核/尾)、聲調等(在模板中可以不用都給出來,給個 get聲母 的框架然後用註解提示還可以寫些什麼就好)
    • 另外,作為推導結果的各成分,均置於一 音節 物件中,也令其名稱在代碼中更清晰
    • 上述參考中,中原音韻方案稍早些,沒完全像這樣做,也用的 get韻母,但它裡面也是有內部結構的
  • 入聲韻尾自然也不適合作為「後期處理」,推導韻尾時就可以直接做
  • 相應地,推導結果中的 韻母 + 聲調 也並不好用,在這之前先處理出「帶調的韻基」結果更合適
  • 羅列「攝」的註解可以直接不要(就像聲母那樣給一個例子就好,比如就給一個 // ['止攝', '止攝韻基'] 之類)

以上作為參考建議,如果還有什麼經驗(或想法)也歡迎提出或嘗試~

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.

加範本

3 participants