-
Notifications
You must be signed in to change notification settings - Fork 3
Implement 音韻地位.合法性 #5
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
Open
untunt
wants to merge
12
commits into
nk2028:feat-0.5.x
Choose a base branch
from
untunt:feat-0.5.x
base: feat-0.5.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a14ddef
Implement 音韻地位.合法性 (previously 音韻地位.is_normal)
untunt 88d4a13
Fix
untunt c190b7c
Apply suggestions from code review
syimyuzya 696ee45
Format code
ayaka14732 e920f58
Squashed commit of the following:
ayaka14732 52584c5
Fix build error
ayaka14732 1c51520
Add 常量.陰聲韻 and explanation to 音位配列規則表
untunt 1c77b58
Remove superfluous '韻' from 常量.陰聲韻
syimyuzya bb36eac
Apply suggestions from code review (tuple over list)
syimyuzya ead55c2
Format documentation
ayaka14732 91b3c89
Modify explanation of 音位配列規則表
untunt 58baa37
祭韻仙韻合口不再莊三化二
untunt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
from enum import IntEnum | ||
|
||
class 合法性等級(IntEnum): | ||
無效, 強非法, 弱非法, 弱合法, 稀有合法, 強合法 = range(6) | ||
|
||
@property | ||
def 字符串(self) -> str: | ||
return self.name | ||
|
||
|
||
# 以下規則只適用於更優音韻地位 | ||
# (合法性等級, 禁止的情況, 排除的情況) | ||
音位配列規則表 = [ | ||
(合法性等級.無效, '陰聲韻 入聲', None), | ||
syimyuzya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
(合法性等級.無效, '邪章昌船書常日以羣母 一二四等', None), | ||
(合法性等級.無效, '端組 二三等', None), # 地打 | ||
(合法性等級.強非法, '次入韻', '去聲'), | ||
syimyuzya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
(合法性等級.強非法, '幫組 之韻', None), | ||
(合法性等級.強非法, '陽唐庚耕清青蒸登韻 銳音 合口', '以母 清韻'), | ||
(合法性等級.強非法, '四等 合口 銳音', None), | ||
(合法性等級.強非法, '云母 開口', '宵侵鹽韻'), | ||
(合法性等級.強非法, '麻韻 三等', '銳音 開口'), | ||
(合法性等級.強非法, '侵鹽韻 重紐A類', '影母'), | ||
(合法性等級.強非法, '俟母', '之韻'), | ||
(合法性等級.弱非法, '來母 二等', None), | ||
(合法性等級.弱非法, '歌韻 三等', '見影組 平聲'), | ||
(合法性等級.弱非法, '痕韻 銳音', None), | ||
(合法性等級.弱非法, '幫組 蕭添韻', None), | ||
(合法性等級.弱非法, '祭韻 見影組 重紐A類', '影母'), | ||
(合法性等級.弱非法, '祭韻 幫組 重紐B類', None), | ||
(合法性等級.弱合法, '冬韻 鈍音 舒聲', None), | ||
(合法性等級.弱合法, '船母 尤之東陽祭宵鹽韻', None), | ||
(合法性等級.弱合法, '麻韻 三等 知組', None), | ||
(合法性等級.弱合法, '蒸韻 合口 舒聲', None), | ||
(合法性等級.弱合法, '東韻 三等 上聲', None), | ||
(合法性等級.弱合法, '佳麻皆夬韻 合口 知組', None), | ||
(合法性等級.弱合法, '山刪韻 合口 舒聲 知組', None), | ||
(合法性等級.稀有合法, '銜韻 知組', None), | ||
(合法性等級.稀有合法, '云母 鍾韻', None), | ||
(合法性等級.稀有合法, '脂仙宵韻 見影組 開口 重紐A類', '影母'), | ||
(合法性等級.稀有合法, '幫組 咸覃銜談韻', None), | ||
(合法性等級.稀有合法, '脂韻 莊組', '生母'), | ||
(合法性等級.稀有合法, '真臻韻 莊組 合口', '生母 入聲'), | ||
(合法性等級.稀有合法, '蒸韻 上聲', None), | ||
(合法性等級.稀有合法, '登韻 合口 上去聲', None), | ||
(合法性等級.稀有合法, '冬韻 上聲', None), | ||
(合法性等級.稀有合法, '皆韻 上聲', '見影組 開口'), | ||
(合法性等級.稀有合法, '邪母 虞東宵韻', None), | ||
] | ||
syimyuzya marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.