1<?xml version="1.0" encoding="UTF-8" ?> 2<!DOCTYPE supplementalData SYSTEM "../../common/dtd/ldmlSupplemental.dtd"> 3<!-- 4Copyright © 1991-2013 Unicode, Inc. 5CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/) 6For terms of use, see http://www.unicode.org/copyright.html 7--> 8<supplementalData> 9 <version number="$Revision: 12139 $"/> 10 <transforms> 11 <transform source="Thai" target="ThaiLogical" direction="both" visibility="internal"> 12 <tRule><![CDATA[ 13# This reverses the Thai LogicalOrderException vowels, and does (part of) spaces 14# The rules that convert space into semicolon are in another file; 15# since they have to come BEFORE the break iterator 16$thai = [[:thai:] ก-ฺเ-๛] ; 17# First convert the semicolon back 18' ' ← $thai { '; ' } $thai; 19# Remove any other spaces between thai letters 20← $thai { ' ' } $thai; 21# Now vowels 22$thai_reversing = [[:Logical_Order_Exception:] & $thai]; 23$thai_non_reversing = [$thai - $thai_reversing ]; 24( $thai_reversing ) ( $thai_non_reversing ) → $2 $1; 25# other direction 26$2 $1 ← ( $thai_non_reversing ) ( $thai_reversing ) ; 27 ]]></tRule> 28 </transform> 29 </transforms> 30</supplementalData> 31