@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.
- package/README.md +73 -11
- package/audio/poomsae/chonkwon.mp3 +0 -0
- package/audio/poomsae/hansu.mp3 +0 -0
- package/audio/poomsae/ilyeo.mp3 +0 -0
- package/audio/poomsae/jitae.mp3 +0 -0
- package/audio/poomsae/keumgang.mp3 +0 -0
- package/audio/poomsae/koryo.mp3 +0 -0
- package/audio/poomsae/pyongwon.mp3 +0 -0
- package/audio/poomsae/shipjin.mp3 +0 -0
- package/audio/poomsae/taebaek.mp3 +0 -0
- package/audio/poomsae/taegeuk-1jang.mp3 +0 -0
- package/audio/poomsae/taegeuk-2jang.mp3 +0 -0
- package/audio/poomsae/taegeuk-3jang.mp3 +0 -0
- package/audio/poomsae/taegeuk-4jang.mp3 +0 -0
- package/audio/poomsae/taegeuk-5jang.mp3 +0 -0
- package/audio/poomsae/taegeuk-6jang.mp3 +0 -0
- package/audio/poomsae/taegeuk-7jang.mp3 +0 -0
- package/audio/poomsae/taegeuk-8jang.mp3 +0 -0
- package/db/chagi.json +44 -543
- package/db/chigi.json +24 -33
- package/db/ditgi.json +8 -92
- package/db/jireugi.json +9 -44
- package/db/jjireugi.json +8 -21
- package/db/junbijase.json +7 -1
- package/db/kkeokgi.json +4 -20
- package/db/makgi.json +68 -10
- package/db/poomsae/1-taegeuk-1jang.json +214 -0
- package/db/poomsae/2-taegeuk-2jang.json +227 -0
- package/db/poomsae/3-taegeuk-3jang.json +256 -0
- package/db/poomsae/4-taegeuk-4jang.json +267 -0
- package/db/poomsae/5-taegeuk-5jang.json +291 -0
- package/db/poomsae/6-taegeuk-6jang.json +292 -0
- package/db/poomsae/7-taegeuk-7jang.json +342 -0
- package/db/poomsae/8-taegeuk-8jang.json +377 -0
- package/db/poomsae/a-koryo.json +458 -0
- package/db/poomsae/b-keumgang.json +292 -0
- package/db/poomsae/c-taebaek.json +332 -0
- package/db/poomsae/d-pyongwon.json +289 -0
- package/db/poomsae/e-shipjin.json +301 -0
- package/db/poomsae/f-jitae.json +326 -0
- package/db/poomsae/g-chonkwon.json +340 -0
- package/db/poomsae/h-hansu.json +332 -0
- package/db/poomsae/i-ilyeo.json +287 -0
- package/db/schemas/grades.json +2 -2
- package/db/schemas/include.json +11 -0
- package/db/schemas/poomsae.json +221 -0
- package/db/seogi.json +24 -34
- package/db/sources.json +7 -0
- package/package.json +1 -1
- package/src/builtins-empty.js +1 -0
- package/src/builtins.d.ts +2 -0
- package/src/builtins.js +55 -0
- package/src/compose-builtins.js +2 -0
- package/src/compose.d.ts +10 -2
- package/src/compose.js +52 -7
- package/src/database.ts +143 -4
- package/src/grade.d.ts +3 -2
- package/types/poomsae.d.ts +136 -0
- package/types/source.d.ts +4 -1
- package/types/technique.d.ts +4 -0
- package/audio/chagi/apbal-bada-meori-dollyeochagi.mp3 +0 -0
- package/audio/chagi/apbal-jejari-dollyeochagi.mp3 +0 -0
- package/audio/chagi/apbal-kkeureo-dollyeochagi.mp3 +0 -0
- package/audio/chagi/balbutyeo-dollyeochagi.mp3 +0 -0
- package/audio/chagi/balbutyeo-naeryeochagi.mp3 +0 -0
- package/audio/chagi/dwi-gongjung-yangbal-apchagi.mp3 +0 -0
- package/audio/chagi/eolgul-pyojeok-anchagi.mp3 +0 -0
- package/audio/chagi/gaseum-ditgo-dwi-gongjung-apchagi.mp3 +0 -0
- package/audio/chagi/gaseum-ditgo-dwi-gongjung-yangbal-apchagi.mp3 +0 -0
- package/audio/chagi/geodeup-apchagi.mp3 +0 -0
- package/audio/chagi/geodeup-dollyeochagi.mp3 +0 -0
- package/audio/chagi/geodeup-yeopchagi.mp3 +0 -0
- package/audio/chagi/jase-bakkwo-dollyeochagi.mp3 +0 -0
- package/audio/chagi/mo-gongjung-dora-apchagi.mp3 +0 -0
- package/audio/chagi/mo-gongjung-dora-dwihuryeochagi.mp3 +0 -0
- package/audio/chagi/modumbal-apchagi.mp3 +0 -0
- package/audio/chagi/nun-garigo-ttwieo-dolgaechagi.mp3 +0 -0
- package/audio/chagi/oebal-dolgaechagi.mp3 +0 -0
- package/audio/chagi/ttwieo-360-hwejeonhamyeo-pyojeok-anchagi.mp3 +0 -0
- package/audio/chagi/ttwieo-apchagi.mp3 +0 -0
- package/audio/chagi/ttwieo-dollyeochagi.mp3 +0 -0
- package/audio/chagi/ttwieo-dwichagi.mp3 +0 -0
- package/audio/chagi/ttwieo-dwihuryeochagi.mp3 +0 -0
- package/audio/chagi/ttwieo-yeopchagi.mp3 +0 -0
- package/audio/chagi/tucheok-dwi-gongjung-dora-apchagi.mp3 +0 -0
- package/audio/chigi/eolgul-batangson-apchigi.mp3 +0 -0
- package/audio/ditgi/apbal-naeditgi.mp3 +0 -0
- package/audio/ditgi/balbutyeo-naeditgi.mp3 +0 -0
- package/audio/ditgi/du-bal-naeditgi.mp3 +0 -0
- package/audio/ditgi/dwitbal-naeditgi.mp3 +0 -0
- package/audio/ditgi/jase-bakkwo-ditgi.mp3 +0 -0
- package/audio/jireugi/pyojeok-yeopjireugi.mp3 +0 -0
- package/audio/jireugi/teok-danggyeojireugi.mp3 +0 -0
- package/audio/jjireugi/arae-jeotyeojjireugi.mp3 +0 -0
- package/audio/kkeokgi/mureup-nulleokkeokgi.mp3 +0 -0
- 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
|
|
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.
|
|
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` …
|
|
180
|
-
`1-dan` … `9-dan`. A technique is listed once, at its
|
|
181
|
-
|
|
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
|
|
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
|