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.

85 lines
2.7 KiB

  1. #ifndef __TABLLOCL__
  2. #define __TABLLOCL__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. // Class Bigram constants
  7. #define BICLASS_INVALID -1
  8. #define BICLASS_ENGLISH 0
  9. #define BICLASS_NUM_PUNC 1
  10. #define BICLASS_NUMBERS 2
  11. #define BICLASS_KANJI 3
  12. #define BICLASS_KATAKANA 4
  13. #define BICLASS_HIRAGANA 5
  14. #define BICLASS_JPN_PUNC 6
  15. #define BICLASS_OTH_PUNC 7
  16. #define BICLASS_BOSEN 8
  17. #define BICLASS_UNKNOWN 9
  18. #define BICLASS_TOTAL 10
  19. // Base Line constants
  20. #define BASE_NORMAL 0x00 // kanji, kana, numbers, etc
  21. #define BASE_QUOTE 0x01 // upper punctuation, etc
  22. #define BASE_DASH 0x02 // middle punctuation, etc
  23. #define BASE_DESCENDER 0x03 // gy, anything that descends.
  24. #define BASE_THIRD 0x04 // something that starts a third way up.
  25. // height constants
  26. #define XHEIGHT_NORMAL 0x00 // lower-case, small kana, etc
  27. #define XHEIGHT_KANJI 0x10 // upper-case, kana, kanji, numbers, etc
  28. #define XHEIGHT_PUNC 0x20 // comma, quote, etc
  29. #define XHEIGHT_DASH 0x30 // dash, period, etc
  30. // Maximum number of codepoint classes
  31. // should always be less than 0xFF
  32. // which is reserved for invalid code, see LOC_RUN_NO_CLASS
  33. #define MAX_CODEPOINT_CLASSES BICLASS_TOTAL
  34. // Max size of buffer storing all Class Arrays in all sub-ranges
  35. #define MAX_CLASS_ARRAY_SIZE 1024 // 1K
  36. // Max size of buffer string all Class Exceptions in all sub-ranges
  37. #define MAX_CLASS_EXCEPT_SIZE 1024 // 1K
  38. // maximum number of array entries for codepoint classes
  39. #define MAX_CLASS_ARRAY_ENTRIES 0x7FFF
  40. // maximum number of exceptions in class exception list
  41. #define MAX_CLASS_EXCEPTIONS_PERLIST 0x7F
  42. // Maximum number of BLineHgt codes
  43. // 0xFF is used for invalid code, see LOC_RUN_NO_BLINEHGT
  44. #define MAX_BLINEHGT_CODE 0xFF
  45. // Max size of buffer storing all BLIneHgt Arrays in all sub-ranges
  46. #define MAX_BLINHGT_ARRAY_SIZE 1024 // 1K
  47. // Max size of buffer storing all BLIneHgt Exceptions in all sub-ranges
  48. #define MAX_BLINHGT_EXCEPT_SIZE 1024 // 1K
  49. // maximum number of array entries for codepoint classes
  50. #define MAX_BLINEHGT_ARRAY_ENTRIES 0x7FFF
  51. // maximum number of exceptions in BLineHgt exception list
  52. #define MAX_BLINEHGT_EXCEPTIONS_PERLIST 0x7F
  53. // Max number of class exceptions in a subrange after which we use arrays
  54. #define MAX_CLSEXCPT 10
  55. // Min class exception list size reduction (percentage) below which we use arrays
  56. #define MIN_CLSEXCPT_REDUCT 10
  57. // Max number of BLineHgt exceptions in a subrange after which we use arrays
  58. #define MAX_BLHEXCPT 10
  59. // Min BLineHgt exception list size reduction (percentage) below which we use arrays
  60. #define MIN_BLHEXCPT_REDUCT 10
  61. #ifdef __cplusplus
  62. extern "C" }
  63. #endif
  64. #endif //__TABLLOCL__