constant.js 1.9 KB

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