Gares95 / SRT_to_Txt_converter

Simple java program to convert subtitle files (.srt) into text files to easily copy and paste its content.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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: alt text

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: alt text

About

Simple java program to convert subtitle files (.srt) into text files to easily copy and paste its content.


Languages

Language:Java 96.7%Language:Shell 1.7%Language:Batchfile 1.6%