vtt2ass: Add support for text-decoration

Adds support for underline text-decoration subtitles, fixes #658
This commit is contained in:
AnimeDL 2024-04-13 17:21:57 -07:00
parent 6c71f0b808
commit 3d3a94c991

View file

@ -126,6 +126,13 @@ function parseStyle(stylegroup: string, line: string, style: any) {
break;
}
break;
case 'text-decoration':
if (st[1] === 'underline') {
style[8] = -1;
} else {
console.warn(`vtt2ass: Unknown text-decoration value: ${st[1]}`);
}
break;
case 'font-style':
if (st[1] === 'italic') {
style[7] = -1;