Skip to main content

Module migrate

Module migrate 

Source
Expand description

xil migrate โ€” carry stems across a script revision. Port of XILP007_stem_migrator.py.

Structsยง

Action
What should happen to one new parsed entry.
Args ๐Ÿ”’
Record ๐Ÿ”’

Constantsยง

COPY
MISSING
NEW
SKIP
SNIP ๐Ÿ”’
Characters shown before a text snippet is truncated.
SPEAKER
STEM_TYPES ๐Ÿ”’
Entry types that produce a stem file.
USAGE ๐Ÿ”’

Staticsยง

EM_DASH ๐Ÿ”’
WHITESPACE ๐Ÿ”’

Functionsยง

command
The clap definition behind --help, for man pages.
entries_of ๐Ÿ”’
execute ๐Ÿ”’
execute_migration
Copy the COPY actions; return per-status counts.
make_stem_name
Expected stem filename for a parsed entry. Preamble entries (seq < 0) keep the legacy n-prefixed form.
match_key ๐Ÿ”’
normalize_text
Collapse whitespace; in fuzzy mode also fold em-dash, ellipsis and curly quotes so punctuation-only edits do not force regeneration.
parser_error ๐Ÿ”’
plan_migration
Compare old and new entries and produce one action per new entry.
print_report ๐Ÿ”’
print_summary ๐Ÿ”’
py_opt ๐Ÿ”’
How Python renders an optional speaker inside an f-string.
run
snip ๐Ÿ”’

Type Aliasesยง

Entry ๐Ÿ”’