Expand description
Markdown normalization and line classification. Port of the standalone
text helpers in XILP001_script_parser.py.
Constantsยง
- DIRECTION_
TYPES - Direction subtypes, in the order
classify_directiontests them.
Staticsยง
- BRACKETS ๐
- BRACKET_
STRIP ๐ - DIVIDER ๐
- ESCAPE_
ANY ๐ - HEADING ๐
- SCENE_
HEAD ๐ - SCENE_
START ๐
Functionsยง
- classify_
direction - Classify bracket-interior text into a sound category.
- find_
brackets - Every bracketed segment on a line, in order.
- is_
divider - is_
metadata_ section - Headers that begin the post-script metadata block.
- is_
scene_ header - is_
stage_ direction [SFX: ...]-style line: starts with[and contains].- parse_
scene_ header (scene_number, scene_name)from aSCENE N: Nameline.- strip_
brackets - Drop bracketed directions from a scene-header line.
- strip_
markdown_ escapes - Remove markdown backslash escapes.
- strip_
markdown_ formatting - Remove heading prefixes, bold markers and trailing whitespace, per line.