-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: note tasks and predefine function signatures
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
@@ -1 +1,21 @@ | ||
"""(De)composition of Hangul Jamo and Syllable.""" | ||
|
||
|
||
def compose(cho: str, jung: str, jong: str | None) -> str: | ||
"""Composes Choseong, Jungseong, and Jongseong into a Syllable.""" | ||
... | ||
|
||
|
||
def decompose(syl: str) -> tuple[str, str, str | None]: | ||
"""Decomposes a Syllable into Choseong, Jungseong, and Jongseong.""" | ||
... | ||
|
||
|
||
# FEAT: decompose composite Jaum and Moum into tuple of str | ||
# | | ||
# | - [ ] There are 5 cases, cho/jung/jong and compat jaum/moum. | ||
# | Which should be included and which should be not? | ||
# | | ||
# | - [ ] Should it be keyboard-based or shape-based? | ||
# | "ㅐ" is "ㅏ" + "ㅣ" but it can be typed at once with a keyboard. | ||
# | If so, should "ㅙ" be decomposed to ("ㅗ", "ㅐ") or ("ㅗ", "ㅏ", "ㅣ")? |
This file contains 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 |
---|---|---|
@@ -1 +1,21 @@ | ||
"""Conversion between Hangul Jamo and Compatibility Jamo.""" | ||
|
||
|
||
def jamo_to_compat_jamo(c: str, /) -> str | None: | ||
"""Maps a Jamo character to a Compatibility Jamo character.""" | ||
... | ||
|
||
|
||
def compat_jaum_to_choseong(c: str, /) -> str | None: | ||
"""Maps a Compatibility Jaum character to a Jamo Choseong character.""" | ||
... | ||
|
||
|
||
def compat_moum_to_jungseong(c: str, /) -> str: | ||
"""Maps a Compatibility Moum character to a Jamo Jungseong character.""" | ||
... | ||
|
||
|
||
def compat_jaum_to_jongseong(c: str, /) -> str: | ||
"""Maps a Compatibility Jaum character to a Jamo Jongseong character.""" | ||
... | ||
This file contains 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