1 /*
   2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /*
  27  */
  28 
  29 /*
  30  * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
  31  * (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
  32  *
  33  * The original version of this source code and documentation
  34  * is copyrighted and owned by Taligent, Inc., a wholly-owned
  35  * subsidiary of IBM. These materials are provided under terms
  36  * of a License Agreement between Taligent and Sun. This technology
  37  * is protected by multiple US and International patents.
  38  *
  39  * This notice and attribution to Taligent may not be removed.
  40  * Taligent is a registered trademark of Taligent, Inc.
  41  *
  42  */
  43 
  44 package sun.text.resources;
  45 
  46 import java.util.ListResourceBundle;
  47 
  48 public class CollationData_th extends ListResourceBundle {
  49 
  50     protected final Object[][] getContents() {
  51         return new Object[][] {
  52             { "Rule",
  53                 "! "                            // First turn on the SE Asian Vowel/Consonant
  54                                                 // swapping rule
  55                 + "& Z "                        // Put in all of the consonants, after Z
  56                 + "< \u0E01 "                   //  KO KAI
  57                 + "< \u0E02 "                   //  KHO KHAI
  58                 + "< \u0E03 "                   //  KHO KHUAT
  59                 + "< \u0E04 "                   //  KHO KHWAI
  60                 + "< \u0E05 "                   //  KHO KHON
  61                 + "< \u0E06 "                   //  KHO RAKHANG
  62                 + "< \u0E07 "                   //  NGO NGU
  63                 + "< \u0E08 "                   //  CHO CHAN
  64                 + "< \u0E09 "                   //  CHO CHING
  65                 + "< \u0E0A "                   //  CHO CHANG
  66                 + "< \u0E0B "                   //  SO SO
  67                 + "< \u0E0C "                   //  CHO CHOE
  68                 + "< \u0E0D "                   //  YO YING
  69                 + "< \u0E0E "                   //  DO CHADA
  70                 + "< \u0E0F "                   //  TO PATAK
  71                 + "< \u0E10 "                   //  THO THAN
  72                 + "< \u0E11 "                   //  THO NANGMONTHO
  73                 + "< \u0E12 "                   //  THO PHUTHAO
  74                 + "< \u0E13 "                   //  NO NEN
  75                 + "< \u0E14 "                   //  DO DEK
  76                 + "< \u0E15 "                   //  TO TAO
  77                 + "< \u0E16 "                   //  THO THUNG
  78                 + "< \u0E17 "                   //  THO THAHAN
  79                 + "< \u0E18 "                   //  THO THONG
  80                 + "< \u0E19 "                   //  NO NU
  81                 + "< \u0E1A "                   //  BO BAIMAI
  82                 + "< \u0E1B "                   //  PO PLA
  83                 + "< \u0E1C "                   //  PHO PHUNG
  84                 + "< \u0E1D "                   //  FO FA
  85                 + "< \u0E1E "                   //  PHO PHAN
  86                 + "< \u0E1F "                   //  FO FAN
  87                 + "< \u0E20 "                   //  PHO SAMPHAO
  88                 + "< \u0E21 "                   //  MO MA
  89                 + "< \u0E22 "                   //  YO YAK
  90                 + "< \u0E23 "                   //  RO RUA
  91                 + "< \u0E24 "                   //  RU
  92                 + "< \u0E25 "                   //  LO LING
  93                 + "< \u0E26 "                   //  LU
  94                 + "< \u0E27 "                   //  WO WAEN
  95                 + "< \u0E28 "                   //  SO SALA
  96                 + "< \u0E29 "                   //  SO RUSI
  97                 + "< \u0E2A "                   //  SO SUA
  98                 + "< \u0E2B "                   //  HO HIP
  99                 + "< \u0E2C "                   //  LO CHULA
 100                 + "< \u0E2D "                   //  O ANG
 101                 + "< \u0E2E "                   //  HO NOKHUK
 102 
 103                 //
 104                 // Normal vowels
 105                 //
 106                 + "< \u0E4D "                   //  NIKHAHIT
 107                 + "< \u0E30 "                   //  SARA A
 108                 + "< \u0E31 "                   //  MAI HAN-AKAT
 109                 + "< \u0E32 "                   //  SARA AA
 110 
 111                 // Normalizer will decompose this character to \u0e4d\u0e32.
 112                 + "< \u0E33 = \u0E4D\u0E32 "                   //  SARA AM
 113 
 114                 + "< \u0E34 "                   //  SARA I
 115 
 116                 + "< \u0E35 "                   //  SARA II
 117                 + "< \u0E36 "                   //  SARA UE
 118                 + "< \u0E37 "                   //  SARA UEE
 119                 + "< \u0E38 "                   //  SARA U
 120                 + "< \u0E39 "                   //  SARA UU
 121 
 122                 //
 123                 // Preceding vowels
 124                 //
 125                 + "< \u0E40 "                   //  SARA E
 126                 + "< \u0E41 "                   //  SARA AE
 127                 + "< \u0E42 "                   //  SARA O
 128                 + "< \u0E43 "                   //  SARA AI MAIMUAN
 129                 + "< \u0E44 "                   //  SARA AI MAIMALAI
 130 
 131 
 132                 //according to CLDR, it's after 0e44
 133                 + "< \u0E3A "                   //  PHINTHU
 134 
 135 
 136 
 137                 // This rare symbol comes after all characters.
 138                 + "< \u0E45 "                   //  LAKKHANGYAO
 139                 + "& \u0E32 , \0E45 "           // According to CLDR, 0E45 is after 0E32 in tertiary level
 140 
 141 
 142 
 143 
 144                 // Below are thai puntuation marks and Tonal(Accent) marks. According to CLDR 1.9 and
 145                 // ISO/IEC 14651, Annex C, C.2.1 Thai ordering principles, 0E2F to 0E5B are punctuaion marks that need to be ignored
 146                 // in the first three leveles.  0E4E to 0E4B are tonal marks to be compared in secondary level.
 147                 // In real implmentation, set puncutation marks in tertiary as there is no fourth level in Java.
 148                 // Set all these special marks after \u0301, the accute accent.
 149                 + "& \u0301 "   // acute accent
 150 
 151                 //puncutation marks
 152                 + ", \u0E2F "                   //  PAIYANNOI      (ellipsis, abbreviation)
 153                 + ", \u0E46 "                   //  MAIYAMOK
 154                 + ", \u0E4F "                   //  FONGMAN
 155                 + ", \u0E5A "                   //  ANGKHANKHU
 156                 + ", \u0E5B "                   //  KHOMUT
 157 
 158                 //tonal marks
 159                 + "; \u0E4E "                   //  YAMAKKAN
 160                 + "; \u0E4C "                   //  THANTHAKHAT
 161                 + "; \u0E47 "                   //  MAITAIKHU
 162                 + "; \u0E48 "                   //  MAI EK
 163                 + "; \u0E49 "                   //  MAI THO
 164                 + "; \u0E4A "                   //  MAI TRI
 165                 + "; \u0E4B "                   //  MAI CHATTAWA
 166 
 167                 //
 168                 // Digits are equal to their corresponding Arabic digits in the first level
 169                 //
 170                 + "& 0 = \u0E50 "                   //  DIGIT ZERO
 171                 + "& 1 = \u0E51 "                   //  DIGIT ONE
 172                 + "& 2 = \u0E52 "                   //  DIGIT TWO
 173                 + "& 3 = \u0E53 "                   //  DIGIT THREE
 174                 + "& 4 = \u0E54 "                   //  DIGIT FOUR
 175                 + "& 5 = \u0E55 "                   //  DIGIT FIVE
 176                 + "& 6 = \u0E56 "                   //  DIGIT SIX
 177                 + "& 7 = \u0E57 "                   //  DIGIT SEVEN
 178                 + "& 8 = \u0E58 "                   //  DIGIT EIGHT
 179                 + "& 9 = \u0E59 "                   //  DIGIT NINE
 180 
 181 
 182             }
 183         };
 184     }
 185 }