diff --git a/230101/project.toml b/230101/project.toml index 814e1c2..d90df0c 100644 --- a/230101/project.toml +++ b/230101/project.toml @@ -7,13 +7,9 @@ date = "230101" [source] files = ["C01.mp4", "C02.mp4", "C03.mp4"] stereo = false -start = "1" +start = "2" end = "12" -fast = [["6", "8"], ["10", "11"]] -questions = [ - ["1.5", "3", "Hallo liebes Publikum. Ich habe leider meine Frage vergessen. Bitte entschuldigt die Störung."], - ["3.5", "5", "Ah jetzt weiß ich es wieder. Meine Frage war: Was war meine Frage?"] -] +fast = [["5", "7"], ["9", "11"]] [source.metadata] source_duration = "12.53000" @@ -26,6 +22,5 @@ source_sample_rate = 48000 preprocessed = false asked_start_end = true asked_fast = true -asked_questions = true rendered = false transcoded = [] diff --git a/Cargo.toml b/Cargo.toml index d73faad..bc0f991 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,10 +10,7 @@ license = "EPL-2.0" [dependencies] anyhow = "1.0" camino = "1.1" -console = "0.15" clap = { version = "4.4", features = ["derive"] } -fontconfig = "0.8" -harfbuzz_rs = "2.0" indexmap = "2.2" rational = "1.5" serde = { version = "1.0.188", features = ["derive"] } diff --git a/src/iotro.rs b/src/iotro.rs index 98b5a50..94eca89 100644 --- a/src/iotro.rs +++ b/src/iotro.rs @@ -7,7 +7,7 @@ use std::{ str::FromStr }; use svgwriter::{ - tags::{Group, Rect, TagWithPresentationAttributes as _, Text}, + tags::{Group, Rect, TagWithPresentationAttributes, Text}, Graphic }; @@ -134,14 +134,14 @@ impl Debug for Language<'_> { } #[repr(u16)] -pub(crate) enum FontSize { +enum FontSize { Huge = 72, Large = 56, Big = 44 } #[repr(u16)] -pub(crate) enum FontWeight { +enum FontWeight { Normal = 400, SemiBold = 500, Bold = 700 diff --git a/src/main.rs b/src/main.rs index 742ecd8..6c9a7ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,19 +3,16 @@ #![forbid(elided_lifetimes_in_paths, unsafe_code)] mod iotro; -mod question; mod render; mod time; -use self::{ - iotro::Language, - question::Question, +use crate::{ render::{ffmpeg::FfmpegOutputFormat, Renderer}, time::{parse_date, parse_time, Date, Time} }; use camino::Utf8PathBuf as PathBuf; use clap::Parser; -use console::style; +use iotro::Language; use rational::Rational; use serde::{Deserialize, Serialize}; use serde_with::{serde_as, DisplayFromStr}; @@ -172,15 +169,9 @@ struct ProjectSource { start: Option