Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. //
  4. // THWBDEF.HPP - contain different definition use in Thai Word Break.
  5. //
  6. // History:
  7. // created 7/99 aarayas
  8. //
  9. // �1999 Microsoft Corporation
  10. //----------------------------------------------------------------------------
  11. #ifndef _THWBDEF_HPP_
  12. #define _THWBDEF_HPP_
  13. #include <windows.h>
  14. #include "thwbplat.h"
  15. #define THAI_Ko_Kai 0x0e01
  16. #define THAI_Kho_Rakhang 0x0e06
  17. #define THAI_Cho_Ching 0x0e09
  18. #define THAI_So_So 0x0e0b
  19. #define THAI_Tho_NangmonTho 0x0e11
  20. #define THAI_Pho_Phung 0x0e1c
  21. #define THAI_Fo_Fa 0x0e1d
  22. #define THAI_Fo_Fan 0x0e1f
  23. #define THAI_Pho_Samphao 0x0e20
  24. #define THAI_Ho_Hip 0x0e2b
  25. #define THAI_Ho_Nok_Huk 0x0e2e
  26. #define THAI_Sign_PaiYanNoi 0x0e2f
  27. #define THAI_Vowel_Sara_A 0x0e30
  28. #define THAI_Vowel_Sign_Mai_HanAkat 0x0e31
  29. #define THAI_Vowel_Sara_AA 0x0e32
  30. #define THAI_Vowel_Sign_Sara_Am 0x0e33
  31. #define THAI_Vowel_Sara_I 0x0e34
  32. #define THAI_Vowel_Sara_II 0x0e35
  33. #define THAI_Sara_Ue 0x0e36
  34. #define THAI_Sara_Uee 0x0e37
  35. #define THAI_Vowel_Sign_Phinthu 0x0e3a
  36. #define THAI_Vowel_Sara_E 0x0e40
  37. #define THAI_Vowel_Sara_AI_MaiMaLai 0x0e44
  38. #define THAI_Vowel_LakKhangYao 0x0e45
  39. #define THAI_Vowel_MaiYaMok 0x0e46
  40. #define THAI_Tone_MaiTaiKhu 0x0e47
  41. #define THAI_Tone_Mai_Ek 0x0e48
  42. #define THAI_Tone_Mai_Tri 0x0e4a
  43. #define THAI_Thanthakhat 0x0e4c
  44. #define THAI_Nikhahit 0x0e4d
  45. #define POSTYPE 304
  46. #define POS_UNKNOWN (POSTYPE - 1)
  47. #define TAGPOS_UNKNOWN 0x012F301
  48. #define TAGPOS_PURGE 0x0130301
  49. #define MAXBREAK 256
  50. // Soundex definition.
  51. #define APPROXIMATEWEIGHT 60
  52. #define WB_LINEBREAK 0
  53. #define WB_NORMAL 1
  54. //#define WB_LINEBREAK 2 // Number 2 is also linebreak.
  55. #define WB_SPELLER 3
  56. #define WB_INDEX 4
  57. typedef struct THWB_STRUCT
  58. {
  59. bool fThai;
  60. BYTE alt;
  61. } THWB_STRUCT;
  62. #endif