Add alias for m3t output format

fix kr scn extension
This commit is contained in:
2025-08-29 21:16:21 +08:00
parent d9a789f388
commit 86b8231395
4 changed files with 10 additions and 7 deletions

View File

@@ -70,6 +70,8 @@ pub enum TextEncoding {
pub enum OutputScriptType {
/// Text script
M3t,
/// Same as M3t, buf different extension
M3ta,
/// JSON which can be used for GalTransl
Json,
/// YAML (same as JSON, but with YAML syntax)
@@ -90,6 +92,7 @@ impl AsRef<str> for OutputScriptType {
fn as_ref(&self) -> &str {
match self {
OutputScriptType::M3t => "m3t",
OutputScriptType::M3ta => "m3ta",
OutputScriptType::Json => "json",
OutputScriptType::Yaml => "yaml",
OutputScriptType::Custom => "",