如何在 srt 文件和 csv 文件之间进行转换?

问题描述

srt 文件示例:

1
00:01:13,360 --> 00:01:14,441
I warned you.

2
00:01:14,680 --> 00:01:17,570
Did I not warn you what would come
of dealing with Dwarves?

3
00:01:17,840 --> 00:01:18,921
Now they've done it.

csv 文件示例:

ID  Start_Time      End_Time        Text
1   00:01:13,360    00:01:14,441    I warned you.
2   00:01:14,680    00:01:17,570    Did I not warn you what would come of dealing with Dwarves?
3   00:01:17,840    00:01:18,921    Now they've done it.

srt 文件有时包含多行文本和 html 格式符号。有什么包可以用来在它们之间进行转换吗?还是我必须自己写?

解决方法

似乎有很多图书馆。我找到的第一个: