@kensio/pinyinjs 1.2.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +116 -3
  2. package/NOTICE +9 -0
  3. package/README.md +58 -9
  4. package/data/core.entries +1 -13
  5. package/data/core.freq +0 -0
  6. package/data/core.keys +1 -13
  7. package/data/full.entries +141 -131
  8. package/data/full.freq +0 -0
  9. package/data/full.keys +167 -157
  10. package/data/manifest.json +24 -9
  11. package/data/script.map +26543 -0
  12. package/data/standard.entries +1 -22
  13. package/data/standard.freq +0 -0
  14. package/data/standard.keys +2 -23
  15. package/dist/cli/arguments.d.ts +72 -0
  16. package/dist/cli/arguments.d.ts.map +1 -1
  17. package/dist/cli/arguments.js +110 -0
  18. package/dist/cli/arguments.js.map +1 -1
  19. package/dist/cli/commands.d.ts +11 -0
  20. package/dist/cli/commands.d.ts.map +1 -1
  21. package/dist/cli/commands.js +77 -1
  22. package/dist/cli/commands.js.map +1 -1
  23. package/dist/cli/environment.d.ts.map +1 -1
  24. package/dist/cli/environment.js +2 -1
  25. package/dist/cli/environment.js.map +1 -1
  26. package/dist/cli/help.d.ts.map +1 -1
  27. package/dist/cli/help.js +21 -0
  28. package/dist/cli/help.js.map +1 -1
  29. package/dist/cli/run.d.ts +8 -0
  30. package/dist/cli/run.d.ts.map +1 -1
  31. package/dist/cli/run.js +11 -1
  32. package/dist/cli/run.js.map +1 -1
  33. package/dist/decode/convert.d.ts +10 -0
  34. package/dist/decode/convert.d.ts.map +1 -1
  35. package/dist/decode/convert.js +12 -0
  36. package/dist/decode/convert.js.map +1 -1
  37. package/dist/decode/script.d.ts +108 -0
  38. package/dist/decode/script.d.ts.map +1 -0
  39. package/dist/decode/script.js +195 -0
  40. package/dist/decode/script.js.map +1 -0
  41. package/dist/dictionary/dictionary.d.ts +13 -1
  42. package/dist/dictionary/dictionary.d.ts.map +1 -1
  43. package/dist/dictionary/dictionary.js +18 -4
  44. package/dist/dictionary/dictionary.js.map +1 -1
  45. package/dist/dictionary/merge.d.ts.map +1 -1
  46. package/dist/dictionary/merge.js +23 -3
  47. package/dist/dictionary/merge.js.map +1 -1
  48. package/dist/dictionary/script-tables.d.ts +17 -0
  49. package/dist/dictionary/script-tables.d.ts.map +1 -0
  50. package/dist/dictionary/script-tables.js +275 -0
  51. package/dist/dictionary/script-tables.js.map +1 -0
  52. package/dist/dictionary/source.d.ts +18 -0
  53. package/dist/dictionary/source.d.ts.map +1 -1
  54. package/dist/dictionary/source.js +20 -0
  55. package/dist/dictionary/source.js.map +1 -1
  56. package/dist/format/slug.d.ts +156 -0
  57. package/dist/format/slug.d.ts.map +1 -0
  58. package/dist/format/slug.js +0 -0
  59. package/dist/format/slug.js.map +1 -0
  60. package/dist/index.d.ts +10 -1
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +6 -1
  63. package/dist/index.js.map +1 -1
  64. package/dist/script/conversion.d.ts +102 -0
  65. package/dist/script/conversion.d.ts.map +1 -0
  66. package/dist/script/conversion.js +194 -0
  67. package/dist/script/conversion.js.map +1 -0
  68. package/dist/script/glyphs.d.ts +95 -0
  69. package/dist/script/glyphs.d.ts.map +1 -0
  70. package/dist/script/glyphs.js +236 -0
  71. package/dist/script/glyphs.js.map +1 -0
  72. package/dist/sources/opencc.d.ts +32 -0
  73. package/dist/sources/opencc.d.ts.map +1 -0
  74. package/dist/sources/opencc.js +50 -0
  75. package/dist/sources/opencc.js.map +1 -0
  76. package/package.json +1 -1
@@ -1,35 +1,50 @@
1
1
  {
2
2
  "tiers": {
3
3
  "core": {
4
- "entries": 16730,
4
+ "entries": 16727,
5
5
  "keys": "core.keys",
6
6
  "readings": "core.entries",
7
7
  "frequencies": "core.freq",
8
- "bytes": 218211,
9
- "compressedBytes": 71310
8
+ "bytes": 218044,
9
+ "compressedBytes": 71295
10
10
  },
11
11
  "standard": {
12
- "entries": 66730,
12
+ "entries": 66727,
13
13
  "keys": "standard.keys",
14
14
  "readings": "standard.entries",
15
15
  "frequencies": "standard.freq",
16
- "bytes": 1399583,
17
- "compressedBytes": 387824
16
+ "bytes": 1399294,
17
+ "compressedBytes": 387813
18
18
  },
19
19
  "full": {
20
20
  "entries": 461623,
21
21
  "keys": "full.keys",
22
22
  "readings": "full.entries",
23
23
  "frequencies": "full.freq",
24
- "bytes": 9349799,
25
- "compressedBytes": 2448112
24
+ "bytes": 9349708,
25
+ "compressedBytes": 2448190
26
26
  }
27
27
  },
28
+ "script": {
29
+ "file": "script.map",
30
+ "toTraditional": 5943,
31
+ "toSimplified": 6118,
32
+ "traditionalWords": 2327,
33
+ "simplifiedWords": 875,
34
+ "hansOnly": 5785,
35
+ "hantOnly": 5495,
36
+ "bytes": 292031,
37
+ "compressedBytes": 100120
38
+ },
28
39
  "sources": [
29
40
  "https://www.unicode.org/Public/UCD/latest/ucd/Unihan.zip",
30
41
  "https://www.mdbg.net/chinese/export/cedict/cedict_1_0_ts_utf-8_mdbg.txt.gz",
31
42
  "https://raw.githubusercontent.com/mozillazg/phrase-pinyin-data/master/large_pinyin.txt",
32
- "https://raw.githubusercontent.com/fxsjy/jieba/master/jieba/dict.txt"
43
+ "https://raw.githubusercontent.com/fxsjy/jieba/master/jieba/dict.txt",
44
+ "https://raw.githubusercontent.com/BYVoid/OpenCC/master/data/dictionary/STCharacters.txt",
45
+ "https://raw.githubusercontent.com/BYVoid/OpenCC/master/data/dictionary/TSCharacters.txt",
46
+ "https://raw.githubusercontent.com/BYVoid/OpenCC/master/data/dictionary/TWVariants.txt",
47
+ "https://raw.githubusercontent.com/BYVoid/OpenCC/master/data/dictionary/HKVariants.txt"
33
48
  ],
34
49
  "rejected": 137
35
50
  }