@taekwondo-db/database 0.7.0 → 0.8.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 (96) hide show
  1. package/README.md +73 -11
  2. package/audio/poomsae/chonkwon.mp3 +0 -0
  3. package/audio/poomsae/hansu.mp3 +0 -0
  4. package/audio/poomsae/ilyeo.mp3 +0 -0
  5. package/audio/poomsae/jitae.mp3 +0 -0
  6. package/audio/poomsae/keumgang.mp3 +0 -0
  7. package/audio/poomsae/koryo.mp3 +0 -0
  8. package/audio/poomsae/pyongwon.mp3 +0 -0
  9. package/audio/poomsae/shipjin.mp3 +0 -0
  10. package/audio/poomsae/taebaek.mp3 +0 -0
  11. package/audio/poomsae/taegeuk-1jang.mp3 +0 -0
  12. package/audio/poomsae/taegeuk-2jang.mp3 +0 -0
  13. package/audio/poomsae/taegeuk-3jang.mp3 +0 -0
  14. package/audio/poomsae/taegeuk-4jang.mp3 +0 -0
  15. package/audio/poomsae/taegeuk-5jang.mp3 +0 -0
  16. package/audio/poomsae/taegeuk-6jang.mp3 +0 -0
  17. package/audio/poomsae/taegeuk-7jang.mp3 +0 -0
  18. package/audio/poomsae/taegeuk-8jang.mp3 +0 -0
  19. package/db/chagi.json +44 -543
  20. package/db/chigi.json +24 -33
  21. package/db/ditgi.json +8 -92
  22. package/db/jireugi.json +9 -44
  23. package/db/jjireugi.json +8 -21
  24. package/db/junbijase.json +7 -1
  25. package/db/kkeokgi.json +4 -20
  26. package/db/makgi.json +68 -10
  27. package/db/poomsae/1-taegeuk-1jang.json +214 -0
  28. package/db/poomsae/2-taegeuk-2jang.json +227 -0
  29. package/db/poomsae/3-taegeuk-3jang.json +256 -0
  30. package/db/poomsae/4-taegeuk-4jang.json +267 -0
  31. package/db/poomsae/5-taegeuk-5jang.json +291 -0
  32. package/db/poomsae/6-taegeuk-6jang.json +292 -0
  33. package/db/poomsae/7-taegeuk-7jang.json +342 -0
  34. package/db/poomsae/8-taegeuk-8jang.json +377 -0
  35. package/db/poomsae/a-koryo.json +458 -0
  36. package/db/poomsae/b-keumgang.json +292 -0
  37. package/db/poomsae/c-taebaek.json +332 -0
  38. package/db/poomsae/d-pyongwon.json +289 -0
  39. package/db/poomsae/e-shipjin.json +301 -0
  40. package/db/poomsae/f-jitae.json +326 -0
  41. package/db/poomsae/g-chonkwon.json +340 -0
  42. package/db/poomsae/h-hansu.json +332 -0
  43. package/db/poomsae/i-ilyeo.json +287 -0
  44. package/db/schemas/grades.json +2 -2
  45. package/db/schemas/include.json +11 -0
  46. package/db/schemas/poomsae.json +221 -0
  47. package/db/seogi.json +24 -34
  48. package/db/sources.json +7 -0
  49. package/package.json +1 -1
  50. package/src/builtins-empty.js +1 -0
  51. package/src/builtins.d.ts +2 -0
  52. package/src/builtins.js +55 -0
  53. package/src/compose-builtins.js +2 -0
  54. package/src/compose.d.ts +10 -2
  55. package/src/compose.js +52 -7
  56. package/src/database.ts +143 -4
  57. package/src/grade.d.ts +3 -2
  58. package/types/poomsae.d.ts +136 -0
  59. package/types/source.d.ts +4 -1
  60. package/types/technique.d.ts +4 -0
  61. package/audio/chagi/apbal-bada-meori-dollyeochagi.mp3 +0 -0
  62. package/audio/chagi/apbal-jejari-dollyeochagi.mp3 +0 -0
  63. package/audio/chagi/apbal-kkeureo-dollyeochagi.mp3 +0 -0
  64. package/audio/chagi/balbutyeo-dollyeochagi.mp3 +0 -0
  65. package/audio/chagi/balbutyeo-naeryeochagi.mp3 +0 -0
  66. package/audio/chagi/dwi-gongjung-yangbal-apchagi.mp3 +0 -0
  67. package/audio/chagi/eolgul-pyojeok-anchagi.mp3 +0 -0
  68. package/audio/chagi/gaseum-ditgo-dwi-gongjung-apchagi.mp3 +0 -0
  69. package/audio/chagi/gaseum-ditgo-dwi-gongjung-yangbal-apchagi.mp3 +0 -0
  70. package/audio/chagi/geodeup-apchagi.mp3 +0 -0
  71. package/audio/chagi/geodeup-dollyeochagi.mp3 +0 -0
  72. package/audio/chagi/geodeup-yeopchagi.mp3 +0 -0
  73. package/audio/chagi/jase-bakkwo-dollyeochagi.mp3 +0 -0
  74. package/audio/chagi/mo-gongjung-dora-apchagi.mp3 +0 -0
  75. package/audio/chagi/mo-gongjung-dora-dwihuryeochagi.mp3 +0 -0
  76. package/audio/chagi/modumbal-apchagi.mp3 +0 -0
  77. package/audio/chagi/nun-garigo-ttwieo-dolgaechagi.mp3 +0 -0
  78. package/audio/chagi/oebal-dolgaechagi.mp3 +0 -0
  79. package/audio/chagi/ttwieo-360-hwejeonhamyeo-pyojeok-anchagi.mp3 +0 -0
  80. package/audio/chagi/ttwieo-apchagi.mp3 +0 -0
  81. package/audio/chagi/ttwieo-dollyeochagi.mp3 +0 -0
  82. package/audio/chagi/ttwieo-dwichagi.mp3 +0 -0
  83. package/audio/chagi/ttwieo-dwihuryeochagi.mp3 +0 -0
  84. package/audio/chagi/ttwieo-yeopchagi.mp3 +0 -0
  85. package/audio/chagi/tucheok-dwi-gongjung-dora-apchagi.mp3 +0 -0
  86. package/audio/chigi/eolgul-batangson-apchigi.mp3 +0 -0
  87. package/audio/ditgi/apbal-naeditgi.mp3 +0 -0
  88. package/audio/ditgi/balbutyeo-naeditgi.mp3 +0 -0
  89. package/audio/ditgi/du-bal-naeditgi.mp3 +0 -0
  90. package/audio/ditgi/dwitbal-naeditgi.mp3 +0 -0
  91. package/audio/ditgi/jase-bakkwo-ditgi.mp3 +0 -0
  92. package/audio/jireugi/pyojeok-yeopjireugi.mp3 +0 -0
  93. package/audio/jireugi/teok-danggyeojireugi.mp3 +0 -0
  94. package/audio/jjireugi/arae-jeotyeojjireugi.mp3 +0 -0
  95. package/audio/kkeokgi/mureup-nulleokkeokgi.mp3 +0 -0
  96. package/audio/seogi/mo-juchumseogi.mp3 +0 -0
package/README.md CHANGED
@@ -16,6 +16,8 @@ chagi. Translations in German (`de`) and English
16
16
 
17
17
  ```
18
18
  db/<group>.json techniques of one group, keyed by their official name
19
+ db/poomsae/ one file per Poomsae, referencing the techniques; the file
20
+ name's prefix (1–8, a–i) sets the order
19
21
  db/terms.json Korean terms the technique names are built from
20
22
  db/sources.json books and other sources
21
23
  db/schemas/ JSON Schemas of all of the above, and of apps' own files
@@ -66,6 +68,63 @@ Keyed in Revised Romanization with the pronunciation rules applied. Optional:
66
68
  `bodyPart` marks terms that name a part of the body and gives its region:
67
69
  `head`, `trunk`, `arm`, `hand`, `leg` or `foot`.
68
70
 
71
+ ### Poomsae
72
+
73
+ ```json
74
+ "Taegeuk 1Jang": {
75
+ "hangeul": "태극 일장",
76
+ "supplementaryName": "Taegeuk Iljang",
77
+ "pronunciation": { "src": "poomsae/taegeuk-1jang.mp3", "ai": true },
78
+ "videos": [{ "link": "https://youtu.be/…", "name": "Poomsae: Taegeuk 1Jang" }],
79
+ "diagram": {
80
+ "lines": [["Ra①", "Na", "Da①"], ["Ra②", "Da②"], ["Ra③", "Ga", "Da③"], ["Na", "Ga"]],
81
+ "points": { "Na": [0, 0], "Ra①": [-1, 0], "Da①": [1, 0], "Ga": [0, 2], "…": [0, 0] }
82
+ },
83
+ "movements": [
84
+ {
85
+ "order": 14,
86
+ "eyeDir": "Da③",
87
+ "position": "Da③",
88
+ "stance": { "$ref": "../seogi.json#/Apseogi", "side": "right" },
89
+ "action": [{ "$ref": "../chagi.json#/Apchagi", "side": "right" }],
90
+ "nameOfPoom": [{ "$ref": "../jireugi.json#/Momtong Jireugi", "side": "right" }]
91
+ }
92
+ ]
93
+ }
94
+ ```
95
+
96
+ Keyed by the name as the Kukkiwon writes it (`Taegeuk 1Jang`, `Koryo`);
97
+ `supplementaryName` gives the Revised Romanization where it differs,
98
+ `pronunciation` the Hangeul [spoken](#pronunciations), `description` free-form
99
+ notes on the Poomsae as a whole, with references like a technique's, and
100
+ `sources` where the course is described, like a technique's. `movements` is the
101
+ course in order: the first is Junbi, the last Baro.
102
+
103
+ `diagram` describes the Poomsae line, so apps can draw it. It is seen from
104
+ above: Na at the top, Ga at the bottom, Da on the right. `points` gives each
105
+ point as `[x, y]`, with x growing toward Da and y toward Ga. `lines` are the
106
+ polylines drawn through the points. A point off the lines, such as Ga of
107
+ Pyongwon, only marks a direction. Every `position` must
108
+ be a point; an `eyeDir` may also be a bare direction such as `Ga`.
109
+
110
+ | Field of a movement | Meaning |
111
+ |---|---|
112
+ | `order` | the number of the movement; `"Junbi"` first, `"Baro"` last |
113
+ | `eyeDir`, `position` | the eye direction and where the movement ends, as points of the Poomsae line |
114
+ | `stance` | the stance it ends in. `side` (`left`, `right`) is as the Kukkiwon names the stance: the foot in front or crossing, but the supporting leg of Dwitgubi and of stances on one leg |
115
+ | `action` | the techniques executed on the way, in order: kicks, blocks, stances passed through. With `kihap` if that technique carries it, `eyeDir` if it looks elsewhere than the movement — e.g. a kick toward Ga before turning to Da② — and `inPlace` if it takes no step; neither is part of the Kukkiwon's table |
116
+ | `nameOfPoom` | the techniques the movement is named after; `side` is the executing side, `inPlace` marks one that takes no step (not part of the Kukkiwon's table) |
117
+ | `kihap` | executed with a Kihap |
118
+ | `inPlace` | `true`: takes no step — executed where the movement before ended, the position only naming the direction it faces, e.g. Geumgangmakgi in Ilyeo; `false`: takes a step even where it only turns to look elsewhere. Omitted, every movement but Junbi and Baro is taken to step, unless it only turns to look elsewhere at the same position; not part of the Kukkiwon's table |
119
+ | `note` | what is special, per language; may [reference](#references-in-descriptions) techniques and terms |
120
+
121
+ A stance or technique the database does not have is given by `name` instead of
122
+ `$ref`. A technique given by `$ref` and `name` is a variant the referenced
123
+ technique covers, shown under the name the Poomsae uses — e.g. Ttwieo
124
+ Yeopchagi, which refers to Ttwieochagi.
125
+
126
+ Loaded techniques carry the reverse, the Poomsae that use them, as `poomsae`.
127
+
69
128
  ### References in descriptions
70
129
 
71
130
  | Syntax | Refers to |
@@ -128,8 +187,8 @@ loader that strips types; Node does not strip types below `node_modules`.
128
187
  | `patchTechniques`, `patchTerms` | change bundled techniques and terms, see below |
129
188
  | `techniqueGroups` | own techniques, keyed by group; an existing group is extended |
130
189
  | `customTechniques` | own techniques that carry their own `group` |
131
- | `terms`, `sources` | own terms and sources; replace bundled ones of the same key |
132
- | `grades` | from which grade on a technique is taught, see below |
190
+ | `terms`, `sources`, `poomsae` | own terms, sources and Poomsae; replace bundled ones of the same key |
191
+ | `grades` | from which grade on a technique or Poomsae is taught, see below |
133
192
 
134
193
  An own technique must not have the name of a bundled one — patch that instead.
135
194
  Group names are not a closed set.
@@ -137,12 +196,13 @@ Group names are not a closed set.
137
196
  #### `include`
138
197
 
139
198
  ```js
140
- { techniques: { seogi: ["Naranhiseogi", "Apseogi"], chagi: "*" }, terms: ["juchum"] }
199
+ { techniques: { seogi: ["Naranhiseogi", "Apseogi"], chagi: "*" }, terms: ["juchum"], poomsae: ["Taegeuk 1Jang"] }
141
200
  ```
142
201
 
143
202
  Techniques by group, in display order; `"*"` loads a whole group. Terms and
144
203
  sources follow from what is loaded — directly or through `lemma` and `terms`;
145
- `terms` adds bundled terms nothing uses. References to techniques left out are
204
+ `terms` adds bundled terms nothing uses. Poomsae are only loaded if listed
205
+ (`"*"` for all); techniques left out remain in them as plain names. References to techniques left out are
146
206
  dropped. Unknown names, wrong groups and patches of techniques left out are
147
207
  errors.
148
208
 
@@ -172,22 +232,24 @@ Keyed by technique or term; a patch changes only what it mentions:
172
232
  #### `grades`
173
233
 
174
234
  ```js
175
- { "9-kup": ["Apgubi", "Araemakgi"], "8-kup": ["Apseogi"] }
235
+ { "9-kup": ["Apgubi", "Araemakgi"], "8-kup": ["Taegeuk 1Jang", "Apseogi"] }
176
236
  ```
177
237
 
178
238
  Kukkiwon prescribes no grades per technique; a club states from which grade on
179
- a technique is taught. Keys are `10-kup` … `1-kup`, `1-poom` … `4-poom`,
180
- `1-dan` … `9-dan`. A technique is listed once, at its first grade. Unknown
181
- grades or techniques and duplicates are errors.
239
+ a technique or Poomsae is taught. Keys are `10-kup` … `1-kup`, `1-poom` …
240
+ `4-poom`, `1-dan` … `9-dan`. A technique or Poomsae is listed once, at its
241
+ first grade, and must be loaded. Unknown grades, techniques or Poomsae and
242
+ duplicates are errors.
182
243
 
183
244
  ### Methods
184
245
 
185
246
  | Method | Returns |
186
247
  |---|---|
187
248
  | `getTechnique(key)`, `getTerm(key)`, `getSource(key)` | one entry with its references resolved, or `undefined` |
249
+ | `getPoomsae(key)`, `getAllPoomsae()` | one Poomsae with its techniques resolved, or `undefined`; an iterator of all, in order |
188
250
  | `getAllTechniques()`, `getAllTerms()`, `getAllSources()` | iterators of `[key, entry]` |
189
251
  | `getGroups()`, `getTechniquesByGroup(group)` | the group names; the techniques of one group in order |
190
- | `getGrades()`, `getTechniquesByGrade(key)` | the grades in use, lowest first; the techniques of one grade |
252
+ | `getGrades()`, `getTechniquesByGrade(key)`, `getPoomsaeByGrade(key)` | the grades in use, lowest first; the techniques or Poomsae of one grade |
191
253
  | `searchTechniques(input, lang)` | fuzzy search over name, `supplementaryName`, Hangeul and `translation` |
192
254
  | `searchTerms(input, lang)` | fuzzy search over name, `hangeul` and `description` |
193
255
  | `resolveDescription(text)` | the text split into plain text and resolved references; references to what is not loaded become text |
@@ -236,8 +298,8 @@ Bundlers can drop the bundled data altogether by aliasing
236
298
  ### Schemas for apps
237
299
 
238
300
  Own files can point their `$schema` at `db/schemas/include.json`,
239
- `patches.json`, `grades.json`, `techniques.json`, `terms.json` or
240
- `sources.json`. The include and patch schemas describe only the shape: patched
301
+ `patches.json`, `grades.json`, `techniques.json`, `terms.json`,
302
+ `sources.json` or `poomsae.json`. The include and patch schemas describe only the shape: patched
241
303
  results are checked against the technique and term schemas, names when the
242
304
  database is built.
243
305
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file