@heroiclands/package-build 23.5.1 → 23.6.1
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/CHANGELOG.md +41 -0
- package/bin/content-commands.mjs +23 -5
- package/docs/api.md +9 -0
- package/docs/authoring/links-and-markup.md +108 -12
- package/docs/content-format.md +16 -0
- package/docs/guides/reference-pages.md +89 -0
- package/docs/reference/format-details.md +549 -88
- package/docs/reference/note-types.md +192 -149
- package/engine/base-compiler.mjs +21 -0
- package/engine/content-format.yaml +9 -0
- package/engine/content-index.mjs +19 -5
- package/engine/culture-reach.mjs +330 -0
- package/engine/dictionary-layout.mjs +342 -0
- package/engine/dictionary-rows.mjs +605 -0
- package/engine/glossary-entries.mjs +182 -0
- package/engine/glossary-language.mjs +99 -0
- package/engine/index.mjs +1 -0
- package/engine/infobox.mjs +8 -0
- package/engine/language-words.mjs +374 -0
- package/engine/literature-notes.mjs +10 -8
- package/engine/note-addresses.mjs +25 -0
- package/engine/note-vocabulary.mjs +161 -1
- package/engine/pack-config.mjs +6 -1
- package/engine/path-charset.mjs +120 -0
- package/engine/sql-tables.mjs +352 -21
- package/engine/word-classes.mjs +167 -0
- package/engine/word-rows.mjs +343 -0
- package/engine/word-terms.mjs +318 -0
- package/package.json +1 -1
- package/types/engine/content-index.d.mts +15 -5
- package/types/engine/culture-reach.d.mts +66 -0
- package/types/engine/dictionary-layout.d.mts +74 -0
- package/types/engine/dictionary-rows.d.mts +39 -0
- package/types/engine/glossary-entries.d.mts +12 -0
- package/types/engine/glossary-language.d.mts +42 -0
- package/types/engine/index.d.mts +1 -0
- package/types/engine/language-words.d.mts +33 -0
- package/types/engine/literature-notes.d.mts +2 -2
- package/types/engine/note-addresses.d.mts +17 -0
- package/types/engine/path-charset.d.mts +38 -0
- package/types/engine/sql-tables.d.mts +8 -2
- package/types/engine/word-classes.d.mts +87 -0
- package/types/engine/word-rows.d.mts +119 -0
- package/types/engine/word-terms.d.mts +72 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a pronunciation is not a respelling, or `undefined` when it is one.
|
|
3
|
+
*
|
|
4
|
+
* A respelling is letters and apostrophes in hyphen-separated syllables, with
|
|
5
|
+
* at most one syllable in capitals.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} text
|
|
8
|
+
* @returns {string|undefined}
|
|
9
|
+
*/
|
|
10
|
+
export function pronunciationProblem(text: string): string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The inner keys of a language note's words, fields and affixes, and of a
|
|
13
|
+
* culture's or an affiliation's glossary entries, as inner-key declarations.
|
|
14
|
+
*
|
|
15
|
+
* A leaf module, importing nothing: the note vocabulary reads these
|
|
16
|
+
* declarations as it loads, and the checks that judge what the values mean —
|
|
17
|
+
* a class against the master word classes, a field against the note's own
|
|
18
|
+
* fields — live in `language-words.mjs` and `glossary-entries.mjs`.
|
|
19
|
+
*
|
|
20
|
+
* @module
|
|
21
|
+
*/
|
|
22
|
+
/** The `skill` subType whose notes are languages, and the only one with words. */
|
|
23
|
+
export const LANGUAGE_SUBTYPE: "language";
|
|
24
|
+
/** The `data` keys a language note states its words in, beside `names`. */
|
|
25
|
+
export const WORD_DATA_KEYS: readonly string[];
|
|
26
|
+
/**
|
|
27
|
+
* Where a word comes from. `borrowed` names the tongue it was taken from;
|
|
28
|
+
* `inherited`, `kept` and `worn` name the ancient form where the note gives
|
|
29
|
+
* one; `coined`, `substrate` and `island` name no form.
|
|
30
|
+
*/
|
|
31
|
+
export const WORD_SOURCE_KINDS: readonly string[];
|
|
32
|
+
/** The source kind that requires `language`. */
|
|
33
|
+
export const BORROWED_SOURCE_KIND: "borrowed";
|
|
34
|
+
/**
|
|
35
|
+
* The keys of a word's `source`.
|
|
36
|
+
*
|
|
37
|
+
* @type {readonly import("./data-keys.mjs").InnerKeySpec[]}
|
|
38
|
+
*/
|
|
39
|
+
export const WORD_SOURCE_FIELDS: readonly import("./data-keys.mjs").InnerKeySpec[];
|
|
40
|
+
/**
|
|
41
|
+
* The keys one word of a language note's `data.words` carries.
|
|
42
|
+
*
|
|
43
|
+
* @type {readonly import("./data-keys.mjs").InnerKeySpec[]}
|
|
44
|
+
*/
|
|
45
|
+
export const WORD_FIELDS: readonly import("./data-keys.mjs").InnerKeySpec[];
|
|
46
|
+
/** The keys of {@link WORD_FIELDS}, in declared order. */
|
|
47
|
+
export const WORD_KEYS: readonly string[];
|
|
48
|
+
/**
|
|
49
|
+
* The keys one entry of a language note's `data.fields` carries.
|
|
50
|
+
*
|
|
51
|
+
* @type {readonly import("./data-keys.mjs").InnerKeySpec[]}
|
|
52
|
+
*/
|
|
53
|
+
export const WORD_FIELD_FIELDS: readonly import("./data-keys.mjs").InnerKeySpec[];
|
|
54
|
+
/**
|
|
55
|
+
* The keys one entry of a language note's `data.affixes` carries.
|
|
56
|
+
*
|
|
57
|
+
* @type {readonly import("./data-keys.mjs").InnerKeySpec[]}
|
|
58
|
+
*/
|
|
59
|
+
export const AFFIX_FIELDS: readonly import("./data-keys.mjs").InnerKeySpec[];
|
|
60
|
+
/** The keys of {@link WORD_FIELD_FIELDS}, in declared order. */
|
|
61
|
+
export const FIELD_KEYS: readonly string[];
|
|
62
|
+
/** The keys of {@link AFFIX_FIELDS}, in declared order. */
|
|
63
|
+
export const AFFIX_KEYS: readonly string[];
|
|
64
|
+
/**
|
|
65
|
+
* The keys one entry of a culture's or an affiliation's `data.glossary`
|
|
66
|
+
* carries.
|
|
67
|
+
*
|
|
68
|
+
* @type {readonly import("./data-keys.mjs").InnerKeySpec[]}
|
|
69
|
+
*/
|
|
70
|
+
export const GLOSSARY_ENTRY_FIELDS: readonly import("./data-keys.mjs").InnerKeySpec[];
|
|
71
|
+
/** The keys of {@link GLOSSARY_ENTRY_FIELDS}, in declared order. */
|
|
72
|
+
export const GLOSSARY_ENTRY_KEYS: readonly string[];
|