vtt2ass: Add support for text-decoration
Adds support for underline text-decoration subtitles, fixes #658
This commit is contained in:
parent
6c71f0b808
commit
3d3a94c991
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue