From 1f2629403b9d62ecf44420f789b5c679a8ae1c98 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 13 Jan 2020 00:06:05 +0100 Subject: Add segment start/end markers --- libstorycode/storycode.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libstorycode/storycode.c') diff --git a/libstorycode/storycode.c b/libstorycode/storycode.c index 89c0440..8401e9b 100644 --- a/libstorycode/storycode.c +++ b/libstorycode/storycode.c @@ -287,6 +287,15 @@ static int write_starter(GOutputStream *fh, struct narrative_item *item) if ( write_string(fh, "ENDOFPRESENTATION") ) return 1; break; + case NARRATIVE_ITEM_SEGSTART: + if ( write_string(fh, "SEGMENT_START: ") ) return 1; + break; + + case NARRATIVE_ITEM_SEGEND: + if ( write_string(fh, "SEGMENT_END") ) return 1; + break; + + } return 0; } @@ -318,6 +327,13 @@ static int write_item(GOutputStream *fh, struct narrative_item *item) case NARRATIVE_ITEM_EOP: break; + case NARRATIVE_ITEM_SEGSTART: + write_para(fh, item->runs, item->n_runs); + break; + + case NARRATIVE_ITEM_SEGEND: + break; + } return 0; } -- cgit v1.2.3