@keymanapp/kmc-model 17.0.154-alpha → 17.0.156-alpha

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 (41) hide show
  1. package/build/src/build-trie.d.ts +42 -40
  2. package/build/src/build-trie.d.ts.map +1 -1
  3. package/build/src/build-trie.js +370 -366
  4. package/build/src/build-trie.js.map +1 -1
  5. package/build/src/compiler-callbacks.d.ts +6 -4
  6. package/build/src/compiler-callbacks.d.ts.map +1 -1
  7. package/build/src/compiler-callbacks.js +7 -5
  8. package/build/src/compiler-callbacks.js.map +1 -1
  9. package/build/src/join-word-breaker-decorator.d.ts +12 -10
  10. package/build/src/join-word-breaker-decorator.d.ts.map +1 -1
  11. package/build/src/join-word-breaker-decorator.js +123 -121
  12. package/build/src/join-word-breaker-decorator.js.map +1 -1
  13. package/build/src/lexical-model-compiler.d.ts +19 -16
  14. package/build/src/lexical-model-compiler.d.ts.map +1 -1
  15. package/build/src/lexical-model-compiler.js +153 -150
  16. package/build/src/lexical-model-compiler.js.map +1 -1
  17. package/build/src/lexical-model.d.ts +137 -135
  18. package/build/src/lexical-model.d.ts.map +1 -1
  19. package/build/src/lexical-model.js +8 -6
  20. package/build/src/lexical-model.js.map +1 -1
  21. package/build/src/main.d.ts +19 -17
  22. package/build/src/main.d.ts.map +1 -1
  23. package/build/src/main.js +60 -60
  24. package/build/src/main.js.map +1 -1
  25. package/build/src/model-compiler-errors.d.ts +53 -51
  26. package/build/src/model-compiler-errors.d.ts.map +1 -1
  27. package/build/src/model-compiler-errors.js +58 -56
  28. package/build/src/model-compiler-errors.js.map +1 -1
  29. package/build/src/model-defaults.d.ts +58 -56
  30. package/build/src/model-defaults.d.ts.map +1 -1
  31. package/build/src/model-defaults.js +108 -106
  32. package/build/src/model-defaults.js.map +1 -1
  33. package/build/src/model-definitions.d.ts +73 -71
  34. package/build/src/model-definitions.d.ts.map +1 -1
  35. package/build/src/model-definitions.js +191 -189
  36. package/build/src/model-definitions.js.map +1 -1
  37. package/build/src/script-overrides-decorator.d.ts +6 -4
  38. package/build/src/script-overrides-decorator.d.ts.map +1 -1
  39. package/build/src/script-overrides-decorator.js +66 -64
  40. package/build/src/script-overrides-decorator.js.map +1 -1
  41. package/package.json +7 -7
@@ -1,40 +1,42 @@
1
- /**
2
- * A word list is (conceptually) an array of pairs: the concrete word form itself + a
3
- * non-negative count.
4
- *
5
- * Since each word should only appear once within the list, we represent it with
6
- * an associative array pattern keyed by the wordform.
7
- */
8
- export type WordList = {
9
- [wordform: string]: number;
10
- };
11
- /**
12
- * Returns a data structure that can be loaded by the TrieModel.
13
- *
14
- * It implements a **weighted** trie, whose indices (paths down the trie) are
15
- * generated by a search key, and not concrete wordforms themselves.
16
- *
17
- * @param sourceFiles an array of source files that will be read to generate the trie.
18
- */
19
- export declare function createTrieDataStructure(filenames: string[], searchTermToKey?: (wf: string) => string): string;
20
- /**
21
- * Parses a word list from a file, merging duplicate entries.
22
- *
23
- * The word list may be encoded in:
24
- *
25
- * - UTF-8, with or without BOM [exported by most software]
26
- * - UTF-16, little endian, with BOM [exported by Microsoft Excel]
27
- *
28
- * @param wordlist word list to merge entries into (may have existing entries)
29
- * @param filename filename of the word list
30
- */
31
- export declare function parseWordListFromFilename(wordlist: WordList, filename: string): void;
32
- /**
33
- * Parses a word list from a string. The string should have multiple lines
34
- * with LF or CRLF line terminators.
35
- *
36
- * @param wordlist word list to merge entries into (may have existing entries)
37
- * @param filename filename of the word list
38
- */
39
- export declare function parseWordListFromContents(wordlist: WordList, contents: string): void;
40
- //# sourceMappingURL=build-trie.d.ts.map
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="82977ed1-376e-5f0d-8872-7a0c42176370")}catch(e){}}();
2
+ /**
3
+ * A word list is (conceptually) an array of pairs: the concrete word form itself + a
4
+ * non-negative count.
5
+ *
6
+ * Since each word should only appear once within the list, we represent it with
7
+ * an associative array pattern keyed by the wordform.
8
+ */
9
+ export type WordList = {
10
+ [wordform: string]: number;
11
+ };
12
+ /**
13
+ * Returns a data structure that can be loaded by the TrieModel.
14
+ *
15
+ * It implements a **weighted** trie, whose indices (paths down the trie) are
16
+ * generated by a search key, and not concrete wordforms themselves.
17
+ *
18
+ * @param sourceFiles an array of source files that will be read to generate the trie.
19
+ */
20
+ export declare function createTrieDataStructure(filenames: string[], searchTermToKey?: (wf: string) => string): string;
21
+ /**
22
+ * Parses a word list from a file, merging duplicate entries.
23
+ *
24
+ * The word list may be encoded in:
25
+ *
26
+ * - UTF-8, with or without BOM [exported by most software]
27
+ * - UTF-16, little endian, with BOM [exported by Microsoft Excel]
28
+ *
29
+ * @param wordlist word list to merge entries into (may have existing entries)
30
+ * @param filename filename of the word list
31
+ */
32
+ export declare function parseWordListFromFilename(wordlist: WordList, filename: string): void;
33
+ /**
34
+ * Parses a word list from a string. The string should have multiple lines
35
+ * with LF or CRLF line terminators.
36
+ *
37
+ * @param wordlist word list to merge entries into (may have existing entries)
38
+ * @param filename filename of the word list
39
+ */
40
+ export declare function parseWordListFromContents(wordlist: WordList, contents: string): void;
41
+ //# debugId=82977ed1-376e-5f0d-8872-7a0c42176370
42
+ //# sourceMappingURL=build-trie.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-trie.d.ts","sourceRoot":"","sources":["../../src/build-trie.ts"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG;IAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,CAAC;AAEpD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAU7G;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAGpF;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAGpF"}
1
+ {"debug_id":"82977ed1-376e-5f0d-8872-7a0c42176370","file":"build-trie.d.ts","mappings":";AAMA;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG;IAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,CAAC;AAEpD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAU7G;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAGpF;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAGpF","names":[],"sourceRoot":"","sources":["../../src/build-trie.ts"],"version":3}