Fanhuaji / discussion

記錄有關繁化姬的議題或是內容
37 stars 0 forks source link

使用字幕樣式名來判斷日文句子 #12

Closed n6333373 closed 6 years ago

n6333373 commented 6 years ago

例句: Dialogue: 0,0:00:26.89,0:00:27.92,OPJP,,0,0,0,,数学

上句進行繁化的時候,由於 数学 兩字在簡體中與日文中的寫法完全相同,依照目前的日文檢測演算法無法判斷出 数学 是日文,而使得 数学 被繁化為 數學 。類似的句子還有 (日文中指 敬禮 )。

n6333373 commented 6 years ago

實作於

但不支援以 \r 所設定的樣式

n6333373 commented 6 years ago

支援以 \r 設定的樣式,實作於

在設定 OPJP 為日文樣式的條件下,

Dialogue: 0,0:00:42.32,0:00:48.84,OPJP,NTP,0000,0000,0000,,禮{\fs5\rAnotherStyle\fn微软雅黑}禮{\fs6\rOPJP\fn測試字體}禮
Dialogue: 0,0:00:42.32,0:00:48.84,AnotherStyle,NTP,0000,0000,0000,,禮{\fs5\rOPJP\fn微软雅黑}禮{\fs6\rAnotherStyle\fn測試字體}禮

進行 繁化 將會轉換成

Dialogue: 0,0:00:42.32,0:00:48.84,OPJP,NTP,0000,0000,0000,,礼{\fs5\rAnotherStyle\fn微软雅黑}禮{\fs6\rOPJP\fn測試字體}礼
Dialogue: 0,0:00:42.32,0:00:48.84,AnotherStyle,NTP,0000,0000,0000,,禮{\fs5\rOPJP\fn微软雅黑}礼{\fs6\rAnotherStyle\fn測試字體}禮