Expand description
A names table: every display name of a story (characters, places,
factions, terms) by stable id, so a rename is one line. Text refers to a
name with a token, {n:<id>} (or {N:<id>} for a capital first
letter), filled in by Names::substitute when it is shown. As a
format (ADR-0007): NamesRon.
Structs§
- Name
Token - A name token: the inside of
{n:<id>}or{N:<id>}. - Names
- Every display name, by name id.
- Names
Ron - A names table (
names,.ron), checked asfrom_sourcesays.
Functions§
- from_
source - Parses and validates names
source, attributing errors tofile: valid ids, each once; values non-empty, without braces or control characters (char_problem), each used once. Whether the font draws a name is checked with the rest of the text (undrawn). Reports every problem found. - is_
name_ id - Whether
idis a valid name id: lowercase ASCII letters, digits,_and., not empty. - literal_
form - What of display name
namethe literal-name check looks for: the name without a leadingthe,aoran(sothe Old Millis also found asOld Mill), orNonefor a name with no capital letter (breath,a vow: ordinary words the check would trip on). - name_
token - The name token that
token(the text between the braces) is, if it starts withn:orN:. The id may be anything; seeis_name_id. - with_
part names(the table of filestory) with the names ofsourceadded (a second file, the test files’ names, say).sourceis checked like a names file of its own, attributing errors tofile; an id or a name thatnameshas too is an error.