@gukhanmun/opendict-cdb 0.2.0-dev.96 → 0.2.1
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/ATTRIBUTION.md +6 -6
- package/README.md +7 -6
- package/dist/general.cdb.gz +0 -0
- package/package.json +2 -2
package/ATTRIBUTION.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
OpenDict CDB package license and attribution
|
|
2
2
|
============================================
|
|
3
3
|
|
|
4
|
-
This package contains Gukhanmun package code and bundled Open Korean
|
|
5
|
-
(우리말샘) CDB data.
|
|
4
|
+
This package contains Gukhanmun package code and bundled *Open Korean
|
|
5
|
+
Dictionary* (우리말샘) CDB data.
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Code license
|
|
@@ -15,14 +15,14 @@ repository root *LICENSE* file for the full license text.
|
|
|
15
15
|
Data attribution
|
|
16
16
|
----------------
|
|
17
17
|
|
|
18
|
-
The bundled dictionary data is derived from the Open Korean Dictionary
|
|
18
|
+
The bundled dictionary data is derived from the *Open Korean Dictionary*
|
|
19
19
|
(우리말샘) JSON dump published by the National Institute of Korean Language.
|
|
20
20
|
|
|
21
|
-
- Source: National Institute of Korean Language, Open Korean Dictionary
|
|
21
|
+
- Source: National Institute of Korean Language, *Open Korean Dictionary*
|
|
22
22
|
(우리말샘), <https://opendict.korean.go.kr/>
|
|
23
|
-
- Snapshot: *전체 내려받기\_우리말샘\_json\
|
|
23
|
+
- Snapshot: *전체 내려받기\_우리말샘\_json\_20260603.zip*
|
|
24
24
|
- Data license: Creative Commons Attribution-ShareAlike 2.0 Korea
|
|
25
25
|
(CC BY-SA 2.0 KR), <https://creativecommons.org/licenses/by-sa/2.0/kr/>
|
|
26
26
|
|
|
27
27
|
The generated CDB files in this package are modified dictionary snapshots
|
|
28
|
-
produced by Gukhanmun's Open Korean Dictionary extractor.
|
|
28
|
+
produced by Gukhanmun's *Open Korean Dictionary* extractor.
|
package/README.md
CHANGED
|
@@ -50,8 +50,8 @@ and 옛말 categories, so you can select and load only the categories you need:
|
|
|
50
50
|
- `opendictDialectCdb()`
|
|
51
51
|
- `opendictArchaicCdb()`
|
|
52
52
|
|
|
53
|
-
Each function returns a `DictionarySource` record (a
|
|
54
|
-
object).
|
|
53
|
+
Each function returns a `DictionarySource` record (a
|
|
54
|
+
`{ format: "cdb", bytes: Uint8Array }` object).
|
|
55
55
|
|
|
56
56
|
### Raw bytes and URLs
|
|
57
57
|
|
|
@@ -69,11 +69,12 @@ To get the package URL of a CDB binary, use the `*Url` constants:
|
|
|
69
69
|
- `opendictDialectCdbUrl`
|
|
70
70
|
- `opendictArchaicCdbUrl`
|
|
71
71
|
|
|
72
|
-
The `*Bytes()` helpers read the binary from disk using `node:fs/promises` if
|
|
73
|
-
a `file:` URL (default for npm installations), and fall back to
|
|
72
|
+
The `*Bytes()` helpers read the binary from disk using `node:fs/promises` if
|
|
73
|
+
loaded from a `file:` URL (default for npm installations), and fall back to
|
|
74
|
+
`fetch` for other protocols.
|
|
74
75
|
|
|
75
76
|
The bundled binaries ship gzip-compressed (the `*Url` constants point at
|
|
76
|
-
|
|
77
|
+
_\*.cdb.gz_ files) to stay within the JSR per-file size limit. The `*Bytes()`
|
|
77
78
|
helpers inflate them transparently, so their return value is always the raw
|
|
78
79
|
CDB; only reach past them to the `*Url` constants if you intend to handle the
|
|
79
80
|
gzip yourself.
|
|
@@ -93,7 +94,7 @@ Data attribution
|
|
|
93
94
|
----------------
|
|
94
95
|
|
|
95
96
|
The bundled dictionary data is derived from the National Institute of Korean
|
|
96
|
-
Language's *Open Korean Dictionary* (우리말샘) JSON dump dated 2026-
|
|
97
|
+
Language's *Open Korean Dictionary* (우리말샘) JSON dump dated 2026-06-03. See
|
|
97
98
|
*ATTRIBUTION.md* for source and license details.
|
|
98
99
|
|
|
99
100
|
|
package/dist/general.cdb.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gukhanmun/opendict-cdb",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Open Korean Dictionary categories bundled as CDB binaries for @gukhanmun/wasm and @gukhanmun/napi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@gukhanmun/types": "*"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@gukhanmun/types": "0.2.
|
|
55
|
+
"@gukhanmun/types": "0.2.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"prebuild": "mise run -C ../.. opendict-cdb-data",
|