@helloao/tools 0.2.0 → 0.3.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/dist/cjs/generation/api.cjs +856 -36
- package/dist/cjs/generation/api.cjs.map +3 -3
- package/dist/cjs/generation/audio.cjs +5 -5
- package/dist/cjs/generation/audio.cjs.map +1 -1
- package/dist/cjs/generation/book-order.cjs.map +1 -1
- package/dist/cjs/generation/common-types.cjs +359 -14
- package/dist/cjs/generation/common-types.cjs.map +2 -2
- package/dist/cjs/generation/dataset.cjs +13 -9
- package/dist/cjs/generation/dataset.cjs.map +2 -2
- package/dist/cjs/generation/index.cjs +8 -5
- package/dist/cjs/generation/index.cjs.map +2 -2
- package/dist/cjs/generation/simple.cjs +294 -0
- package/dist/cjs/generation/simple.cjs.map +7 -0
- package/dist/cjs/index.cjs +4 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/log.cjs.map +1 -1
- package/dist/cjs/parser/codex-parser.cjs +3 -3
- package/dist/cjs/parser/codex-parser.cjs.map +3 -3
- package/dist/cjs/parser/commentary-csv-parser.cjs +14 -3
- package/dist/cjs/parser/commentary-csv-parser.cjs.map +3 -3
- package/dist/cjs/parser/index.cjs +1 -1
- package/dist/cjs/parser/iterators.cjs.map +1 -1
- package/dist/cjs/parser/lockman-parser.cjs +1 -1
- package/dist/cjs/parser/lockman-parser.cjs.map +1 -1
- package/dist/cjs/parser/tyndale-xml-parser.cjs +1 -1
- package/dist/cjs/parser/tyndale-xml-parser.cjs.map +1 -1
- package/dist/cjs/parser/types.cjs.map +1 -1
- package/dist/cjs/parser/usfm-parser.cjs +2 -2
- package/dist/cjs/parser/usfm-parser.cjs.map +1 -1
- package/dist/cjs/parser/usx-parser.cjs +122 -26
- package/dist/cjs/parser/usx-parser.cjs.map +2 -2
- package/dist/cjs/parser/words.cjs +187 -0
- package/dist/cjs/parser/words.cjs.map +7 -0
- package/dist/cjs/utils.cjs +1 -1
- package/dist/esm/generation/api.js +835 -37
- package/dist/esm/generation/api.js.map +3 -3
- package/dist/esm/generation/audio.js +1 -1
- package/dist/esm/generation/audio.js.map +1 -1
- package/dist/esm/generation/book-order.js.map +1 -1
- package/dist/esm/generation/common-types.js +327 -14
- package/dist/esm/generation/common-types.js.map +2 -2
- package/dist/esm/generation/dataset.js +6 -2
- package/dist/esm/generation/dataset.js.map +2 -2
- package/dist/esm/generation/index.js +2 -1
- package/dist/esm/generation/index.js.map +2 -2
- package/dist/esm/generation/simple.js +260 -0
- package/dist/esm/generation/simple.js.map +7 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/log.js.map +1 -1
- package/dist/esm/parser/codex-parser.js +3 -3
- package/dist/esm/parser/codex-parser.js.map +3 -3
- package/dist/esm/parser/commentary-csv-parser.js +3 -2
- package/dist/esm/parser/commentary-csv-parser.js.map +2 -2
- package/dist/esm/parser/iterators.js.map +1 -1
- package/dist/esm/parser/lockman-parser.js +1 -1
- package/dist/esm/parser/lockman-parser.js.map +1 -1
- package/dist/esm/parser/tyndale-xml-parser.js +1 -1
- package/dist/esm/parser/tyndale-xml-parser.js.map +1 -1
- package/dist/esm/parser/usfm-parser.js +1 -1
- package/dist/esm/parser/usfm-parser.js.map +1 -1
- package/dist/esm/parser/usx-parser.js +130 -26
- package/dist/esm/parser/usx-parser.js.map +2 -2
- package/dist/esm/parser/words.js +149 -0
- package/dist/esm/parser/words.js.map +7 -0
- package/dist/types/generation/api.d.ts +6879 -918
- package/dist/types/generation/common-types.d.ts +432 -2
- package/dist/types/generation/index.d.ts +2 -1
- package/dist/types/generation/simple.d.ts +110 -0
- package/dist/types/parser/commentary-csv-parser.d.ts +1 -1
- package/dist/types/parser/lockman-parser.d.ts +1 -1
- package/dist/types/parser/tyndale-xml-parser.d.ts +1 -1
- package/dist/types/parser/types.d.ts +63 -0
- package/dist/types/parser/usx-parser.d.ts +6 -5
- package/dist/types/parser/words.d.ts +104 -0
- package/package.json +3 -2
|
@@ -360,8 +360,8 @@ export declare const CommentaryBookSchema: z.ZodObject<{
|
|
|
360
360
|
}>;
|
|
361
361
|
name: z.ZodString;
|
|
362
362
|
commonName: z.ZodString;
|
|
363
|
-
introduction: z.ZodOptional<z.ZodString
|
|
364
|
-
introductionSummary: z.ZodOptional<z.ZodString
|
|
363
|
+
introduction: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>, z.ZodOptional<z.ZodString>>;
|
|
364
|
+
introductionSummary: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>, z.ZodOptional<z.ZodString>>;
|
|
365
365
|
order: z.ZodNumber;
|
|
366
366
|
}, z.core.$strip>;
|
|
367
367
|
export type CommentaryBook = z.infer<typeof CommentaryBookSchema>;
|
|
@@ -1113,6 +1113,18 @@ export declare const TranslationBookChapterSchema: z.ZodObject<{
|
|
|
1113
1113
|
}, z.core.$strip>>>;
|
|
1114
1114
|
}, z.core.$strip>>;
|
|
1115
1115
|
thisChapterAudioLinks: z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1116
|
+
thisChapterAudioTimings: z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
|
|
1117
|
+
thisChapterWords: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1118
|
+
contentIndex: z.ZodNumber;
|
|
1119
|
+
start: z.ZodNumber;
|
|
1120
|
+
end: z.ZodNumber;
|
|
1121
|
+
strongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1122
|
+
lemma: z.ZodOptional<z.ZodString>;
|
|
1123
|
+
morph: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
srcloc: z.ZodOptional<z.ZodString>;
|
|
1125
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
1126
|
+
occurrences: z.ZodOptional<z.ZodNumber>;
|
|
1127
|
+
}, z.core.$strip>>>>>>;
|
|
1116
1128
|
}, z.core.$strip>;
|
|
1117
1129
|
export type TranslationBookChapter = z.infer<typeof TranslationBookChapterSchema>;
|
|
1118
1130
|
/**
|
|
@@ -1145,6 +1157,47 @@ export type CommentaryBookChapter = z.infer<typeof CommentaryBookChapterSchema>;
|
|
|
1145
1157
|
*/
|
|
1146
1158
|
export declare const TranslationBookChapterAudioLinksSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1147
1159
|
export type TranslationBookChapterAudioLinks = z.infer<typeof TranslationBookChapterAudioLinksSchema>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Defines a Zod schema for the audio timings for a book chapter.
|
|
1162
|
+
* Maps a reader ID to the list of times (in seconds) that each verse starts, in verse order.
|
|
1163
|
+
*/
|
|
1164
|
+
export declare const TranslationBookChapterAudioTimingsSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>;
|
|
1165
|
+
export type TranslationBookChapterAudioTimings = z.infer<typeof TranslationBookChapterAudioTimingsSchema>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Defines a Zod schema for a word-level annotation in a chapter.
|
|
1168
|
+
*
|
|
1169
|
+
* The annotation is anchored to a range of characters in a single item of a
|
|
1170
|
+
* verse's content, so that consumers can highlight exactly the characters that
|
|
1171
|
+
* it applies to.
|
|
1172
|
+
*/
|
|
1173
|
+
export declare const ChapterWordSchema: z.ZodObject<{
|
|
1174
|
+
contentIndex: z.ZodNumber;
|
|
1175
|
+
start: z.ZodNumber;
|
|
1176
|
+
end: z.ZodNumber;
|
|
1177
|
+
strongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1178
|
+
lemma: z.ZodOptional<z.ZodString>;
|
|
1179
|
+
morph: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
srcloc: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
1182
|
+
occurrences: z.ZodOptional<z.ZodNumber>;
|
|
1183
|
+
}, z.core.$strip>;
|
|
1184
|
+
export type ChapterWord = z.infer<typeof ChapterWordSchema>;
|
|
1185
|
+
/**
|
|
1186
|
+
* Defines a Zod schema for the word-level annotations for a book chapter.
|
|
1187
|
+
* Maps a verse number to the list of annotated words in the verse, in order.
|
|
1188
|
+
*/
|
|
1189
|
+
export declare const TranslationBookChapterWordsSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1190
|
+
contentIndex: z.ZodNumber;
|
|
1191
|
+
start: z.ZodNumber;
|
|
1192
|
+
end: z.ZodNumber;
|
|
1193
|
+
strongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1194
|
+
lemma: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
morph: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
srcloc: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
1198
|
+
occurrences: z.ZodOptional<z.ZodNumber>;
|
|
1199
|
+
}, z.core.$strip>>>>;
|
|
1200
|
+
export type TranslationBookChapterWords = z.infer<typeof TranslationBookChapterWordsSchema>;
|
|
1148
1201
|
/**
|
|
1149
1202
|
* Defines a Zod schema for information about data in a chapter.
|
|
1150
1203
|
*/
|
|
@@ -1352,4 +1405,381 @@ export declare const ChapterFootnoteSchema: z.ZodObject<{
|
|
|
1352
1405
|
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1353
1406
|
}, z.core.$strip>;
|
|
1354
1407
|
export type ChapterFootnote = z.infer<typeof ChapterFootnoteSchema>;
|
|
1408
|
+
/**
|
|
1409
|
+
* A Zod schema for a range of text inside a simplified verse.
|
|
1410
|
+
*
|
|
1411
|
+
* Ranges are expressed as offsets into the `text` property of the verse that contains them.
|
|
1412
|
+
* Offsets are measured in UTF-16 code units, which is what JavaScript's `String.prototype.length`,
|
|
1413
|
+
* `String.prototype.slice()`, and `String.prototype.substring()` use.
|
|
1414
|
+
*/
|
|
1415
|
+
export declare const SimpleTextRangeSchema: z.ZodObject<{
|
|
1416
|
+
start: z.ZodNumber;
|
|
1417
|
+
end: z.ZodNumber;
|
|
1418
|
+
}, z.core.$strip>;
|
|
1419
|
+
export type SimpleTextRange = z.infer<typeof SimpleTextRangeSchema>;
|
|
1420
|
+
/**
|
|
1421
|
+
* A Zod schema for a range of text inside a simplified verse that represents a line of poetry.
|
|
1422
|
+
*/
|
|
1423
|
+
export declare const SimplePoemRangeSchema: z.ZodObject<{
|
|
1424
|
+
start: z.ZodNumber;
|
|
1425
|
+
end: z.ZodNumber;
|
|
1426
|
+
level: z.ZodNumber;
|
|
1427
|
+
}, z.core.$strip>;
|
|
1428
|
+
export type SimplePoemRange = z.infer<typeof SimplePoemRangeSchema>;
|
|
1429
|
+
/**
|
|
1430
|
+
* A Zod schema for a footnote in a simplified verse.
|
|
1431
|
+
*/
|
|
1432
|
+
export declare const SimpleVerseFootnoteSchema: z.ZodObject<{
|
|
1433
|
+
noteId: z.ZodNumber;
|
|
1434
|
+
offset: z.ZodNumber;
|
|
1435
|
+
text: z.ZodString;
|
|
1436
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1437
|
+
}, z.core.$strip>;
|
|
1438
|
+
export type SimpleVerseFootnote = z.infer<typeof SimpleVerseFootnoteSchema>;
|
|
1439
|
+
/**
|
|
1440
|
+
* A Zod schema for a heading that is embedded in a simplified verse.
|
|
1441
|
+
*/
|
|
1442
|
+
export declare const SimpleInlineHeadingSchema: z.ZodObject<{
|
|
1443
|
+
offset: z.ZodNumber;
|
|
1444
|
+
text: z.ZodString;
|
|
1445
|
+
}, z.core.$strip>;
|
|
1446
|
+
export type SimpleInlineHeading = z.infer<typeof SimpleInlineHeadingSchema>;
|
|
1447
|
+
/**
|
|
1448
|
+
* A Zod schema for a verse in a simplified chapter.
|
|
1449
|
+
*/
|
|
1450
|
+
export declare const SimpleChapterVerseSchema: z.ZodObject<{
|
|
1451
|
+
type: z.ZodLiteral<"verse">;
|
|
1452
|
+
number: z.ZodNumber;
|
|
1453
|
+
text: z.ZodString;
|
|
1454
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1455
|
+
noteId: z.ZodNumber;
|
|
1456
|
+
offset: z.ZodNumber;
|
|
1457
|
+
text: z.ZodString;
|
|
1458
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1459
|
+
}, z.core.$strip>>;
|
|
1460
|
+
headings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1461
|
+
offset: z.ZodNumber;
|
|
1462
|
+
text: z.ZodString;
|
|
1463
|
+
}, z.core.$strip>>>;
|
|
1464
|
+
wordsOfJesus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1465
|
+
start: z.ZodNumber;
|
|
1466
|
+
end: z.ZodNumber;
|
|
1467
|
+
}, z.core.$strip>>>;
|
|
1468
|
+
poem: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1469
|
+
start: z.ZodNumber;
|
|
1470
|
+
end: z.ZodNumber;
|
|
1471
|
+
level: z.ZodNumber;
|
|
1472
|
+
}, z.core.$strip>>>;
|
|
1473
|
+
}, z.core.$strip>;
|
|
1474
|
+
export type SimpleChapterVerse = z.infer<typeof SimpleChapterVerseSchema>;
|
|
1475
|
+
/**
|
|
1476
|
+
* A Zod schema for a Hebrew Subtitle in a simplified chapter.
|
|
1477
|
+
*/
|
|
1478
|
+
export declare const SimpleChapterHebrewSubtitleSchema: z.ZodObject<{
|
|
1479
|
+
text: z.ZodString;
|
|
1480
|
+
poem: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1481
|
+
start: z.ZodNumber;
|
|
1482
|
+
end: z.ZodNumber;
|
|
1483
|
+
level: z.ZodNumber;
|
|
1484
|
+
}, z.core.$strip>>>;
|
|
1485
|
+
wordsOfJesus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1486
|
+
start: z.ZodNumber;
|
|
1487
|
+
end: z.ZodNumber;
|
|
1488
|
+
}, z.core.$strip>>>;
|
|
1489
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1490
|
+
noteId: z.ZodNumber;
|
|
1491
|
+
offset: z.ZodNumber;
|
|
1492
|
+
text: z.ZodString;
|
|
1493
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1494
|
+
}, z.core.$strip>>;
|
|
1495
|
+
headings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1496
|
+
offset: z.ZodNumber;
|
|
1497
|
+
text: z.ZodString;
|
|
1498
|
+
}, z.core.$strip>>>;
|
|
1499
|
+
type: z.ZodLiteral<"hebrew_subtitle">;
|
|
1500
|
+
}, z.core.$strip>;
|
|
1501
|
+
export type SimpleChapterHebrewSubtitle = z.infer<typeof SimpleChapterHebrewSubtitleSchema>;
|
|
1502
|
+
/**
|
|
1503
|
+
* A Zod schema for a heading in a simplified chapter.
|
|
1504
|
+
*/
|
|
1505
|
+
export declare const SimpleChapterHeadingSchema: z.ZodObject<{
|
|
1506
|
+
type: z.ZodLiteral<"heading">;
|
|
1507
|
+
text: z.ZodString;
|
|
1508
|
+
}, z.core.$strip>;
|
|
1509
|
+
export type SimpleChapterHeading = z.infer<typeof SimpleChapterHeadingSchema>;
|
|
1510
|
+
/**
|
|
1511
|
+
* A union type that represents a single piece of content in a simplified chapter.
|
|
1512
|
+
* A piece of chapter content can be one of the following things:
|
|
1513
|
+
* - A heading.
|
|
1514
|
+
* - A line break.
|
|
1515
|
+
* - A verse.
|
|
1516
|
+
* - A Hebrew Subtitle.
|
|
1517
|
+
*/
|
|
1518
|
+
export declare const SimpleChapterContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1519
|
+
type: z.ZodLiteral<"heading">;
|
|
1520
|
+
text: z.ZodString;
|
|
1521
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1522
|
+
type: z.ZodLiteral<"line_break">;
|
|
1523
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1524
|
+
type: z.ZodLiteral<"verse">;
|
|
1525
|
+
number: z.ZodNumber;
|
|
1526
|
+
text: z.ZodString;
|
|
1527
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1528
|
+
noteId: z.ZodNumber;
|
|
1529
|
+
offset: z.ZodNumber;
|
|
1530
|
+
text: z.ZodString;
|
|
1531
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1532
|
+
}, z.core.$strip>>;
|
|
1533
|
+
headings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1534
|
+
offset: z.ZodNumber;
|
|
1535
|
+
text: z.ZodString;
|
|
1536
|
+
}, z.core.$strip>>>;
|
|
1537
|
+
wordsOfJesus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1538
|
+
start: z.ZodNumber;
|
|
1539
|
+
end: z.ZodNumber;
|
|
1540
|
+
}, z.core.$strip>>>;
|
|
1541
|
+
poem: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1542
|
+
start: z.ZodNumber;
|
|
1543
|
+
end: z.ZodNumber;
|
|
1544
|
+
level: z.ZodNumber;
|
|
1545
|
+
}, z.core.$strip>>>;
|
|
1546
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1547
|
+
text: z.ZodString;
|
|
1548
|
+
poem: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1549
|
+
start: z.ZodNumber;
|
|
1550
|
+
end: z.ZodNumber;
|
|
1551
|
+
level: z.ZodNumber;
|
|
1552
|
+
}, z.core.$strip>>>;
|
|
1553
|
+
wordsOfJesus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1554
|
+
start: z.ZodNumber;
|
|
1555
|
+
end: z.ZodNumber;
|
|
1556
|
+
}, z.core.$strip>>>;
|
|
1557
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1558
|
+
noteId: z.ZodNumber;
|
|
1559
|
+
offset: z.ZodNumber;
|
|
1560
|
+
text: z.ZodString;
|
|
1561
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1562
|
+
}, z.core.$strip>>;
|
|
1563
|
+
headings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1564
|
+
offset: z.ZodNumber;
|
|
1565
|
+
text: z.ZodString;
|
|
1566
|
+
}, z.core.$strip>>>;
|
|
1567
|
+
type: z.ZodLiteral<"hebrew_subtitle">;
|
|
1568
|
+
}, z.core.$strip>], "type">;
|
|
1569
|
+
export type SimpleChapterContent = z.infer<typeof SimpleChapterContentSchema>;
|
|
1570
|
+
/**
|
|
1571
|
+
* A Zod schema for the data in a simplified chapter.
|
|
1572
|
+
*/
|
|
1573
|
+
export declare const SimpleChapterDataSchema: z.ZodObject<{
|
|
1574
|
+
number: z.ZodNumber;
|
|
1575
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1576
|
+
type: z.ZodLiteral<"heading">;
|
|
1577
|
+
text: z.ZodString;
|
|
1578
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1579
|
+
type: z.ZodLiteral<"line_break">;
|
|
1580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1581
|
+
type: z.ZodLiteral<"verse">;
|
|
1582
|
+
number: z.ZodNumber;
|
|
1583
|
+
text: z.ZodString;
|
|
1584
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1585
|
+
noteId: z.ZodNumber;
|
|
1586
|
+
offset: z.ZodNumber;
|
|
1587
|
+
text: z.ZodString;
|
|
1588
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1589
|
+
}, z.core.$strip>>;
|
|
1590
|
+
headings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1591
|
+
offset: z.ZodNumber;
|
|
1592
|
+
text: z.ZodString;
|
|
1593
|
+
}, z.core.$strip>>>;
|
|
1594
|
+
wordsOfJesus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1595
|
+
start: z.ZodNumber;
|
|
1596
|
+
end: z.ZodNumber;
|
|
1597
|
+
}, z.core.$strip>>>;
|
|
1598
|
+
poem: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1599
|
+
start: z.ZodNumber;
|
|
1600
|
+
end: z.ZodNumber;
|
|
1601
|
+
level: z.ZodNumber;
|
|
1602
|
+
}, z.core.$strip>>>;
|
|
1603
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1604
|
+
text: z.ZodString;
|
|
1605
|
+
poem: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1606
|
+
start: z.ZodNumber;
|
|
1607
|
+
end: z.ZodNumber;
|
|
1608
|
+
level: z.ZodNumber;
|
|
1609
|
+
}, z.core.$strip>>>;
|
|
1610
|
+
wordsOfJesus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1611
|
+
start: z.ZodNumber;
|
|
1612
|
+
end: z.ZodNumber;
|
|
1613
|
+
}, z.core.$strip>>>;
|
|
1614
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1615
|
+
noteId: z.ZodNumber;
|
|
1616
|
+
offset: z.ZodNumber;
|
|
1617
|
+
text: z.ZodString;
|
|
1618
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1619
|
+
}, z.core.$strip>>;
|
|
1620
|
+
headings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1621
|
+
offset: z.ZodNumber;
|
|
1622
|
+
text: z.ZodString;
|
|
1623
|
+
}, z.core.$strip>>>;
|
|
1624
|
+
type: z.ZodLiteral<"hebrew_subtitle">;
|
|
1625
|
+
}, z.core.$strip>], "type">>;
|
|
1626
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1627
|
+
noteId: z.ZodNumber;
|
|
1628
|
+
text: z.ZodString;
|
|
1629
|
+
reference: z.ZodOptional<z.ZodObject<{
|
|
1630
|
+
chapter: z.ZodNumber;
|
|
1631
|
+
verse: z.ZodNumber;
|
|
1632
|
+
}, z.core.$strip>>;
|
|
1633
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1634
|
+
}, z.core.$strip>>;
|
|
1635
|
+
}, z.core.$strip>;
|
|
1636
|
+
export type SimpleChapterData = z.infer<typeof SimpleChapterDataSchema>;
|
|
1637
|
+
/**
|
|
1638
|
+
* A Zod schema for the data in a simplified commentary chapter.
|
|
1639
|
+
*/
|
|
1640
|
+
export declare const SimpleCommentaryChapterDataSchema: z.ZodObject<{
|
|
1641
|
+
number: z.ZodNumber;
|
|
1642
|
+
introduction: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
content: z.ZodArray<z.ZodObject<{
|
|
1644
|
+
type: z.ZodLiteral<"verse">;
|
|
1645
|
+
number: z.ZodNumber;
|
|
1646
|
+
text: z.ZodString;
|
|
1647
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1648
|
+
noteId: z.ZodNumber;
|
|
1649
|
+
offset: z.ZodNumber;
|
|
1650
|
+
text: z.ZodString;
|
|
1651
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1652
|
+
}, z.core.$strip>>;
|
|
1653
|
+
headings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1654
|
+
offset: z.ZodNumber;
|
|
1655
|
+
text: z.ZodString;
|
|
1656
|
+
}, z.core.$strip>>>;
|
|
1657
|
+
wordsOfJesus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1658
|
+
start: z.ZodNumber;
|
|
1659
|
+
end: z.ZodNumber;
|
|
1660
|
+
}, z.core.$strip>>>;
|
|
1661
|
+
poem: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1662
|
+
start: z.ZodNumber;
|
|
1663
|
+
end: z.ZodNumber;
|
|
1664
|
+
level: z.ZodNumber;
|
|
1665
|
+
}, z.core.$strip>>>;
|
|
1666
|
+
}, z.core.$strip>>;
|
|
1667
|
+
}, z.core.$strip>;
|
|
1668
|
+
export type SimpleCommentaryChapterData = z.infer<typeof SimpleCommentaryChapterDataSchema>;
|
|
1669
|
+
/**
|
|
1670
|
+
* Defines a Zod schema for information about a book chapter, using the simplified
|
|
1671
|
+
* chapter format.
|
|
1672
|
+
*/
|
|
1673
|
+
export declare const SimpleTranslationBookChapterSchema: z.ZodObject<{
|
|
1674
|
+
thisChapterAudioLinks: z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1675
|
+
thisChapterAudioTimings: z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
|
|
1676
|
+
chapter: z.ZodLazy<z.ZodObject<{
|
|
1677
|
+
number: z.ZodNumber;
|
|
1678
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1679
|
+
type: z.ZodLiteral<"heading">;
|
|
1680
|
+
text: z.ZodString;
|
|
1681
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1682
|
+
type: z.ZodLiteral<"line_break">;
|
|
1683
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1684
|
+
type: z.ZodLiteral<"verse">;
|
|
1685
|
+
number: z.ZodNumber;
|
|
1686
|
+
text: z.ZodString;
|
|
1687
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1688
|
+
noteId: z.ZodNumber;
|
|
1689
|
+
offset: z.ZodNumber;
|
|
1690
|
+
text: z.ZodString;
|
|
1691
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1692
|
+
}, z.core.$strip>>;
|
|
1693
|
+
headings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1694
|
+
offset: z.ZodNumber;
|
|
1695
|
+
text: z.ZodString;
|
|
1696
|
+
}, z.core.$strip>>>;
|
|
1697
|
+
wordsOfJesus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1698
|
+
start: z.ZodNumber;
|
|
1699
|
+
end: z.ZodNumber;
|
|
1700
|
+
}, z.core.$strip>>>;
|
|
1701
|
+
poem: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1702
|
+
start: z.ZodNumber;
|
|
1703
|
+
end: z.ZodNumber;
|
|
1704
|
+
level: z.ZodNumber;
|
|
1705
|
+
}, z.core.$strip>>>;
|
|
1706
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1707
|
+
text: z.ZodString;
|
|
1708
|
+
poem: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1709
|
+
start: z.ZodNumber;
|
|
1710
|
+
end: z.ZodNumber;
|
|
1711
|
+
level: z.ZodNumber;
|
|
1712
|
+
}, z.core.$strip>>>;
|
|
1713
|
+
wordsOfJesus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1714
|
+
start: z.ZodNumber;
|
|
1715
|
+
end: z.ZodNumber;
|
|
1716
|
+
}, z.core.$strip>>>;
|
|
1717
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1718
|
+
noteId: z.ZodNumber;
|
|
1719
|
+
offset: z.ZodNumber;
|
|
1720
|
+
text: z.ZodString;
|
|
1721
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1722
|
+
}, z.core.$strip>>;
|
|
1723
|
+
headings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1724
|
+
offset: z.ZodNumber;
|
|
1725
|
+
text: z.ZodString;
|
|
1726
|
+
}, z.core.$strip>>>;
|
|
1727
|
+
type: z.ZodLiteral<"hebrew_subtitle">;
|
|
1728
|
+
}, z.core.$strip>], "type">>;
|
|
1729
|
+
footnotes: z.ZodArray<z.ZodObject<{
|
|
1730
|
+
noteId: z.ZodNumber;
|
|
1731
|
+
text: z.ZodString;
|
|
1732
|
+
reference: z.ZodOptional<z.ZodObject<{
|
|
1733
|
+
chapter: z.ZodNumber;
|
|
1734
|
+
verse: z.ZodNumber;
|
|
1735
|
+
}, z.core.$strip>>;
|
|
1736
|
+
caller: z.ZodUnion<readonly [z.ZodLiteral<"+">, z.ZodString, z.ZodNull]>;
|
|
1737
|
+
}, z.core.$strip>>;
|
|
1738
|
+
}, z.core.$strip>>;
|
|
1739
|
+
thisChapterWords: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1740
|
+
start: z.ZodNumber;
|
|
1741
|
+
end: z.ZodNumber;
|
|
1742
|
+
strongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1743
|
+
lemma: z.ZodOptional<z.ZodString>;
|
|
1744
|
+
morph: z.ZodOptional<z.ZodString>;
|
|
1745
|
+
srcloc: z.ZodOptional<z.ZodString>;
|
|
1746
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
1747
|
+
occurrences: z.ZodOptional<z.ZodNumber>;
|
|
1748
|
+
}, z.core.$strip>>>>>>;
|
|
1749
|
+
}, z.core.$strip>;
|
|
1750
|
+
export type SimpleTranslationBookChapter = z.infer<typeof SimpleTranslationBookChapterSchema>;
|
|
1751
|
+
/**
|
|
1752
|
+
* A Zod schema for a word-level annotation in a simplified chapter.
|
|
1753
|
+
*
|
|
1754
|
+
* Unlike the regular annotations, these are anchored to a range of characters in the
|
|
1755
|
+
* text of a verse, since the simplified format replaces the verse's content array with
|
|
1756
|
+
* a single string.
|
|
1757
|
+
*/
|
|
1758
|
+
export declare const SimpleChapterWordSchema: z.ZodObject<{
|
|
1759
|
+
start: z.ZodNumber;
|
|
1760
|
+
end: z.ZodNumber;
|
|
1761
|
+
strongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1762
|
+
lemma: z.ZodOptional<z.ZodString>;
|
|
1763
|
+
morph: z.ZodOptional<z.ZodString>;
|
|
1764
|
+
srcloc: z.ZodOptional<z.ZodString>;
|
|
1765
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
1766
|
+
occurrences: z.ZodOptional<z.ZodNumber>;
|
|
1767
|
+
}, z.core.$strip>;
|
|
1768
|
+
export type SimpleChapterWord = z.infer<typeof SimpleChapterWordSchema>;
|
|
1769
|
+
/**
|
|
1770
|
+
* Defines a Zod schema for the word-level annotations for a book chapter, using the
|
|
1771
|
+
* simplified format.
|
|
1772
|
+
* Maps a verse number to the list of annotated words in the verse, in order.
|
|
1773
|
+
*/
|
|
1774
|
+
export declare const SimpleTranslationBookChapterWordsSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1775
|
+
start: z.ZodNumber;
|
|
1776
|
+
end: z.ZodNumber;
|
|
1777
|
+
strongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1778
|
+
lemma: z.ZodOptional<z.ZodString>;
|
|
1779
|
+
morph: z.ZodOptional<z.ZodString>;
|
|
1780
|
+
srcloc: z.ZodOptional<z.ZodString>;
|
|
1781
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
1782
|
+
occurrences: z.ZodOptional<z.ZodNumber>;
|
|
1783
|
+
}, z.core.$strip>>>>;
|
|
1784
|
+
export type SimpleTranslationBookChapterWords = z.infer<typeof SimpleTranslationBookChapterWordsSchema>;
|
|
1355
1785
|
//# sourceMappingURL=common-types.d.ts.map
|
|
@@ -2,6 +2,7 @@ import * as api from './api.js';
|
|
|
2
2
|
import * as audio from './audio.js';
|
|
3
3
|
import * as dataset from './dataset.js';
|
|
4
4
|
import * as bookOrder from './book-order.js';
|
|
5
|
+
import * as simple from './simple.js';
|
|
5
6
|
export * from './common-types.js';
|
|
6
|
-
export { api, audio, dataset, bookOrder };
|
|
7
|
+
export { api, audio, dataset, bookOrder, simple };
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ChapterData, ChapterFootnote, ChapterHebrewSubtitle, ChapterVerse, ChapterWord, CommentaryChapterData, SimpleChapterData, SimpleChapterHebrewSubtitle, SimpleChapterVerse, SimpleChapterWord, SimpleCommentaryChapterData, SimpleInlineHeading, SimplePoemRange, SimpleTextRange, SimpleVerseFootnote, TranslationBookChapterWords, SimpleTranslationBookChapterWords } from './common-types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The types of content that can be contained in a verse or Hebrew Subtitle.
|
|
4
|
+
*/
|
|
5
|
+
type VerseContent = ChapterVerse['content'][number] | ChapterHebrewSubtitle['content'][number];
|
|
6
|
+
/**
|
|
7
|
+
* The result of flattening the content of a verse into a single string.
|
|
8
|
+
*/
|
|
9
|
+
export interface SimplifiedVerseContent {
|
|
10
|
+
/**
|
|
11
|
+
* The text of the verse.
|
|
12
|
+
*/
|
|
13
|
+
text: string;
|
|
14
|
+
/**
|
|
15
|
+
* The footnotes that occur in the verse.
|
|
16
|
+
*/
|
|
17
|
+
footnotes: SimpleVerseFootnote[];
|
|
18
|
+
/**
|
|
19
|
+
* The headings that occur in the middle of the verse.
|
|
20
|
+
*/
|
|
21
|
+
headings: SimpleInlineHeading[];
|
|
22
|
+
/**
|
|
23
|
+
* The ranges of text that represent the Words of Jesus.
|
|
24
|
+
*/
|
|
25
|
+
wordsOfJesus: SimpleTextRange[];
|
|
26
|
+
/**
|
|
27
|
+
* The ranges of text that represent lines of poetry.
|
|
28
|
+
*/
|
|
29
|
+
poem: SimplePoemRange[];
|
|
30
|
+
/**
|
|
31
|
+
* The word-level annotations for the verse, with their offsets remapped onto the text.
|
|
32
|
+
*/
|
|
33
|
+
words: SimpleChapterWord[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Flattens the content of a verse into a single string, recording the positions of the
|
|
37
|
+
* footnotes, headings, and formatting that occur in it.
|
|
38
|
+
*
|
|
39
|
+
* The rules used to build the text are:
|
|
40
|
+
* - Strings and formatted text are appended as-is. The source data already contains the
|
|
41
|
+
* spacing that is needed between them.
|
|
42
|
+
* - Lines of poetry and line breaks start a new line.
|
|
43
|
+
* - Footnote and heading markers are replaced with a single space when one is needed to
|
|
44
|
+
* keep the surrounding words apart.
|
|
45
|
+
*
|
|
46
|
+
* All of the recorded offsets are measured in UTF-16 code units, which is what
|
|
47
|
+
* `String.prototype.slice()` and `String.prototype.length` use.
|
|
48
|
+
*
|
|
49
|
+
* Word-level annotations are anchored to a range of characters in a single item of the
|
|
50
|
+
* content array. Since the simplified format replaces that array with a single string,
|
|
51
|
+
* their offsets are remapped onto the text that is built here.
|
|
52
|
+
*
|
|
53
|
+
* @param content The content of the verse.
|
|
54
|
+
* @param footnotes The footnotes for the chapter, keyed by note ID.
|
|
55
|
+
* @param usedFootnotes A set that the IDs of the referenced footnotes are added to.
|
|
56
|
+
* @param words The word-level annotations for the verse.
|
|
57
|
+
*/
|
|
58
|
+
export declare function simplifyVerseContent(content: readonly VerseContent[], footnotes?: Map<number, ChapterFootnote>, usedFootnotes?: Set<number>, words?: readonly ChapterWord[]): SimplifiedVerseContent;
|
|
59
|
+
/**
|
|
60
|
+
* Converts the given verse into its simplified representation.
|
|
61
|
+
* @param verse The verse to convert.
|
|
62
|
+
* @param footnotes The footnotes for the chapter, keyed by note ID.
|
|
63
|
+
* @param usedFootnotes A set that the IDs of the referenced footnotes are added to.
|
|
64
|
+
* @param words The word-level annotations for the verse.
|
|
65
|
+
* @param remappedWords An array that the remapped word-level annotations are added to.
|
|
66
|
+
*/
|
|
67
|
+
export declare function simplifyVerse(verse: ChapterVerse, footnotes?: Map<number, ChapterFootnote>, usedFootnotes?: Set<number>, words?: readonly ChapterWord[], remappedWords?: SimpleChapterWord[]): SimpleChapterVerse;
|
|
68
|
+
/**
|
|
69
|
+
* Converts the given Hebrew Subtitle into its simplified representation.
|
|
70
|
+
* @param subtitle The subtitle to convert.
|
|
71
|
+
* @param footnotes The footnotes for the chapter, keyed by note ID.
|
|
72
|
+
* @param usedFootnotes A set that the IDs of the referenced footnotes are added to.
|
|
73
|
+
*/
|
|
74
|
+
export declare function simplifyHebrewSubtitle(subtitle: ChapterHebrewSubtitle, footnotes?: Map<number, ChapterFootnote>, usedFootnotes?: Set<number>): SimpleChapterHebrewSubtitle;
|
|
75
|
+
/**
|
|
76
|
+
* The result of converting a chapter into the simplified chapter format.
|
|
77
|
+
*/
|
|
78
|
+
export interface SimplifiedChapter {
|
|
79
|
+
/**
|
|
80
|
+
* The simplified chapter.
|
|
81
|
+
*/
|
|
82
|
+
chapter: SimpleChapterData;
|
|
83
|
+
/**
|
|
84
|
+
* The word-level annotations for the chapter, with their offsets remapped onto the
|
|
85
|
+
* text of each simplified verse. Empty if the chapter has no annotations.
|
|
86
|
+
*/
|
|
87
|
+
words: SimpleTranslationBookChapterWords;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Converts the given chapter into the simplified chapter format.
|
|
91
|
+
*
|
|
92
|
+
* In the simplified format, the content of each verse is a single string instead of a list
|
|
93
|
+
* of formatted content, and the footnotes are available on the verse that they occur in,
|
|
94
|
+
* along with the offset that they occur at.
|
|
95
|
+
*
|
|
96
|
+
* The word-level annotations are returned separately, since they are published in their
|
|
97
|
+
* own file. They are converted here because their offsets have to be remapped onto the
|
|
98
|
+
* text that is built for each verse.
|
|
99
|
+
*
|
|
100
|
+
* @param chapter The chapter to convert.
|
|
101
|
+
* @param words The word-level annotations for the chapter, keyed by verse number.
|
|
102
|
+
*/
|
|
103
|
+
export declare function simplifyChapter(chapter: ChapterData, words?: TranslationBookChapterWords): SimplifiedChapter;
|
|
104
|
+
/**
|
|
105
|
+
* Converts the given commentary chapter into the simplified chapter format.
|
|
106
|
+
* @param chapter The chapter to convert.
|
|
107
|
+
*/
|
|
108
|
+
export declare function simplifyCommentaryChapter(chapter: CommentaryChapterData): SimpleCommentaryChapterData;
|
|
109
|
+
export {};
|
|
110
|
+
//# sourceMappingURL=simple.d.ts.map
|
|
@@ -49,6 +49,69 @@ export interface Chapter {
|
|
|
49
49
|
* The list of footnotes for the chapter.
|
|
50
50
|
*/
|
|
51
51
|
footnotes: Footnote[];
|
|
52
|
+
/**
|
|
53
|
+
* The word-level annotations for the chapter's verses.
|
|
54
|
+
* Undefined if the source didn't contain any word-level annotations.
|
|
55
|
+
*/
|
|
56
|
+
words?: ChapterWords;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Defines the word-level annotations for a chapter, keyed by verse number.
|
|
60
|
+
*/
|
|
61
|
+
export type ChapterWords = {
|
|
62
|
+
[verseNumber: string]: ChapterWord[];
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Defines an interface that represents the annotations that a source associated
|
|
66
|
+
* with a specific range of characters in a verse.
|
|
67
|
+
*
|
|
68
|
+
* The range is anchored to a single item of the verse's content array, so that
|
|
69
|
+
* consumers can highlight the exact characters that an annotation applies to.
|
|
70
|
+
*/
|
|
71
|
+
export interface ChapterWord {
|
|
72
|
+
/**
|
|
73
|
+
* The index of the item in the verse's content array that the annotation applies to.
|
|
74
|
+
*/
|
|
75
|
+
contentIndex: number;
|
|
76
|
+
/**
|
|
77
|
+
* The index of the first character of the annotated word in the content item's text.
|
|
78
|
+
*/
|
|
79
|
+
start: number;
|
|
80
|
+
/**
|
|
81
|
+
* The index after the last character of the annotated word in the content item's text.
|
|
82
|
+
* That is, `text.slice(start, end)` is the annotated word.
|
|
83
|
+
*/
|
|
84
|
+
end: number;
|
|
85
|
+
/**
|
|
86
|
+
* The Strong's number(s) for the word.
|
|
87
|
+
* Undefined if the source only provided other annotations for the word.
|
|
88
|
+
*/
|
|
89
|
+
strongs?: string[];
|
|
90
|
+
/**
|
|
91
|
+
* The dictionary (citation) form of the word.
|
|
92
|
+
* Taken from the `lemma` attribute.
|
|
93
|
+
*/
|
|
94
|
+
lemma?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The morphology parse code for the word.
|
|
97
|
+
* Taken from the `x-morph` attribute.
|
|
98
|
+
*/
|
|
99
|
+
morph?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The pointer to the word in the source text, in the `<sourceName>:<location>` format.
|
|
102
|
+
* Taken from the `srcloc` attribute.
|
|
103
|
+
*/
|
|
104
|
+
srcloc?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Which occurrence of the source word this word is. 1-based.
|
|
107
|
+
* Taken from the `x-occurrence` attribute.
|
|
108
|
+
*/
|
|
109
|
+
occurrence?: number;
|
|
110
|
+
/**
|
|
111
|
+
* The total number of times that the source word occurs.
|
|
112
|
+
* Taken from the `x-occurrences` attribute.
|
|
113
|
+
*/
|
|
114
|
+
occurrences?: number;
|
|
52
115
|
}
|
|
53
116
|
/**
|
|
54
117
|
* Defines an interface that represents a hebrew subtitle.
|