subx-cli 1.7.4

AI subtitle processing CLI tool, which automatically matches, renames, and converts subtitle files.
Documentation
/// Character encoding types supported by the subtitle processing system.
///
/// This enum covers the most common text encodings encountered in subtitle
/// files across different languages and regions.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum Charset {
    /// UTF-8 encoding (Unicode)
    Utf8,
    /// UTF-16 Little Endian encoding
    Utf16Le,
    /// UTF-16 Big Endian encoding
    Utf16Be,
    /// UTF-32 Little Endian encoding
    Utf32Le,
    /// UTF-32 Big Endian encoding
    Utf32Be,
    /// GBK encoding (Chinese Simplified)
    Gbk,
    /// Shift JIS encoding (Japanese)
    ShiftJis,
    /// ISO 8859-1 encoding (Latin-1)
    Iso88591,
    /// Windows-1252 encoding (Western European)
    Windows1252,
    /// Big5 encoding (Chinese Traditional)
    Big5,
    /// EUC-KR encoding (Korean)
    Euckr,
    /// Unknown or undetectable encoding
    Unknown,
}

/// Encoding detection result information
#[derive(Debug, Clone)]
pub struct EncodingInfo {
    /// Detected character set
    pub charset: Charset,
    /// Detection confidence (0.0-1.0)
    pub confidence: f32,
    /// Whether BOM was detected
    pub bom_detected: bool,
    /// Decoded sample text
    pub sample_text: String,
}