n3rdp1um23 / subtitle_corrector Goto Github PK
View Code? Open in Web Editor NEWA script to help remove uppercase words (sentences) in subtitle files.
A script to help remove uppercase words (sentences) in subtitle files.
Allow a user the ability to undo operations performed on a file.
Describe the issue
Operation finds error but doesn't remove space before dash.
To Reproduce
Steps to reproduce the behavior:
Before operation
16
00:02:43,100 --> 00:02:47,473
"Vi har aldrig hört talas
om ert folk" -
17
00:02:47,540 --> 00:02:51,873
-"så vi är inte rädda för era hot."
Desired outcome
16
00:02:43,100 --> 00:02:47,473
"Vi har aldrig hört talas
om ert folk"-
17
00:02:47,540 --> 00:02:51,873
-"så vi är inte rädda för era hot."
Expected behavior
Expected space to be removed on line one.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Add option to the application that allows a user to approve/skip all changes for the respective operation.
Sometimes, some subtitles don't have a space after a hyphen. This feature request would add the ability to clean those up and add a space.
-The quick brown fox jumped over the moon
to
- The quick brown fox jumped over the moon
Operation Title
Three line conversion
Operation description
The operation should react when a time stamp contains three lines and convert them to two lines instead.
These two lines should aim to be equally long.
Spans more than one section
Don't know what this means...
Before operation
I have a blue dog
and he's so nice,
but one time he bit me.
Desired outcome
I have a blue dog and he's so
nice, but one time he bit me.
Screenshots
If applicable, add screenshots to help explain the new operation.
Additional context
Add any other context about the operation here.
Operation Title
Skip all files
Operation description
A button which is similiar to "Approve all files" button but instead it skips all files.
Spans more than one section
Don't know what this means...
Before operation
n/a
Desired outcome
n/a
Screenshots
Additional context
Describe the issue
The script doesn't seem to react to mr, dr etc when it comes after < i > or "
To Reproduce
Steps to reproduce the behavior:
Before operation
357
00:36:31,224 --> 00:36:33,810
<i>Mr Presley och Mr. King...</i>
564
01:00:11,561 --> 01:00:13,354
<i>Mr Presley slutar rocka...</i>
1258
02:13:12,984 --> 02:13:18,489
- Jag är inte oförstående, Mr. Presley.
- Lägg av med "mr Presley", din padda!
650
01:09:15,729 --> 01:09:18,233
<i>Dr Martin Luther King-</i>
661
01:10:14,664 --> 01:10:19,168
<i>Dr King stod på balkongen
till sitt motellrum på andra våningen-</i>
1134
02:01:54,889 --> 02:01:59,102
<i>Dr Martin Luther King
har blivit skjuten i centrala Memphis...</i>
Desired outcome
357
00:36:31,224 --> 00:36:33,810
<i>Mr. Presley och Mr. King...</i>
564
01:00:11,561 --> 01:00:13,354
<i>Mr. Presley slutar rocka...</i>
1258
02:13:12,984 --> 02:13:18,489
- Jag är inte oförstående, Mr. Presley.
- Lägg av med "Mr. Presley", din padda!
650
01:09:15,729 --> 01:09:18,233
<i>Dr. Martin Luther King-</i>
661
01:10:14,664 --> 01:10:19,168
<i>Dr. King stod på balkongen
till sitt motellrum på andra våningen-</i>
1134
02:01:54,889 --> 02:01:59,102
<i>Dr. Martin Luther King
har blivit skjuten i centrala Memphis...</i>
Expected behavior
The script should capitalize and add a dot.
Screenshots
Additional context
Describe the issue
Script doesn't react and adds dash.
To Reproduce
Steps to reproduce the behavior:
Before operation
154
00:11:07,901 --> 00:11:11,701
Det kan ske. Bukspottskörteln
förnyar sina celler en gång per dygn,-
155
00:11:11,736 --> 00:11:16,533
-för magsäcken tar det 3 dagar. Hela
kroppen, sju år. Men processen vacklar.
157
00:11:19,369 --> 00:11:23,800
Om en förändring i immunförsvaret
ledde till perfekt AVGIFTNING,-
158
00:11:23,801 --> 00:11:28,032
-PERFEKT förnyelse, så ja visst,
skulle han kunna undvika förfall.
687
00:48:46,200 --> 00:48:50,500
Det var på 1600-talet och jag träffade
en man och jag fick en känsla av att...-
688
00:48:51,000 --> 00:48:53,666
-han var som jag.
Så jag berättade för honom.
687
00:48:46,200 --> 00:48:50,500
Det var på 1600-talet och jag träffade
en man och jag fick en känsla av ATT...-
688
00:48:51,000 --> 00:48:53,666
-HAN var som jag.
Så jag berättade för honom.
Desired outcome
154
00:11:07,901 --> 00:11:11,701
Det kan ske. Bukspottskörteln
förnyar sina celler en gång per dygn-
155
00:11:11,736 --> 00:11:16,533
-för magsäcken tar det 3 dagar. Hela
kroppen, sju år. Men processen vacklar.
157
00:11:19,369 --> 00:11:23,800
Om en förändring i immunförsvaret
ledde till perfekt AVGIFTNING-
158
00:11:23,801 --> 00:11:28,032
-PERFEKT förnyelse, så ja visst,
skulle han kunna undvika förfall.
687
00:48:46,200 --> 00:48:50,500
Det var på 1600-talet och jag träffade
en man och jag fick en känsla av att-
688
00:48:51,000 --> 00:48:53,666
-han var som jag.
Så jag berättade för honom.
687
00:48:46,200 --> 00:48:50,500
Det var på 1600-talet och jag träffade
en man och jag fick en känsla av ATT-
688
00:48:51,000 --> 00:48:53,666
-HAN var som jag.
Så jag berättade för honom.
Expected behavior
Script should react and add dash.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.