Giter Club home page Giter Club logo

subtr's Introduction

Subtr

Effortless Subtitle Translation is a user-friendly tool that seamlessly translates SRT and DFXP subtitles.

It's the ideal choice for handling subtitle sentence breaks across tracks, ensuring smooth and accurate translations.

for exp. :

8
00:01:10,374 --> 00:01:12,576
Adam is paying

9
00:01:12,776 --> 00:01:15,655
attention to the teacher.

We translate ✅:

8
00:01:10,374 --> 00:01:12,576
آدم حواسش به

9
00:01:12,776 --> 00:01:15,655
معلم است.

But others ❌:

8
00:01:10,374 --> 00:01:12,576
آدام پرداخت می کند

9
00:01:12,776 --> 00:01:15,655
توجه به معلم

How to use

put subtr.py next to your code , then :

from subtr import SubTr

translator = SubTr()
translator.srt('Avengers Infinity War 2018.srt')
translator.translate(dest_lang="fa" , src_lang="en",save_path='Avengers Infinity War 2018-fa.srt')

or dfpx :

from subtr import SubTr

translator = SubTr()
translator.dfpx('67_000_Dreams_.html')
translator.translate(dest_lang="fa" , src_lang="en",save_path='67_000_Dreams_fa.srt')

or simply use pip to install :

pip install git+https://github.com/karim23657/Subtr

subtr's People

Contributors

karim23657 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

subtr's Issues

tutorial on youtube please!

Hi, i'm new to this code stuff so i'm a little bit lost on how to translate the Korean srt files I have. Can you please make an easier tutorial?

Error

I'm getting this Error when running the code:

"subtr\subtr.py", line 41, in
target: str, text_list: list[str], source: str = "en", separator: str = "u~~~u"
TypeError: 'type' object is not subscriptable

Edit: It had to do with me using python 3.8 version

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.