mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-17 02:30:24 +00:00
Remove noBreak from ucd_properties -- it is a DispositionType, not a PropList type.
This commit is contained in:
+18
-19
@@ -120,25 +120,24 @@ def decomposition_type(data, dtype):
|
||||
return None
|
||||
|
||||
def properties(data):
|
||||
props = 0
|
||||
props += 1 * data.get('White_Space', 0)
|
||||
props += 2 * (decomposition_type(data, '<noBreak>') != None)
|
||||
props += 4 * data.get('Bidi_Control', 0)
|
||||
props += 8 * data.get('Join_Control', 0)
|
||||
props += 16 * data.get('Dash', 0)
|
||||
props += 32 * data.get('Hyphen', 0)
|
||||
props += 64 * data.get('Quotation_Mark', 0)
|
||||
props += 128 * data.get('Terminal_Punctuation', 0)
|
||||
props += 256 * data.get('Other_Math', 0)
|
||||
props += 512 * data.get('Hex_Digit', 0)
|
||||
props += 1024 * data.get('ASCII_Hex_Digit', 0)
|
||||
props += 2048 * data.get('Other_Alphabetic', 0)
|
||||
props += 4096 * data.get('Ideographic', 0)
|
||||
props += 8192 * data.get('Diacritic', 0)
|
||||
props += 16384 * data.get('Extender', 0)
|
||||
props += 32768 * data.get('Other_Lowercase', 0)
|
||||
props += 65536 * data.get('Other_Uppercase', 0)
|
||||
props += 131072 * data.get('Noncharacter_Code_Point', 0)
|
||||
props = 0
|
||||
props += (2 ** 0) * data.get('White_Space', 0)
|
||||
props += (2 ** 1) * data.get('Bidi_Control', 0)
|
||||
props += (2 ** 2) * data.get('Join_Control', 0)
|
||||
props += (2 ** 3) * data.get('Dash', 0)
|
||||
props += (2 ** 4) * data.get('Hyphen', 0)
|
||||
props += (2 ** 5) * data.get('Quotation_Mark', 0)
|
||||
props += (2 ** 6) * data.get('Terminal_Punctuation', 0)
|
||||
props += (2 ** 7) * data.get('Other_Math', 0)
|
||||
props += (2 ** 8) * data.get('Hex_Digit', 0)
|
||||
props += (2 ** 9) * data.get('ASCII_Hex_Digit', 0)
|
||||
props += (2 ** 10) * data.get('Other_Alphabetic', 0)
|
||||
props += (2 ** 11) * data.get('Ideographic', 0)
|
||||
props += (2 ** 12) * data.get('Diacritic', 0)
|
||||
props += (2 ** 13) * data.get('Extender', 0)
|
||||
props += (2 ** 14) * data.get('Other_Lowercase', 0)
|
||||
props += (2 ** 15) * data.get('Other_Uppercase', 0)
|
||||
props += (2 ** 16) * data.get('Noncharacter_Code_Point', 0)
|
||||
return props
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user