Skip to content

Commit

Permalink
feat: add is_compat_{jaum, moum}()
Browse files Browse the repository at this point in the history
  • Loading branch information
WieeRd committed Mar 20, 2024
1 parent b7d7e10 commit fad0e40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ricecake/offset.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ def is_compat_jamo(c: str, /) -> bool:
return COMPAT_JAMO_BASE <= ord(c) <= COMPAT_JAMO_END


def is_compat_jaum(c: str, /) -> bool:
"""Checks if a character is a modern Hangul Compatibility Jamo Jaum."""
return MODERN_COMPAT_JAUM_BASE <= ord(c) <= MODERN_COMPAT_JAUM_END


def is_compat_moum(c: str, /) -> bool:
"""Checks if a character is a modern Hangul Compatibility Jamo Moum."""
return MODERN_COMPAT_MOUM_BASE <= ord(c) <= MODERN_COMPAT_MOUM_END


def is_hangul(c: str, /) -> bool:
"""Checks if a character is a Hangul character.
Expand Down

0 comments on commit fad0e40

Please sign in to comment.