|
300精币
我有一段文本,格式如下
1
00:00:00,120 --> 00:00:01,650
- In tsfsdg vwer, you're gsdfs tcxv asdfs
2
00:00:01,650 --> 00:00:03,690
fsdf csdf AADAS trgd.
3
00:00:03,690 --> 00:00:06,300
I'll ssdf abcd caba
gvbng uyuyu iasdadqw
4
00:00:06,300 --> 00:00:07,890
basds ortrt tfdfad psfdsrew,
5
00:00:07,890 --> 00:00:10,170
aaa tzcs tsdf csdfwe tsdfs ysdfew
ssdfhyt mqwew puikui
6
00:00:10,170 --> 00:00:12,870
isfs a fsdfwe wsdfwe, tsdfwe csdfwe tsdfwe
7
00:00:12,870 --> 00:00:15,900
tsdfwe csdfwe tsdfew asdfe hsdfs
isdfew asdf tsdfwe psdfwe,
8
00:00:15,900 --> 00:00:18,780
asdf tsdfwe tsdf ssdfe csdfew
tsdfew isdfew psdfew dsdfew
9
00:00:18,780 --> 00:00:20,023
asfew vwerw lwerw twerew,
10
00:00:20,023 --> 00:00:22,980
asdfew wewa tdsfwe wsdfew ysd
ssdfwe ewerwe asfs dwerew
11
00:00:22,980 --> 00:00:25,890
osdfwe ysdfwe psdfew asdfew
oqtrrthf asdf fgere wddvcw.
12
00:00:25,890 --> 00:00:26,723
Ssdfewrwe gxcvw?
13
00:00:26,723 --> 00:00:28,380
Lsadqw gzct stawerewrd wwertg txvsd sdfwe twerwe.
14
00:00:28,380 --> 00:00:30,570
Asdfwe rsdfw, thsdfew fsdfe txew
iswerw cxvew Tysdfwe.
15
00:00:30,570 --> 00:00:32,580
Iwer awewe yosdfsu tqqweos ccvfgt yiuoiu tuikgh
16
00:00:32,580 --> 00:00:36,840
ifhrt trtyr stvbe prerw
vwerewt lewrtwer ywerw scvgre rqweq hvert.
17
00:00:36,840 --> 00:00:38,790
Socfew wewer ycgv txcvew
txcf pxfew youwerwr pvreert
18
00:00:38,790 --> 00:00:42,810
osdfr servrewtdice, simdgwqdsply enewhrtter ygfhourwdsf
tesferewsxt inwrwerto Tvwwrwsf' form,
19
00:00:42,810 --> 00:00:45,390
ansfewrd thiuoity ofhrtt cofhrrts a viretetedeo icvwen secoeretdfnds.
点击“导入文件”,随后再点击“处理文件”,
就可以合并成这样的
1
00:00:00,120 --> 00:00:03,690
- In tsfsdg vwer, you're gsdfs tcxv asdfs fsdf csdf AADAS trgd.
2
00:00:03,690 --> 00:00:25,890
I'll ssdf abcd caba gvbng uyuyu iasdadqw basds ortrt tfdfad psfdsrew, aaa tzcs tsdf csdfwe tsdfs ysdfew ssdfhyt mqwew puikui isfs a fsdfwe wsdfwe, tsdfwe csdfwe tsdfwe tsdfwe csdfwe tsdfew asdfe hsdfs isdfew asdf tsdfwe psdfwe,asdf tsdfwe tsdf ssdfe csdfew tsdfew isdfew psdfew dsdfew asfew vwerw lwerw twerew, asdfew wewa tdsfwe wsdfew ysd ssdfwe ewerwe asfs dwerew osdfwe ysdfwe psdfew asdfew oqtrrthf asdf fgere wddvcw.
3
00:00:25,890 --> 00:00:26,723
Ssdfewrwe gxcvw?
4
00:00:26,723 --> 00:00:28,380
Lsadqw gzct stawerewrd wwertg txvsd sdfwe twerwe.
5
00:00:28,380 --> 00:00:30,570
Asdfwe rsdfw, thsdfew fsdfe txew iswerw cxvew Tysdfwe.
6
00:00:30,570 --> 00:00:36,840
Iwer awewe yosdfsu tqqweos ccvfgt yiuoiu tuikgh ifhrt trtyr stvbe prerw vwerewt lewrtwer ywerw scvgre rqweq hvert.
7
00:00:36,840 --> 00:00:45,390
Socfew wewer ycgv txcvew txcf pxfew youwerwr pvreert osdfr servrewtdice, simdgwqdsply enewhrtter ygfhourwdsf tesferewsxt inwrwerto Tvwwrwsf' form, ansfewrd thiuoity ofhrtt cofhrrts a viretetedeo icvwen secoeretdfnds.
也就是说遇到句号的英文符号时,就让当前文字和上一个大写字母之间的所有字母合并起来,同时也让两个时间轴相结合起来,取上一个时间的首部和当前时间的尾部。
我把界面和源码都写出来了,但不知道源码里面的匹配规则哪里出了问题,还请大神们帮忙修改一下,谢谢。
源码和所需文件都在附件中
|
|