[Unicode]   CLDR Charts Home | Site Map | Search
 

¤Thai-ThaiLogical

CLDR Version 28 Index

Lists data fields that differ from the last version. Inherited differences in locales are suppressed, except where the source locales are different. The collations and metadata still have a raw format. The rbnf, segmentations, and annotations are not yet included.

PathOldNew
…/transforms/transform[@source="Thai"][@target="ThaiLogical"][@direction="both"]/tRule$thai = [[:thai:] ก-ฺเ-๛] ;
' ' ← $thai { '; ' } $thai;
← $thai { ' ' } $thai;
$thai_reversing = [[:Logical_Order_Exception:] & $thai];
$thai_non_reversing = [$thai - $thai_reversing ];
( $thai_reversing ) ( $thai_non_reversing ) → $2 $1;
$2 $1 ← ( $thai_non_reversing ) ( $thai_reversing ) ;
# This reverses the Thai LogicalOrderException vowels, and does (part of) spaces
# The rules that convert space into semicolon are in another file;
# since they have to come BEFORE the break iterator
$thai = [[:thai:] ก-ฺเ-๛] ;
# First convert the semicolon back
' ' ← $thai { '; ' } $thai;
# Remove any other spaces between thai letters
← $thai { ' ' } $thai;
# Now vowels
$thai_reversing = [[:Logical_Order_Exception:] & $thai];
$thai_non_reversing = [$thai - $thai_reversing ];
( $thai_reversing ) ( $thai_non_reversing ) → $2 $1;
# other direction
$2 $1 ← ( $thai_non_reversing ) ( $thai_reversing ) ;