constant.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. define(["require", "exports"], function (require, exports) {
  2. "use strict";
  3. Object.defineProperty(exports, "__esModule", { value: true });
  4. exports.FINALS = exports.INITIALS = exports.PHONETIC_SYMBOL = exports.DEFAULT_OPTIONS = exports.ENUM_PINYIN_MODE = exports.ENUM_PINYIN_STYLE = void 0;
  5. var ENUM_PINYIN_STYLE;
  6. (function (ENUM_PINYIN_STYLE) {
  7. ENUM_PINYIN_STYLE[ENUM_PINYIN_STYLE["NORMAL"] = 0] = "NORMAL";
  8. ENUM_PINYIN_STYLE[ENUM_PINYIN_STYLE["TONE"] = 1] = "TONE";
  9. ENUM_PINYIN_STYLE[ENUM_PINYIN_STYLE["TONE2"] = 2] = "TONE2";
  10. ENUM_PINYIN_STYLE[ENUM_PINYIN_STYLE["TO3NE"] = 5] = "TO3NE";
  11. ENUM_PINYIN_STYLE[ENUM_PINYIN_STYLE["INITIALS"] = 3] = "INITIALS";
  12. ENUM_PINYIN_STYLE[ENUM_PINYIN_STYLE["FIRST_LETTER"] = 4] = "FIRST_LETTER";
  13. ENUM_PINYIN_STYLE[ENUM_PINYIN_STYLE["PASSPORT"] = 6] = "PASSPORT";
  14. })(ENUM_PINYIN_STYLE = exports.ENUM_PINYIN_STYLE || (exports.ENUM_PINYIN_STYLE = {}));
  15. ;
  16. var ENUM_PINYIN_MODE;
  17. (function (ENUM_PINYIN_MODE) {
  18. ENUM_PINYIN_MODE[ENUM_PINYIN_MODE["NORMAL"] = 0] = "NORMAL";
  19. ENUM_PINYIN_MODE[ENUM_PINYIN_MODE["SURNAME"] = 1] = "SURNAME";
  20. })(ENUM_PINYIN_MODE = exports.ENUM_PINYIN_MODE || (exports.ENUM_PINYIN_MODE = {}));
  21. ;
  22. exports.DEFAULT_OPTIONS = {
  23. style: ENUM_PINYIN_STYLE.TONE,
  24. mode: ENUM_PINYIN_MODE.NORMAL,
  25. heteronym: false,
  26. group: false,
  27. compact: false,
  28. };
  29. exports.PHONETIC_SYMBOL = {
  30. "ā": "a1",
  31. "á": "a2",
  32. "ǎ": "a3",
  33. "à": "a4",
  34. "ē": "e1",
  35. "é": "e2",
  36. "ě": "e3",
  37. "è": "e4",
  38. "ō": "o1",
  39. "ó": "o2",
  40. "ǒ": "o3",
  41. "ò": "o4",
  42. "ī": "i1",
  43. "í": "i2",
  44. "ǐ": "i3",
  45. "ì": "i4",
  46. "ū": "u1",
  47. "ú": "u2",
  48. "ǔ": "u3",
  49. "ù": "u4",
  50. "ü": "v0",
  51. "ǘ": "v2",
  52. "ǚ": "v3",
  53. "ǜ": "v4",
  54. "ń": "n2",
  55. "ň": "n3",
  56. "": "m2",
  57. };
  58. exports.INITIALS = "b,p,m,f,d,t,n,l,g,k,h,j,q,x,r,zh,ch,sh,z,c,s".split(",");
  59. exports.FINALS = "ang,eng,ing,ong,an,en,in,un,er,ai,ei,ui,ao,ou,iu,ie,ve,a,o,e,i,u,v".split(",");
  60. });
  61. //# sourceMappingURL=constant.js.map