mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-09 07:52:27 +00:00
Support mapping a General Category to a General Category Group.
This commit is contained in:
+7
-2
@@ -173,9 +173,9 @@ using namespace ucd;
|
||||
sys.stdout.write('}\n')
|
||||
|
||||
sys.stdout.write("""
|
||||
ucd::category_group ucd::lookup_category_group(codepoint_t c)
|
||||
ucd::category_group ucd::lookup_category_group(category c)
|
||||
{
|
||||
switch (lookup_category(c))
|
||||
switch (c)
|
||||
{
|
||||
case Cc: case Cf: case Cn: case Co: case Cs:
|
||||
return C;
|
||||
@@ -195,4 +195,9 @@ ucd::category_group ucd::lookup_category_group(codepoint_t c)
|
||||
return I;
|
||||
}
|
||||
}
|
||||
|
||||
ucd::category_group ucd::lookup_category_group(codepoint_t c)
|
||||
{
|
||||
return lookup_category_group(lookup_category(c));
|
||||
}
|
||||
""")
|
||||
|
||||
Reference in New Issue
Block a user