
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
A little gem to help deal with converting between to & from various subtitle and transcript formats. Right now it only handles conversion of SRT files to a text transcript that's more appropriate for being read by humans.
The CLI takes four arguments:
Usage: supertitle input_file input_format output_file output_format
Example:
$ supertitle scna.srt srt scna-script.txt transcript
This will read the SRT input file and write a human-readable transcript to
scna-script.txt
.
First, parse some content into "supertitles", the arbitrary object model of this gem:
srt = File.read("test/fixtures/scna.srt")
supertitles = Supertitle.parse(srt, :srt)
Supported input formats:
:srt
- SRTThe Supertitle.read
method will return an array of Supertitle::Line
objects,
each providing start
, stop
, and text
attributes. start
and stop
are
millisecond offsets, relative to the start of the subtitles or transcript.
text
will strip
and join
any multi-line subtitles into a single line,
separated by a single space.
To write out those supertitles into a supported string format:
transcript = Supertitle.write(supertitles, :transcript) #=> a multi-line string
Supported output formats:
:transcript
- a human-readable custom transcript format ([mm:ss] text…
)FAQs
Unknown package
We found that supertitle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.