@kulupu-linku/sona 0.1.10 → 0.2.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 +18 -3
- package/dist/client.d.ts +1 -802
- package/dist/client.js +98 -4
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +1 -1159
- package/dist/index.js +148 -168
- package/dist/index.js.map +1 -0
- package/dist/lib/client.d.ts +201 -0
- package/dist/lib/index.d.ts +959 -0
- package/dist/lib/types.d.ts +17 -0
- package/dist/lib/utils.d.ts +13 -0
- package/dist/utils-CnA4OULt.js +2777 -0
- package/dist/utils-CnA4OULt.js.map +1 -0
- package/dist/utils.d.ts +1 -16
- package/dist/utils.js +7 -12
- package/dist/utils.js.map +1 -0
- package/generated/languages.json +15 -0
- package/generated/sandbox.json +16 -3
- package/generated/word.json +16 -3
- package/generated/words.json +16 -3
- package/package.json +19 -15
- package/LICENSE +0 -674
- package/dist/chunk-QCIUEY5V.js +0 -38
- package/dist/types.d.ts +0 -2
- package/dist/types.js +0 -0
- package/generated/etymology.json +0 -20
- package/generated/representations.json +0 -43
- package/generated/resources.json +0 -30
package/dist/chunk-QCIUEY5V.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// src/utils.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var Book = z.union([
|
|
4
|
-
z.literal("pu"),
|
|
5
|
-
z.literal("ku suli"),
|
|
6
|
-
z.literal("ku lili"),
|
|
7
|
-
z.literal("none")
|
|
8
|
-
]);
|
|
9
|
-
var CoinedEra = z.union([z.literal("pre-pu"), z.literal("post-pu"), z.literal("post-ku")]);
|
|
10
|
-
var UsageCategory = z.union([
|
|
11
|
-
z.literal("core"),
|
|
12
|
-
z.literal("widespread"),
|
|
13
|
-
z.literal("common"),
|
|
14
|
-
z.literal("uncommon"),
|
|
15
|
-
z.literal("rare"),
|
|
16
|
-
z.literal("obscure")
|
|
17
|
-
]);
|
|
18
|
-
var WritingSystem = z.enum([
|
|
19
|
-
"sitelen pona",
|
|
20
|
-
"sitelen sitelen",
|
|
21
|
-
"alphabet",
|
|
22
|
-
"syllabary",
|
|
23
|
-
"logography",
|
|
24
|
-
"tokiponido alphabet",
|
|
25
|
-
"tokiponido syllabary",
|
|
26
|
-
"tokiponido logography"
|
|
27
|
-
]);
|
|
28
|
-
function getTranslatedData(data, key, language) {
|
|
29
|
-
return (data.translations[language] ?? data.translations["en"])[key];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
Book,
|
|
34
|
-
CoinedEra,
|
|
35
|
-
UsageCategory,
|
|
36
|
-
WritingSystem,
|
|
37
|
-
getTranslatedData
|
|
38
|
-
};
|
package/dist/types.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { FontLinks, LocalizedSignParameters, LocalizedWordCommentary, LocalizedWordDefinition, LocalizedWordEtymology, LocalizedWordSitelenEtymology, SignEtymology, SignVideo, SignWriting, WordAudio, WordKuData, WordPuVerbatim, WordRepresentations, WordTranslation, WordTranslations, WordUsage } from './index.js';
|
|
2
|
-
import 'zod';
|
package/dist/types.js
DELETED
|
File without changes
|
package/generated/etymology.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/etymology",
|
|
3
|
-
"definitions": {
|
|
4
|
-
"etymology": {
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"word": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "One of the root words of this word, as written out in its language of origin"
|
|
10
|
-
},
|
|
11
|
-
"alt": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "A latinized representation of the \"word\" field"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"additionalProperties": false
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
20
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/representations",
|
|
3
|
-
"definitions": {
|
|
4
|
-
"representations": {
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"not": {}
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"sitelen_emosi": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
15
|
-
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
16
|
-
},
|
|
17
|
-
"ligatures": {
|
|
18
|
-
"type": "array",
|
|
19
|
-
"items": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"minLength": 1
|
|
22
|
-
},
|
|
23
|
-
"description": "A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona"
|
|
24
|
-
},
|
|
25
|
-
"sitelen_sitelen": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"format": "uri",
|
|
28
|
-
"description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block"
|
|
29
|
-
},
|
|
30
|
-
"ucsur": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"pattern": "^U\\+[\\da-fA-F]{4,6}$",
|
|
33
|
-
"description": "The word's UCSUR codepoint, as defined in https://www.kreativekorp.com/ucsur/charts/sitelen.html"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"additionalProperties": false
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"description": "Ways of representing this word in the real world, via text/computers"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
43
|
-
}
|
package/generated/resources.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/resources",
|
|
3
|
-
"definitions": {
|
|
4
|
-
"resources": {
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"not": {}
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"sona_pona": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"format": "uri",
|
|
15
|
-
"description": "A link to the word's page on sona.pona.la, a Toki Pona wiki. May redirect for words with references but no dedicated page."
|
|
16
|
-
},
|
|
17
|
-
"lipamanka_semantic": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"format": "uri",
|
|
20
|
-
"description": "A link to lipamanka's description of the word's semantic space."
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"additionalProperties": false
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"description": "Non-Linku resources related to the specific word, such as wiki links."
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
30
|
-
}
|