Start work on grapheme segmentation algorithm

This commit is contained in:
Kovid Goyal
2025-03-13 11:19:54 +05:30
parent 98f9a568ce
commit 9c1c141775
4 changed files with 87 additions and 2 deletions

View File

@@ -483,7 +483,7 @@ def gen_grapheme_segmentation() -> None:
p('')
gp('')
enum('GraphemeBreakProperty', 'None', *grapheme_segmentation_maps, prefix='GBP_')
enum('GraphemeBreakProperty', 'AtStart', 'None', *grapheme_segmentation_maps, prefix='GBP_')
enum('IndicConjunctBreak', 'None', *incb_map, prefix='ICB_')
def get_cat(name: str, c_func_name: str, go_func_name: str, prefix: str, m: dict[str, set[int]]) -> None: