Subtweak

0.2.0

Subtitle editing library and CLI tool
juri/subtweak

What's New

0.2.0

2023-10-29T15:32:44Z
  • Fix macOS-only Foundation API usage
  • Add set-end, list-gaps

Build

Subtweak

Subtweak is a command line tool and a Swift library for working with SRT subtitle files.

Features

This package can be used from the command line or as a Swift library. The supported operations are:

  • Remove a subtitle
  • Set the duration or the end time of a subtitle, optionally adjusting the following subtitles
  • Set the start time of a subtitle, optionally adjusting the following subtitles
  • List gaps between subtitles

Command Line

This package produces an executable with the name subtweak. It allows you to read, edit and write SRT files.

Run subtweak --help to see a list of subcommands and their options.

Library

The Swift library SubtweakLib allows you to perform the same operations as the command line.

Installation

You can install the tool on macOS or Linux by using Mint as follows

$ mint install juri/subtweak@main

Or you can use Swift Package Manager manually:

$ git clone https://github.com/juri/subtweak
$ cd subtweak
$ swift build -c release
$ sudo cp .build/release/subtweak /usr/local/bin

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Thu Oct 17 2024 20:49:43 GMT-0900 (Hawaii-Aleutian Daylight Time)