Commit 3340605
authored
First proposal for a finalized interlinear model (#25)
* First proposal for a finalized interlinear model
* Adjusted JSDoc, made enums const
* Add charStart and charEnd to Token in order to facilitate scriptio continua
- Both are non-optional because computation is trivial and keeps our options open for user-defined token boundaries in whitespace languages if ever desired
- Updated cspell
* Remove entryIds from where it could cause problems
* `status` field now required everywhere present, local gloss now mutually exclusive with gloss/sense from lexicon extension, clarify invariance requirement for tokenSnapshots
* Convert enums to string literal unions
- `enum` values are inlined by `tsc` at compile time. The Platform.Bible build pipeline uses SWC, which processes files in isolation and cannot inline `enum` values from `.d.ts` declarations.
* Update docs to reflect new string literal union instead of enum, make it clear that we're working with UTF-16 offset units, define id scope used by flat analysis references, disambiguate morpheme-level alignment endpoints, prevent empty Phrase membership
* Revert specification of offset characters as UTF-16 code units
* Merge remote-tracking branch 'origin/main' into interlinear-model1 parent 34252a7 commit 3340605
2 files changed
Lines changed: 878 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
| 56 | + | |
50 | 57 | | |
51 | 58 | | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
58 | | - | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
0 commit comments