X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..0f5d89e82340278ed3d7d50029f37cab2c41a57e:/icuSources/data/translit/Thai_ThaiLogical.txt diff --git a/icuSources/data/translit/Thai_ThaiLogical.txt b/icuSources/data/translit/Thai_ThaiLogical.txt index f4bb6d4d..e7045cde 100644 --- a/icuSources/data/translit/Thai_ThaiLogical.txt +++ b/icuSources/data/translit/Thai_ThaiLogical.txt @@ -1,16 +1,22 @@ -# *************************************************************************** -# * -# * Copyright (C) 2004-2006, International Business Machines -# * Corporation; Unicode, Inc.; and others. All Rights Reserved. -# * -# *************************************************************************** +# © 2016 and later: Unicode, Inc. and others. +# License & terms of use: http://www.unicode.org/copyright.html#License +# # File: Thai_ThaiLogical.txt -# Generated from CLDR: Thu Jul 20 16:27:19 PDT 2006 +# Generated from CLDR # + +# 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:] ก-\u0E3Aเ-๛] ; -' ' < $thai { '; ' } $thai; -< $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; -$2 $1 < ( $thai_non_reversing ) ( $thai_reversing ) ; +( $thai_reversing ) ( $thai_non_reversing ) → $2 $1; +# other direction +$2 $1 ← ( $thai_non_reversing ) ( $thai_reversing ) ; +