6.7 KiB
Rundown converter
Status: preparation complete; implementation awaits representative rundowns. This is a separate planned tool, with a Rust core, CLI and egui desktop app similar to the PPTX reporter. No converter command is available yet. The implementation checklist is in the development plan.
Purpose
Convert differently formatted conduites (rundowns) into an Ontime project without manually rebuilding each document. Detect tables, headers, event titles and timing columns using explainable heuristics. Preserve source order and scheduled start times, especially when a session resumes after a break.
When the source is ambiguous, stop export with a precise explanation and ask for clearer headers or an explicit column mapping. Never silently swap start times and durations, discard questionable rows, or fill unknown durations with zero.
Planned workflow
Open or drop a document and select its sheet/table, then follow five stages:
- Infer column meanings from data across rows. An ambiguous cell can be clarified by other rows, but one meaning must fit the whole column; otherwise return an error asking for clearer headers, corrected values or an explicit mapping.
- Identify untimed gaps and incorporate them into the draft intermediate representation (IR). These breaks occupy schedule time without a shown timer.
- Construct the complete IR from times and gap constraints, preserving original and inferred values. Ask for clarification when required facts remain unknown.
- Check the complete schedule for inconsistencies, including backward times, negative durations, overlaps and contradictory start/end/duration values.
- Generate native Ontime JSON from the validated IR, with optional neutral JSON for inspection or reuse. Open the result or its output folder.
Review and correction controls expose each stage's decisions and errors. CLI and GUI follow this same sequence; export cannot bypass unresolved errors.
The CLI and GUI will use the same detection, validation and export code. CLI failures will identify the source location and return a nonzero exit status. Inputs stay unchanged; existing output requires explicit overwrite permission. Processing is local. Initial supported formats and reader dependencies will be chosen from the supplied examples; spreadsheet, text, Word and PDF layouts must not be assumed interchangeable. Scans require a separate extraction strategy.
Timing and breaks
Explicit start times are schedule anchors. Durations can come from a duration column or an unambiguous start/end pair. The preview will distinguish original values from calculated values, unresolved values and gaps.
| Source evidence | Planned interpretation |
|---|---|
| Cue at 11:45 lasting 15 minutes; next cue at 13:30 | Preserve a 12:00–13:30 gap and the 13:30 start |
| Named lunch row from 12:00 to 13:30 | Preserve an explicit break with its original label |
| Cue at 11:45; next cue at 13:30; no end or duration | Event duration versus break is unknown; do not invent a lunch break |
| Start 11:45, end 12:00, duration 20 minutes | Report conflicting timing and request clarification |
| Final cue has only a start | Request its end/duration or an explicit non-timed classification |
Inferring a duration from the next start is allowed only when the source or a user-selected policy establishes consecutive events. That policy and each inference must remain visible. A long interval alone does not prove a break. Do not extend the preceding timer through an established gap or shift an explicit start to make durations fit. Overlaps, day changes and parallel stages need explicit interpretation rather than automatic sorting or midnight wrapping.
Ontime documents independent starts, linked starts and separate duration/end strategies in Smart time entry. Its delay documentation also describes schedule gaps absorbing delays. The planned default export will retain a known unnamed break as a gap, with the following start unlinked. Untimed gaps remain in the IR without generating a synthetic timer or displaying a timer duration. An explicitly timed break cue remains distinct from such gaps. Schedule preservation does not imply automatic playback or guarantee that an operator will start an event on time.
Output choice
Native Ontime JSON is the primary target: it lets the exporter control time relationships and project structure without a second column-mapping step. Ontime supports project files and spreadsheet interchange; see its import/export documentation. Stretch goals are a Typst report (editable source and PDF) and XLS/ODS re-export with normalized columns directly suitable for Ontime import. Actual file-format and column compatibility must be verified against the target release; any required format conversion will be documented. These outputs share the validated IR and are not intermediate steps for native JSON export.
The existing reporter targets Ontime 4. The new adapter will initially target that family, with the exact tested release/schema recorded before implementation is accepted. Import and timing behavior must be verified in that release; consulting documentation alone does not establish compatibility.
Stretch goal: reserve buffer time
An optional correction mode will shorten timed rows to create a requested buffer in an overcrowded schedule. It will offer equal or proportional cuts, minimum durations and protected rows, with a before/after preview. Original values remain available. Untimed breaks do not contribute time cuts.
Saved time can stay as slack after each event, preserving starts, or be collected before a chosen anchor if the user explicitly allows intermediate starts to move. Fixed restart times stay protected. Impossible requests must report the available capacity; existing overlaps must be accounted for before claiming new buffer. Every adjusted schedule must pass validation again before export. See the buffer design.
Examples needed next
Provide representative originals, including difficult or ambiguous layouts and at least one missing lunch/break timer. For ambiguous examples, indicate the intended start, duration and break interpretation where known. Include the Ontime version you use. Redacted documents are fine if table structure, cell formats and time values remain representative. Private originals will not be committed; regression fixtures will be synthetic or explicitly cleared for use.
See all tools and repository development.