| 1 |
# © 2016 and later: Unicode, Inc. and others. |
| 2 |
# License & terms of use: http://www.unicode.org/copyright.html |
| 3 |
# Generated using tools/cldr/cldr-to-icu/ |
| 4 |
# |
| 5 |
# File: Thai_ThaiLogical.txt |
| 6 |
# Generated from CLDR |
| 7 |
# |
| 8 |
|
| 9 |
# This reverses the Thai LogicalOrderException vowels, and does (part of) spaces |
| 10 |
# The rules that convert space into semicolon are in another file; |
| 11 |
# since they have to come BEFORE the break iterator |
| 12 |
$thai = [[:Thai:] ก-\u0E3Aเ-๛] ; |
| 13 |
# First convert the semicolon back |
| 14 |
' ' ← $thai { '; ' } $thai; |
| 15 |
# Remove any other spaces between thai letters |
| 16 |
← $thai { ' ' } $thai; |
| 17 |
# Now vowels |
| 18 |
$thai_reversing = [[:Logical_Order_Exception:] & $thai]; |
| 19 |
$thai_non_reversing = [$thai - $thai_reversing ]; |
| 20 |
( $thai_reversing ) ( $thai_non_reversing ) → $2 $1; |
| 21 |
# other direction |
| 22 |
$2 $1 ← ( $thai_non_reversing ) ( $thai_reversing ) ; |
| 23 |
|