//! SubRip(`.srt`)字幕生成:时间格式化与文件写入。
pub use format_timestamp;
pub use write_srt;
use crateCaption;
/// 将 [`Caption`] 切片序列化为 SubRip 文本(UTF-8,不含 BOM)。
///
/// 每条字幕块格式:
///
/// ```text
/// {序号}
/// {开始} --> {结束}
/// {正文}
///
/// ```
///
/// 时间戳分隔符为逗号(`,`),符合常见 SRT 约定。