https://github.com/gares95/srt_to_txt_converter
Simple java program to convert subtitle files (.srt) into text files to easily copy and paste its content.
https://github.com/gares95/srt_to_txt_converter
java srt-files srt-txt-converter
Last synced: 4 months ago
JSON representation
Simple java program to convert subtitle files (.srt) into text files to easily copy and paste its content.
- Host: GitHub
- URL: https://github.com/gares95/srt_to_txt_converter
- Owner: Gares95
- Created: 2021-01-23T22:33:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-05T22:41:19.000Z (over 4 years ago)
- Last Synced: 2024-12-30T00:13:13.444Z (6 months ago)
- Topics: java, srt-files, srt-txt-converter
- Language: Java
- Homepage:
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SRT to TXT Converter
This repository includes a simple Java program to convert srt files into text files to easily copy their content and paste it into some other document.# Program Files
This repository includes the next files and folders:
- SRT_to_TXT_converter.java: Main program that iterates thorugh _srt_ file and extracts the relevant lines of the file to write them in the _txt_ file(s). If the srt_files folder includes more than one file to convert the program will ask the user if he or she wants to convert the _srt_ file into a single _txt_ file or convert them into separated files.
- /srt_files (folder): It includes example _srt_ files to test the program.
- /Script/SRT_TXT_converter.sh: Unix shell script to run the _jar_ file exported from main program.
- /Script/SRT_TXT_converter.bat: Windows batch file to run the _jar_ file exported from main program.
- /Script/SRT_TXT_converter.jar: Jar file exported from SRT_TXT_converter.java to easily test the program using SRT_TXT_converter.sh (Linux users) or SRT_TXT_converter.bat (windows users).The program will create (if its not created yet) a folder named _txt_files_ where it will save the resulting files.
# Using Scripts
After cloning or downloading this repository you can easily execute the program using the Scripts in the /Script folder. For Linux Operating systems or Linux distributions subsystems such as MobaXterm or Git, users can use /Script/SRT_TXT_converter.sh which will execute the jar file and run the program. For Windows Operating systems users can use /Script/SRT_TXT_converter.bat.
After copying in _srt_files_ folder the _srt_ files you wish to convert you can just double click any of these scripts and use the program.# Examples
After executing the script converting _srt files_ in a _Single file_:
*Note:* The resulting file is named after the first _srt_ file in _srt_files_ folder.
After executing the script converting _srt files_ into _Separated files_:
