1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 /* 22 * ICU License - ICU 1.8.1 and later 23 * 24 * COPYRIGHT AND PERMISSION NOTICE 25 * 26 * Copyright (c) 1995-2005 International Business Machines Corporation and others 27 * All rights reserved. 28 * 29 * Permission is hereby granted, free of charge, to any person obtaining a 30 * copy of this software and associated documentation files (the 31 * "Software"), to deal in the Software without restriction, including 32 * without limitation the rights to use, copy, modify, merge, publish, 33 * distribute, and/or sell copies of the Software, and to permit persons 34 * to whom the Software is furnished to do so, provided that the above 35 * copyright notice(s) and this permission notice appear in all copies of 36 * the Software and that both the above copyright notice(s) and this 37 * permission notice appear in supporting documentation. 38 * 39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 40 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 41 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 42 * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 43 * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 44 * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 45 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 46 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 47 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 48 * 49 * Except as contained in this notice, the name of a copyright holder 50 * shall not be used in advertising or otherwise to promote the sale, use 51 * or other dealings in this Software without prior written authorization 52 * of the copyright holder. 53 * 54 * -------------------------------------------------------------------------- 55 * All trademarks and registered trademarks mentioned herein are the property 56 * of their respective owners. 57 */ 58 /* 59 * Copyright (c) 1999 by Sun Microsystems, Inc. 60 */ 61 62 63 #ifndef _IBM_THAI_TABLE_H_ 64 #define _IBM_THAI_TABLE_H_ 65 66 67 #include "common_thai.h" 68 #include "common_def.h" 69 70 hcode_table ibm874_838_tbl[] = { 71 { 0x00, 0x00 }, 72 { 0x01, 0x01 }, 73 { 0x02, 0x02 }, 74 { 0x03, 0x03 }, 75 { 0x04, 0x37 }, 76 { 0x05, 0x2d }, 77 { 0x06, 0x2e }, 78 { 0x07, 0x2f }, 79 { 0x08, 0x16 }, 80 { 0x09, 0x05 }, 81 { 0x0a, 0x25 }, 82 { 0x0b, 0x0b }, 83 { 0x0c, 0x0c }, 84 { 0x0d, 0x0d }, 85 { 0x0e, 0x0e }, 86 { 0x0f, 0x0f }, 87 { 0x10, 0x10 }, 88 { 0x11, 0x11 }, 89 { 0x12, 0x12 }, 90 { 0x13, 0x13 }, 91 { 0x14, 0x3c }, 92 { 0x15, 0x3d }, 93 { 0x16, 0x32 }, 94 { 0x17, 0x26 }, 95 { 0x18, 0x18 }, 96 { 0x19, 0x19 }, 97 { 0x1a, 0x3f }, 98 { 0x1b, 0x27 }, 99 { 0x1c, 0x1c }, 100 { 0x1d, 0x1d }, 101 { 0x1e, 0x1e }, 102 { 0x1f, 0x1f }, 103 { 0x20, 0x40 }, 104 { 0x21, 0x5a }, 105 { 0x22, 0x7f }, 106 { 0x23, 0x7b }, 107 { 0x24, 0x5b }, 108 { 0x25, 0x6c }, 109 { 0x26, 0x50 }, 110 { 0x27, 0x7d }, 111 { 0x28, 0x4d }, 112 { 0x29, 0x5d }, 113 { 0x2a, 0x5c }, 114 { 0x2b, 0x4e }, 115 { 0x2c, 0x6b }, 116 { 0x2d, 0x60 }, 117 { 0x2e, 0x4b }, 118 { 0x2f, 0x61 }, 119 { 0x30, 0xf0 }, 120 { 0x31, 0xf1 }, 121 { 0x32, 0xf2 }, 122 { 0x33, 0xf3 }, 123 { 0x34, 0xf4 }, 124 { 0x35, 0xf5 }, 125 { 0x36, 0xf6 }, 126 { 0x37, 0xf7 }, 127 { 0x38, 0xf8 }, 128 { 0x39, 0xf9 }, 129 { 0x3a, 0x7a }, 130 { 0x3b, 0x5e }, 131 { 0x3c, 0x4c }, 132 { 0x3d, 0x7e }, 133 { 0x3e, 0x6e }, 134 { 0x3f, 0x6f }, 135 { 0x40, 0x7c }, 136 { 0x41, 0xc1 }, 137 { 0x42, 0xc2 }, 138 { 0x43, 0xc3 }, 139 { 0x44, 0xc4 }, 140 { 0x45, 0xc5 }, 141 { 0x46, 0xc6 }, 142 { 0x47, 0xc7 }, 143 { 0x48, 0xc8 }, 144 { 0x49, 0xc9 }, 145 { 0x4a, 0xd1 }, 146 { 0x4b, 0xd2 }, 147 { 0x4c, 0xd3 }, 148 { 0x4d, 0xd4 }, 149 { 0x4e, 0xd5 }, 150 { 0x4f, 0xd6 }, 151 { 0x50, 0xd7 }, 152 { 0x51, 0xd8 }, 153 { 0x52, 0xd9 }, 154 { 0x53, 0xe2 }, 155 { 0x54, 0xe3 }, 156 { 0x55, 0xe4 }, 157 { 0x56, 0xe5 }, 158 { 0x57, 0xe6 }, 159 { 0x58, 0xe7 }, 160 { 0x59, 0xe8 }, 161 { 0x5a, 0xe9 }, 162 { 0x5b, 0x49 }, 163 { 0x5c, 0xe0 }, 164 { 0x5d, 0x59 }, 165 { 0x5e, 0x69 }, 166 { 0x5f, 0x6d }, 167 { 0x60, 0x79 }, 168 { 0x61, 0x81 }, 169 { 0x62, 0x82 }, 170 { 0x63, 0x83 }, 171 { 0x64, 0x84 }, 172 { 0x65, 0x85 }, 173 { 0x66, 0x86 }, 174 { 0x67, 0x87 }, 175 { 0x68, 0x88 }, 176 { 0x69, 0x89 }, 177 { 0x6a, 0x91 }, 178 { 0x6b, 0x92 }, 179 { 0x6c, 0x93 }, 180 { 0x6d, 0x94 }, 181 { 0x6e, 0x95 }, 182 { 0x6f, 0x96 }, 183 { 0x70, 0x97 }, 184 { 0x71, 0x98 }, 185 { 0x72, 0x99 }, 186 { 0x73, 0xa2 }, 187 { 0x74, 0xa3 }, 188 { 0x75, 0xa4 }, 189 { 0x76, 0xa5 }, 190 { 0x77, 0xa6 }, 191 { 0x78, 0xa7 }, 192 { 0x79, 0xa8 }, 193 { 0x7a, 0xa9 }, 194 { 0x7b, 0xc0 }, 195 { 0x7c, 0x4f }, 196 { 0x7d, 0xd0 }, 197 { 0x7e, 0xa1 }, 198 { 0x7f, 0x07 }, 199 { 0x80, 0x20 }, 200 { 0x81, 0x21 }, 201 { 0x82, 0x22 }, 202 { 0x83, 0x23 }, 203 { 0x84, 0x24 }, 204 { 0x85, 0x15 }, 205 { 0x86, 0x06 }, 206 { 0x87, 0x17 }, 207 { 0x88, 0x28 }, 208 { 0x89, 0x29 }, 209 { 0x8a, 0x2a }, 210 { 0x8b, 0x2b }, 211 { 0x8c, 0x2c }, 212 { 0x8d, 0x09 }, 213 { 0x8e, 0x0a }, 214 { 0x8f, 0x1b }, 215 { 0x90, 0x30 }, 216 { 0x91, 0x31 }, 217 { 0x92, 0x1a }, 218 { 0x93, 0x33 }, 219 { 0x94, 0x34 }, 220 { 0x95, 0x35 }, 221 { 0x96, 0x36 }, 222 { 0x97, 0x08 }, 223 { 0x98, 0x38 }, 224 { 0x99, 0x39 }, 225 { 0x9a, 0x3a }, 226 { 0x9b, 0x3b }, 227 { 0x9c, 0x04 }, 228 { 0x9d, 0x14 }, 229 { 0x9e, 0x3f }, 230 { 0x9f, 0x41 }, 231 { 0xa0, 0x51 }, 232 { 0xa1, 0x42 }, 233 { 0xa2, 0x43 }, 234 { 0xa3, 0x44 }, 235 { 0xa4, 0x45 }, 236 { 0xa5, 0x46 }, 237 { 0xa6, 0x47 }, 238 { 0xa7, 0x48 }, 239 { 0xa8, 0x52 }, 240 { 0xa9, 0x53 }, 241 { 0xaa, 0x54 }, 242 { 0xab, 0x55 }, 243 { 0xac, 0x56 }, 244 { 0xad, 0x57 }, 245 { 0xae, 0x58 }, 246 { 0xaf, 0x62 }, 247 { 0xb0, 0x63 }, 248 { 0xb1, 0x64 }, 249 { 0xb2, 0x65 }, 250 { 0xb3, 0x66 }, 251 { 0xb4, 0x67 }, 252 { 0xb5, 0x68 }, 253 { 0xb6, 0x72 }, 254 { 0xb7, 0x73 }, 255 { 0xb8, 0x74 }, 256 { 0xb9, 0x75 }, 257 { 0xba, 0x76 }, 258 { 0xbb, 0x77 }, 259 { 0xbc, 0x78 }, 260 { 0xbd, 0x8a }, 261 { 0xbe, 0x8b }, 262 { 0xbf, 0x8c }, 263 { 0xc0, 0x8d }, 264 { 0xc1, 0x8e }, 265 { 0xc2, 0x8f }, 266 { 0xc3, 0x9a }, 267 { 0xc4, 0x9b }, 268 { 0xc5, 0x9c }, 269 { 0xc6, 0x9d }, 270 { 0xc7, 0x9e }, 271 { 0xc8, 0x9f }, 272 { 0xc9, 0xaa }, 273 { 0xca, 0xab }, 274 { 0xcb, 0xac }, 275 { 0xcc, 0xad }, 276 { 0xcd, 0xae }, 277 { 0xce, 0xaf }, 278 { 0xcf, 0xba }, 279 { 0xd0, 0xbb }, 280 { 0xd1, 0xbc }, 281 { 0xd2, 0xbd }, 282 { 0xd3, 0xbe }, 283 { 0xd4, 0xbf }, 284 { 0xd5, 0xcb }, 285 { 0xd6, 0xcc }, 286 { 0xd7, 0xcd }, 287 { 0xd8, 0xce }, 288 { 0xd9, 0xcf }, 289 { 0xda, 0xda }, 290 { 0xdb, 0xca }, 291 { 0xdc, 0xe1 }, 292 { 0xdd, 0xfd }, 293 { 0xde, 0xfe }, 294 { 0xdf, 0x70 }, 295 { 0xe0, 0xdb }, 296 { 0xe1, 0xdc }, 297 { 0xe2, 0xdd }, 298 { 0xe3, 0xde }, 299 { 0xe4, 0xdf }, 300 { 0xe5, 0xea }, 301 { 0xe6, 0xeb }, 302 { 0xe7, 0xec }, 303 { 0xe8, 0xed }, 304 { 0xe9, 0xee }, 305 { 0xea, 0xef }, 306 { 0xeb, 0xfa }, 307 { 0xec, 0xfb }, 308 { 0xed, 0xfc }, 309 { 0xee, 0x71 }, 310 { 0xef, 0x80 }, 311 { 0xf0, 0xb0 }, 312 { 0xf1, 0xb1 }, 313 { 0xf2, 0xb2 }, 314 { 0xf3, 0xb3 }, 315 { 0xf4, 0xb4 }, 316 { 0xf5, 0xb5 }, 317 { 0xf6, 0xb6 }, 318 { 0xf7, 0xb7 }, 319 { 0xf8, 0xb8 }, 320 { 0xf9, 0xb9 }, 321 { 0xfa, 0x90 }, 322 { 0xfb, 0xa0 }, 323 { 0xfc, 0x4a }, 324 { 0xfd, 0x5f }, 325 { 0xfe, 0x6a }, 326 { 0xff, 0xff } 327 }; 328 329 hcode_table ibm838_874_tbl[] = { 330 { 0x00, 0x00 }, 331 { 0x01, 0x01 }, 332 { 0x02, 0x02 }, 333 { 0x03, 0x03 }, 334 { 0x04, 0x9c }, 335 { 0x05, 0x09 }, 336 { 0x06, 0x86 }, 337 { 0x07, 0x7f }, 338 { 0x08, 0x97 }, 339 { 0x09, 0x8d }, 340 { 0x0a, 0x8e }, 341 { 0x0b, 0x0b }, 342 { 0x0c, 0x0c }, 343 { 0x0d, 0x0d }, 344 { 0x0e, 0x0e }, 345 { 0x0f, 0x0f }, 346 { 0x10, 0x10 }, 347 { 0x11, 0x11 }, 348 { 0x12, 0x12 }, 349 { 0x13, 0x13 }, 350 { 0x14, 0x9d }, 351 { 0x15, 0x85 }, 352 { 0x16, 0x08 }, 353 { 0x17, 0x87 }, 354 { 0x18, 0x18 }, 355 { 0x19, 0x19 }, 356 { 0x1a, 0x92 }, 357 { 0x1b, 0x8f }, 358 { 0x1c, 0x1c }, 359 { 0x1d, 0x1d }, 360 { 0x1e, 0x1e }, 361 { 0x1f, 0x1f }, 362 { 0x20, 0x80 }, 363 { 0x21, 0x81 }, 364 { 0x22, 0x82 }, 365 { 0x23, 0x83 }, 366 { 0x24, 0x84 }, 367 { 0x25, 0x0a }, 368 { 0x26, 0x17 }, 369 { 0x27, 0x1b }, 370 { 0x28, 0x88 }, 371 { 0x29, 0x89 }, 372 { 0x2a, 0x8a }, 373 { 0x2b, 0x8b }, 374 { 0x2c, 0x8c }, 375 { 0x2d, 0x05 }, 376 { 0x2e, 0x06 }, 377 { 0x2f, 0x07 }, 378 { 0x30, 0x90 }, 379 { 0x31, 0x91 }, 380 { 0x32, 0x16 }, 381 { 0x33, 0x93 }, 382 { 0x34, 0x94 }, 383 { 0x35, 0x95 }, 384 { 0x36, 0x96 }, 385 { 0x37, 0x04 }, 386 { 0x38, 0x98 }, 387 { 0x39, 0x99 }, 388 { 0x3a, 0x9a }, 389 { 0x3b, 0x9b }, 390 { 0x3c, 0x14 }, 391 { 0x3d, 0x15 }, 392 { 0x3e, 0x1a }, 393 { 0x3f, 0x9e }, 394 { 0x40, 0x20 }, 395 { 0x41, 0x9f }, 396 { 0x42, 0xa1 }, 397 { 0x43, 0xa2 }, 398 { 0x44, 0xa3 }, 399 { 0x45, 0xa4 }, 400 { 0x46, 0xa5 }, 401 { 0x47, 0xa6 }, 402 { 0x48, 0xa7 }, 403 { 0x49, 0x5b }, 404 { 0x4a, 0xfc }, 405 { 0x4b, 0x2e }, 406 { 0x4c, 0x3c }, 407 { 0x4d, 0x28 }, 408 { 0x4e, 0x2b }, 409 { 0x4f, 0x7c }, 410 { 0x50, 0x26 }, 411 { 0x51, 0xa0 }, 412 { 0x52, 0xa8 }, 413 { 0x53, 0xa9 }, 414 { 0x54, 0xaa }, 415 { 0x55, 0xab }, 416 { 0x56, 0xac }, 417 { 0x57, 0xad }, 418 { 0x58, 0xae }, 419 { 0x59, 0x5d }, 420 { 0x5a, 0x21 }, 421 { 0x5b, 0x24 }, 422 { 0x5c, 0x2a }, 423 { 0x5d, 0x29 }, 424 { 0x5e, 0x3b }, 425 { 0x5f, 0xfd }, 426 { 0x60, 0x2d }, 427 { 0x61, 0x2f }, 428 { 0x62, 0xaf }, 429 { 0x63, 0xb0 }, 430 { 0x64, 0xb1 }, 431 { 0x65, 0xb2 }, 432 { 0x66, 0xb3 }, 433 { 0x67, 0xb4 }, 434 { 0x68, 0xb5 }, 435 { 0x69, 0x5e }, 436 { 0x6a, 0xfe }, 437 { 0x6b, 0x2c }, 438 { 0x6c, 0x25 }, 439 { 0x6d, 0x5f }, 440 { 0x6e, 0x3e }, 441 { 0x6f, 0x3f }, 442 { 0x70, 0xdf }, 443 { 0x71, 0xee }, 444 { 0x72, 0xb6 }, 445 { 0x73, 0xb7 }, 446 { 0x74, 0xb8 }, 447 { 0x75, 0xb9 }, 448 { 0x76, 0xba }, 449 { 0x77, 0xbb }, 450 { 0x78, 0xbc }, 451 { 0x79, 0x60 }, 452 { 0x7a, 0x3a }, 453 { 0x7b, 0x23 }, 454 { 0x7c, 0x40 }, 455 { 0x7d, 0x27 }, 456 { 0x7e, 0x3d }, 457 { 0x7f, 0x22 }, 458 { 0x80, 0xef }, 459 { 0x81, 0x61 }, 460 { 0x82, 0x62 }, 461 { 0x83, 0x63 }, 462 { 0x84, 0x64 }, 463 { 0x85, 0x65 }, 464 { 0x86, 0x66 }, 465 { 0x87, 0x67 }, 466 { 0x88, 0x68 }, 467 { 0x89, 0x69 }, 468 { 0x8a, 0xbd }, 469 { 0x8b, 0xbe }, 470 { 0x8c, 0xbf }, 471 { 0x8d, 0xc0 }, 472 { 0x8e, 0xc1 }, 473 { 0x8f, 0xc2 }, 474 { 0x90, 0xfa }, 475 { 0x91, 0x6a }, 476 { 0x92, 0x6b }, 477 { 0x93, 0x6c }, 478 { 0x94, 0x6d }, 479 { 0x95, 0x6e }, 480 { 0x96, 0x6f }, 481 { 0x97, 0x70 }, 482 { 0x98, 0x71 }, 483 { 0x99, 0x72 }, 484 { 0x9a, 0xc3 }, 485 { 0x9b, 0xc4 }, 486 { 0x9c, 0xc5 }, 487 { 0x9d, 0xc6 }, 488 { 0x9e, 0xc7 }, 489 { 0x9f, 0xc8 }, 490 { 0xa0, 0xfb }, 491 { 0xa1, 0x7e }, 492 { 0xa2, 0x73 }, 493 { 0xa3, 0x74 }, 494 { 0xa4, 0x75 }, 495 { 0xa5, 0x76 }, 496 { 0xa6, 0x77 }, 497 { 0xa7, 0x78 }, 498 { 0xa8, 0x79 }, 499 { 0xa9, 0x7a }, 500 { 0xaa, 0xc9 }, 501 { 0xab, 0xca }, 502 { 0xac, 0xcb }, 503 { 0xad, 0xcc }, 504 { 0xae, 0xcd }, 505 { 0xaf, 0xce }, 506 { 0xb0, 0xf0 }, 507 { 0xb1, 0xf1 }, 508 { 0xb2, 0xf2 }, 509 { 0xb3, 0xf3 }, 510 { 0xb4, 0xf4 }, 511 { 0xb5, 0xf5 }, 512 { 0xb6, 0xf6 }, 513 { 0xb7, 0xf7 }, 514 { 0xb8, 0xf8 }, 515 { 0xb9, 0xf9 }, 516 { 0xba, 0xcf }, 517 { 0xbb, 0xd0 }, 518 { 0xbc, 0xd1 }, 519 { 0xbd, 0xd2 }, 520 { 0xbe, 0xd3 }, 521 { 0xbf, 0xd4 }, 522 { 0xc0, 0x7b }, 523 { 0xc1, 0x41 }, 524 { 0xc2, 0x42 }, 525 { 0xc3, 0x43 }, 526 { 0xc4, 0x44 }, 527 { 0xc5, 0x45 }, 528 { 0xc6, 0x46 }, 529 { 0xc7, 0x47 }, 530 { 0xc8, 0x48 }, 531 { 0xc9, 0x49 }, 532 { 0xca, 0xdb }, 533 { 0xcb, 0xd5 }, 534 { 0xcc, 0xd6 }, 535 { 0xcd, 0xd7 }, 536 { 0xce, 0xd8 }, 537 { 0xcf, 0xd9 }, 538 { 0xd0, 0x7d }, 539 { 0xd1, 0x4a }, 540 { 0xd2, 0x4b }, 541 { 0xd3, 0x4c }, 542 { 0xd4, 0x4d }, 543 { 0xd5, 0x4e }, 544 { 0xd6, 0x4f }, 545 { 0xd7, 0x50 }, 546 { 0xd8, 0x51 }, 547 { 0xd9, 0x52 }, 548 { 0xda, 0xda }, 549 { 0xdb, 0xe0 }, 550 { 0xdc, 0xe1 }, 551 { 0xdd, 0xe2 }, 552 { 0xde, 0xe3 }, 553 { 0xdf, 0xe4 }, 554 { 0xe0, 0x5c }, 555 { 0xe1, 0xdc }, 556 { 0xe2, 0x53 }, 557 { 0xe3, 0x54 }, 558 { 0xe4, 0x55 }, 559 { 0xe5, 0x56 }, 560 { 0xe6, 0x57 }, 561 { 0xe7, 0x58 }, 562 { 0xe8, 0x59 }, 563 { 0xe9, 0x5a }, 564 { 0xea, 0xe5 }, 565 { 0xeb, 0xe6 }, 566 { 0xec, 0xe7 }, 567 { 0xed, 0xe8 }, 568 { 0xee, 0xe9 }, 569 { 0xef, 0xea }, 570 { 0xf0, 0x30 }, 571 { 0xf1, 0x31 }, 572 { 0xf2, 0x32 }, 573 { 0xf3, 0x33 }, 574 { 0xf4, 0x34 }, 575 { 0xf5, 0x35 }, 576 { 0xf6, 0x36 }, 577 { 0xf7, 0x37 }, 578 { 0xf8, 0x38 }, 579 { 0xf9, 0x39 }, 580 { 0xfa, 0xeb }, 581 { 0xfb, 0xec }, 582 { 0xfc, 0xed }, 583 { 0xfd, 0xdd }, 584 { 0xfe, 0xde }, 585 { 0xff, 0xff } 586 }; 587 588 #endif 589