@polyglot-bundles/km-parallel-text 0.1.2 → 0.1.4
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/dist/essential-218/translations.d.ts +1 -1
- package/dist/essential-218/translations.d.ts.map +1 -1
- package/dist/essential-218/utils.d.ts +2 -12
- package/dist/essential-218/utils.d.ts.map +1 -1
- package/dist/essential-218-BEILeO_6.js +8 -0
- package/dist/essential-218-BEILeO_6.js.map +1 -0
- package/dist/essential-218.js +2 -2
- package/dist/gsfa-1200/translations.d.ts +1 -1
- package/dist/gsfa-1200/translations.d.ts.map +1 -1
- package/dist/gsfa-1200/utils.d.ts +2 -12
- package/dist/gsfa-1200/utils.d.ts.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -0
- package/package.json +3 -3
- package/dist/essential-218-rcy1q90S.js +0 -17
- package/dist/essential-218-rcy1q90S.js.map +0 -1
- package/dist/gsfa-1200-KG_juywA.js +0 -15
- package/dist/gsfa-1200-KG_juywA.js.map +0 -1
- package/dist/gsfa-1200.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { EssentialSentenceTranslation } from '@polyglot-bundles/parallel-text-base';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const translations: EssentialSentenceTranslation[];
|
|
3
3
|
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/essential-218/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEzF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/essential-218/translations.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEzF,eAAO,MAAM,YAAY,EAAE,4BAA4B,EAAO,CAAC"}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Get parallel text (English + Khmer) for a single sentence by string ID.
|
|
4
|
-
* @param id - String ID (e.g., "1", "2", etc.)
|
|
5
|
-
*/
|
|
6
|
-
export declare function getParallelTextById(id: string): ParallelText | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* Get parallel text (English + Khmer) for multiple sentences by string IDs.
|
|
9
|
-
* @param ids - Array of string IDs (e.g., ["1", "2", "3"])
|
|
10
|
-
*/
|
|
11
|
-
export declare function getParallelTextByIds(ids: string[]): ParallelText[];
|
|
12
|
-
export { defaultRemarksEssential218 as defaultRemarks } from './remarks';
|
|
1
|
+
declare const getParallelTextById: (id: string) => import('@polyglot-bundles/parallel-text-base').ParallelText | undefined, getParallelTextByIds: (ids: string[]) => import('@polyglot-bundles/parallel-text-base').ParallelText[], defaultRemarks: import('@polyglot-bundles/parallel-text-base').ParallelTextRemarks;
|
|
2
|
+
export { getParallelTextById, getParallelTextByIds, defaultRemarks };
|
|
13
3
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/essential-218/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/essential-218/utils.ts"],"names":[],"mappings":"AAIA,QAAA,MAAQ,mBAAmB,2FAAE,oBAAoB,oFAAE,cAAc,oEAGhE,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createEssential218Utils as e } from "@polyglot-bundles/parallel-text-base";
|
|
2
|
+
//#endregion
|
|
3
|
+
//#region src/essential-218/utils.ts
|
|
4
|
+
var { getParallelTextById: t, getParallelTextByIds: n, defaultRemarks: r } = e([], {});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { t as n, n as r, r as t };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=essential-218-BEILeO_6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"essential-218-BEILeO_6.js","names":[],"sources":["../src/essential-218/translations.ts","../src/essential-218/remarks.ts","../src/essential-218/utils.ts"],"sourcesContent":["/**\r\n * Empty stub - translations will be added later\r\n */\r\nimport type { EssentialSentenceTranslation } from \"@polyglot-bundles/parallel-text-base\";\r\n\r\nexport const translations: EssentialSentenceTranslation[] = [];","export const defaultRemarksEssential218: Record<string, string> = {\r\n // Remarks to be populated\r\n};\r\n","import { createEssential218Utils } from \"@polyglot-bundles/parallel-text-base\";\nimport { translations } from \"./translations\";\nimport { defaultRemarksEssential218 } from \"./remarks\";\n\nconst { getParallelTextById, getParallelTextByIds, defaultRemarks } = createEssential218Utils(\n translations,\n defaultRemarksEssential218,\n);\n\nexport { getParallelTextById, getParallelTextByIds, defaultRemarks };"],"mappings":";;;AEIA,IAAM,EAAE,wBAAqB,yBAAsB,sBAAmB,EFCV,EAAE,ECLI,EAEjE,CCKA"}
|
package/dist/essential-218.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./essential-218-
|
|
2
|
-
export {
|
|
1
|
+
import { n as e, r as t, t as n } from "./essential-218-BEILeO_6.js";
|
|
2
|
+
export { n as defaultRemarks, e as getParallelTextById, t as getParallelTextByIds };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/gsfa-1200/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAEpF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/gsfa-1200/translations.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAEpF,eAAO,MAAM,YAAY,EAAE,uBAAuB,EAAO,CAAC"}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Get parallel text (English + Khmer) for a single sentence by string ID.
|
|
4
|
-
* @param id - GSFA string ID (e.g., "gsfa_1_1")
|
|
5
|
-
*/
|
|
6
|
-
export declare function getParallelTextById(id: string): ParallelText | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* Get parallel text (English + Khmer) for multiple sentences by string IDs.
|
|
9
|
-
* @param ids - Array of GSFA string IDs (e.g., ["gsfa_1_1", "gsfa_1_2"])
|
|
10
|
-
*/
|
|
11
|
-
export declare function getParallelTextByIds(ids: string[]): ParallelText[];
|
|
12
|
-
export { defaultRemarksGSFA1200 as defaultRemarks } from './remarks';
|
|
1
|
+
declare const getParallelTextById: (id: string) => import('@polyglot-bundles/parallel-text-base').ParallelText | undefined, getParallelTextByIds: (ids: string[]) => import('@polyglot-bundles/parallel-text-base').ParallelText[], defaultRemarks: import('@polyglot-bundles/parallel-text-base').ParallelTextRemarks;
|
|
2
|
+
export { getParallelTextById, getParallelTextByIds, defaultRemarks };
|
|
13
3
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/gsfa-1200/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/gsfa-1200/utils.ts"],"names":[],"mappings":"AAIA,QAAA,MAAQ,mBAAmB,2FAAE,oBAAoB,oFAAE,cAAc,oEAGhE,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./essential-218-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { n as e, r as t, t as n } from "./essential-218-BEILeO_6.js";
|
|
2
|
+
import { createGSFAUtils as r } from "@polyglot-bundles/parallel-text-base";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/gsfa-1200/utils.ts
|
|
5
|
+
var { getParallelTextById: i, getParallelTextByIds: a, defaultRemarks: o } = r([], {});
|
|
6
|
+
//#endregion
|
|
7
|
+
export { o as defaultGSFARemarks, n as defaultRemarks, i as getGSFAParallelTextById, a as getGSFAParallelTextByIds, e as getParallelTextById, t as getParallelTextByIds };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/gsfa-1200/translations.ts","../src/gsfa-1200/remarks.ts","../src/gsfa-1200/utils.ts"],"sourcesContent":["/**\r\n * Empty stub - GSFA 1200 translations will be added later\r\n */\r\nimport type { GSFASentenceTranslation } from \"@polyglot-bundles/parallel-text-base\";\r\n\r\nexport const translations: GSFASentenceTranslation[] = [];","export const defaultRemarksGSFA1200: Record<string, string> = {\r\n // Remarks to be populated\r\n};\r\n","import { createGSFAUtils } from \"@polyglot-bundles/parallel-text-base\";\nimport { translations } from \"./translations\";\nimport { defaultRemarksGSFA1200 } from \"./remarks\";\n\nconst { getParallelTextById, getParallelTextByIds, defaultRemarks } = createGSFAUtils(\n translations,\n defaultRemarksGSFA1200,\n);\n\nexport { getParallelTextById, getParallelTextByIds, defaultRemarks };"],"mappings":";;;;AEIA,IAAM,EAAE,wBAAqB,yBAAsB,sBAAmB,EFCf,EAAE,ECLK,EAE7D,CCKA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polyglot-bundles/km-parallel-text",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Khmer parallel text corpus - Essential 218 and GSFA 1200 sentences with Khmer translations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@polyglot-bundles/lang-tooling": "0.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@polyglot-bundles/parallel-text-base": "0.1.
|
|
47
|
+
"@polyglot-bundles/parallel-text-base": "0.1.3"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"typecheck": "tsc --noEmit",
|
|
51
|
-
"build": "vite build",
|
|
51
|
+
"build": "tsx scripts/generate.ts && vite build",
|
|
52
52
|
"clean": "rm -rf dist"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createParallelTextUtils as e } from "@polyglot-bundles/parallel-text-base";
|
|
2
|
-
//#region src/essential-218/translations.ts
|
|
3
|
-
var t = [], n = {}, r = /* @__PURE__ */ new Map();
|
|
4
|
-
for (let e of t) r.set(e.sentenceId, e);
|
|
5
|
-
var i = e(r);
|
|
6
|
-
function a(e) {
|
|
7
|
-
let t = parseInt(e, 10);
|
|
8
|
-
if (!isNaN(t)) return i.getParallelTextById(t);
|
|
9
|
-
}
|
|
10
|
-
function o(e) {
|
|
11
|
-
let t = e.map((e) => parseInt(e, 10)).filter((e) => !isNaN(e));
|
|
12
|
-
return i.getParallelTextByIds(t);
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { o as n, n as r, a as t };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=essential-218-rcy1q90S.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"essential-218-rcy1q90S.js","names":[],"sources":["../src/essential-218/translations.ts","../src/essential-218/remarks.ts","../src/essential-218/utils.ts"],"sourcesContent":["import type { EssentialSentenceTranslation } from \"@polyglot-bundles/parallel-text-base\";\r\n\r\nexport const kmKHEssential218Translations: EssentialSentenceTranslation[] = [\r\n // Translations to be populated\r\n];\r\n","export const defaultRemarksEssential218: Record<string, string> = {\r\n // Remarks to be populated\r\n};\r\n","/**\r\n * Parallel text utilities for Essential 218 sentences in Khmer\r\n */\r\n\r\nimport {\r\n createParallelTextUtils,\r\n type ParallelText,\r\n} from \"@polyglot-bundles/parallel-text-base\";\r\nimport type { EssentialSentenceTranslation } from \"@polyglot-bundles/parallel-text-base\";\r\n\r\nimport { kmKHEssential218Translations } from \"./translations\";\r\n\r\n// Build translation map\r\nconst translationMap = new Map<number, EssentialSentenceTranslation>();\r\nfor (const translation of kmKHEssential218Translations) {\r\n translationMap.set(translation.sentenceId, translation);\r\n}\r\n\r\n// Create parallel text utilities using the factory\r\nconst parallelTextUtils = createParallelTextUtils(translationMap);\r\n\r\n/**\r\n * Get parallel text (English + Khmer) for a single sentence by string ID.\r\n * @param id - String ID (e.g., \"1\", \"2\", etc.)\r\n */\r\nexport function getParallelTextById(id: string): ParallelText | undefined {\r\n const numericId = parseInt(id, 10);\r\n if (isNaN(numericId)) {\r\n return undefined;\r\n }\r\n return parallelTextUtils.getParallelTextById(numericId);\r\n}\r\n\r\n/**\r\n * Get parallel text (English + Khmer) for multiple sentences by string IDs.\r\n * @param ids - Array of string IDs (e.g., [\"1\", \"2\", \"3\"])\r\n */\r\nexport function getParallelTextByIds(ids: string[]): ParallelText[] {\r\n const numericIds = ids\r\n .map((id) => parseInt(id, 10))\r\n .filter((id) => !isNaN(id));\r\n return parallelTextUtils.getParallelTextByIds(numericIds);\r\n}\r\n\r\n// Re-export default remarks for convenience\r\nexport { defaultRemarksEssential218 as defaultRemarks } from \"./remarks\";\r\n"],"mappings":";;AAEA,IAAa,IAA+D,EAE3E,ECJY,IAAqD,EAEjE,ECWK,oBAAiB,IAAI,KAA2C;AACtE,KAAK,IAAM,KAAe,EACxB,GAAe,IAAI,EAAY,YAAY,EAAY;AAIzD,IAAM,IAAoB,EAAwB,EAAe;AAMjE,SAAgB,EAAoB,GAAsC;CACxE,IAAM,IAAY,SAAS,GAAI,GAAG;AAC9B,YAAM,EAAU,CAGpB,QAAO,EAAkB,oBAAoB,EAAU;;AAOzD,SAAgB,EAAqB,GAA+B;CAClE,IAAM,IAAa,EAChB,KAAK,MAAO,SAAS,GAAI,GAAG,CAAC,CAC7B,QAAQ,MAAO,CAAC,MAAM,EAAG,CAAC;AAC7B,QAAO,EAAkB,qBAAqB,EAAW"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createGSFAParallelTextUtils as e } from "@polyglot-bundles/parallel-text-base";
|
|
2
|
-
//#region src/gsfa-1200/translations.ts
|
|
3
|
-
var t = [], n = {}, r = /* @__PURE__ */ new Map();
|
|
4
|
-
for (let e of t) r.set(e.sentenceId, e);
|
|
5
|
-
var i = e(r);
|
|
6
|
-
function a(e) {
|
|
7
|
-
return i.getParallelTextById(e);
|
|
8
|
-
}
|
|
9
|
-
function o(e) {
|
|
10
|
-
return i.getParallelTextByIds(e);
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { o as n, n as r, a as t };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=gsfa-1200-KG_juywA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gsfa-1200-KG_juywA.js","names":[],"sources":["../src/gsfa-1200/translations.ts","../src/gsfa-1200/remarks.ts","../src/gsfa-1200/utils.ts"],"sourcesContent":["import type { GSFASentenceTranslation } from \"@polyglot-bundles/parallel-text-base\";\r\n\r\nexport const kmKHGSFA1200Translations: GSFASentenceTranslation[] = [\r\n // Translations to be populated\r\n];\r\n","export const defaultRemarksGSFA1200: Record<string, string> = {\r\n // Remarks to be populated\r\n};\r\n","/**\r\n * Parallel text utilities for Gsfa 1200 sentences in Khmer\r\n */\r\n\r\nimport {\r\n createGSFAParallelTextUtils,\r\n type ParallelText,\r\n} from \"@polyglot-bundles/parallel-text-base\";\r\nimport type { GSFASentenceTranslation } from \"@polyglot-bundles/parallel-text-base\";\r\n\r\nimport { kmKHGSFA1200Translations } from \"./translations\";\r\n\r\n// Build translation map\r\nconst translationMap = new Map<string, GSFASentenceTranslation>();\r\nfor (const translation of kmKHGSFA1200Translations) {\r\n translationMap.set(translation.sentenceId, translation);\r\n}\r\n\r\n// Create parallel text utilities using the factory\r\nconst parallelTextUtils = createGSFAParallelTextUtils(translationMap);\r\n\r\n/**\r\n * Get parallel text (English + Khmer) for a single sentence by string ID.\r\n * @param id - GSFA string ID (e.g., \"gsfa_1_1\")\r\n */\r\nexport function getParallelTextById(id: string): ParallelText | undefined {\r\n return parallelTextUtils.getParallelTextById(id);\r\n}\r\n\r\n/**\r\n * Get parallel text (English + Khmer) for multiple sentences by string IDs.\r\n * @param ids - Array of GSFA string IDs (e.g., [\"gsfa_1_1\", \"gsfa_1_2\"])\r\n */\r\nexport function getParallelTextByIds(ids: string[]): ParallelText[] {\r\n return parallelTextUtils.getParallelTextByIds(ids);\r\n}\r\n\r\n// Re-export default remarks for convenience\r\nexport { defaultRemarksGSFA1200 as defaultRemarks } from \"./remarks\";\r\n"],"mappings":";;AAEA,IAAa,IAAsD,EAElE,ECJY,IAAiD,EAE7D,ECWK,oBAAiB,IAAI,KAAsC;AACjE,KAAK,IAAM,KAAe,EACxB,GAAe,IAAI,EAAY,YAAY,EAAY;AAIzD,IAAM,IAAoB,EAA4B,EAAe;AAMrE,SAAgB,EAAoB,GAAsC;AACxE,QAAO,EAAkB,oBAAoB,EAAG;;AAOlD,SAAgB,EAAqB,GAA+B;AAClE,QAAO,EAAkB,qBAAqB,EAAI"}
|
package/dist/gsfa-1200.js
DELETED