Add m3t support

This commit is contained in:
2025-05-20 23:19:09 +08:00
parent 8aaf2da626
commit 63b09fc893
5 changed files with 106 additions and 12 deletions

View File

@@ -43,7 +43,7 @@ pub enum TextEncoding {
/// Script type
pub enum OutputScriptType {
/// Text script
Txt,
M3t,
/// JSON which can be used for GalTransl
Json,
}
@@ -51,7 +51,7 @@ pub enum OutputScriptType {
impl AsRef<str> for OutputScriptType {
fn as_ref(&self) -> &str {
match self {
OutputScriptType::Txt => "txt",
OutputScriptType::M3t => "m3t",
OutputScriptType::Json => "json",
}
}