constant.js 1.7 KB

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