Leaked source code of windows server 2003
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.

75 lines
2.4 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_Tro 0x0e49
  43. #define THAI_Tone_Mai_Tri 0x0e4a
  44. #define THAI_Thanthakhat 0x0e4c
  45. #define THAI_Nikhahit 0x0e4d
  46. #define POSTYPE 305
  47. #define POS_UNKNOWN (POSTYPE - 1)
  48. #define TAGPOS_NCNM 0x0002301
  49. #define TAGPOS_PUNC 0x002F301
  50. #define TAGPOS_UNKNOWN 0x012F301
  51. #define TAGPOS_ABBR 0x0130301
  52. #define TAGPOS_PURGE 0x0131301
  53. #define MAXBREAK 256
  54. // Soundex definition.
  55. #define APPROXIMATEWEIGHT 60
  56. #define WB_LINEBREAK 0
  57. #define WB_NORMAL 1
  58. //#define WB_LINEBREAK 2 // Number 2 is also linebreak.
  59. #define WB_SPELLER 3
  60. #define WB_INDEX 4
  61. #define WB_CARETBREAK 5
  62. typedef struct THWB_STRUCT
  63. {
  64. bool fThai;
  65. BYTE alt;
  66. } THWB_STRUCT;
  67. #endif