GithubHelp home page GithubHelp logo

thanhtoan1196 / subtitles-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pepri/subtitles-editor

0.0 0.0 0.0 55 KB

Visual Studio Code extension for editing SubRip Text (SRT) files with subtitles.

Home Page: https://marketplace.visualstudio.com/items?itemName=pepri.subtitles-editor

TypeScript 100.00%

subtitles-editor's Introduction

Subtitles Editor

This editor allows you to make edits to SubRip Text (SRT) files with subtitles - shift the timestamps, do a linear correction, or translate them to another language.

Features

  • Colorizer for SubRip Text (SRT) files.
  • Shift all timestamps by a specific time value.
  • Renumber frame sequence with specified start index.
  • Reorder frames based on their sequence number.
  • Linear correction by mapping two existing time stamps to new values.
  • Translate subtitles to different languages.
  • Only subtitles in selection are affected. If there is no selection, all subtitles are affected.

Usage

Use command Subtitles: Shift and enter offset time to shift subtitles. The format is "HH:mm:ss,zzz". You can use negative time if subtitles are too late.

With Subtitles: Renumber, you can renumber the frames using the sequence with specified start index. After selecting this options, enter the start of the sequence (usually 1) and it will be renumbered accordingly.

The command Subtitles: Linear Correction prompts you for two timestamp mappings. The input is in form "original timestamp -> new timestamp". Pick one point from the beginning of the movie and second one from the end of the movie to get the best approximation.

Use command Subtitles: Translate to translate subtitles to another language using Google translation service.

With Subtitles: Reorder, you can reorder the frames based on their sequence number. This can be useful if you want to work with translated and original subtitles at the same time. You can first translate the subtitles (which will replace the original ones) and append the original subtitles at the end. Then, you can reorder them so you will have translated and original frames near each other.

For Developers

Updating Supported Languages

The languages that can be used for translation are published by Google in Google documentation. The extension uses languages defined in src/languages.json file.

To convert the published table to JSON:

subtitles-editor's People

Contributors

pepri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.