subtrs


Namesubtrs JSON
Version 2.3 PyPI version JSON
download
home_pagehttps://gitlab.com/dslackw/subtrs
SummaryA simple tool that translates video subtitles
upload_time2022-12-07 18:39:25
maintainer
docs_urlNone
authorDimitris Zlatanidis
requires_python>=3.9
license
keywords video translate subtitles google youtube
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. contents:: Table of Contents:

About
-----

**Translate Video Subtitles**

**subtrs** is a simple tool that translates subtitles from files.

The main idea came when using the YouTube auto-tool to translate video subtitles, I saw that the translation sucked.

So I decided to create this simple tool and translate my subtitles more successfully.

Enjoy!


.. image:: https://gitlab.com/dslackw/images/raw/master/subtrs/subtrs.gif
   :target: https://gitlab.com/dslackw/subtrs

	
Installing
----------

.. code-block:: bash

   $ pip3 install subtrs --upgrade

 
Command line usage
------------------

.. code-block:: bash

   Usage: subtrs [subtitles_file] [destination languages]

          Simple tool that trlanslates video subtitles

          Support subtitles files [*.sbv, *.vtt, *.srt]
          Destination languages [en,de,ru] etc.

   Optional arguments:
          --color      View translated text with colour.
          --progress   Show progress bar.
          --export     Export the text only.
     -l,  --languages  Show all supported languages.
     -v,  --version    Print the version and exit.
     -h,  --help       Show this message and exit.


Example
-------

.. code-block:: bash

   $ subtrs subtitles.srt el --progress
   [1/1] Translate into greek |########                        | 27% - 24s


An example which create multiple subtitles files:

.. code-block:: bash

   $ subtrs subtitles.srt zh-cn,de,ru --color
   [1/3] Translate into chinese

   [en] << - Did you hear that?

   [zh-cn] >> - 你听到了吗?

   [en] << - Hear what?

   [zh-cn] >> - 听到什么?

   [en] << Are you sure this line is clean?

   [zh-cn] >> 你确定这条线是干净的吗?

   [en] << Yeah, of course I'm sure.

   [zh-cn] >> 是的,我当然确定。

   [en] << I better go.

   [zh-cn] >> 我最好去。

   [en] << - Freeze! Police!

   [zh-cn] >> - 冻结!警察!

   [en] << - Hands on your head!

   [zh-cn] >> - 把手放在你的头上!

   [en] << Do it! Do it now!

   [zh-cn] >> 去做吧!现在做
   .
   .
   .
   
This command should translate and create three different files, one with Chinese subtitles, one with German and one with Russia subtitles.



Project layout
--------------

.. code-block:: bash

   ├── CHANGES.md
   ├── LICENSE.txt
   ├── README.rst
   ├── bin
   │   ├── __init.py__
   │   └── subtrs
   ├── requirements.txt
   ├── setup.py
   └── subtrs
       ├── __init__.py
       ├── __metadata__.py
       └── main.py


Donate
------

If you feel satisfied with this project and want to thanks me make a donation.

.. image:: https://gitlab.com/dslackw/images/raw/master/donate/paypaldonate.png
   :target: https://www.paypal.me/dslackw

          
Copyright
---------

- Copyright 2022 © dslackw


License
-------
`MIT <https://gitlab.com/dslackw/subtrs/-/blob/main/LICENSE.txt>`_



            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/dslackw/subtrs",
    "name": "subtrs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "video,translate,subtitles,google,youtube",
    "author": "Dimitris Zlatanidis",
    "author_email": "d.zlatanidis@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5f/d7/387204d18ad15f8e801d48986583e302ff4fbbbf2526beba928d037a5874/subtrs-2.3.tar.gz",
    "platform": null,
    "description": ".. contents:: Table of Contents:\n\nAbout\n-----\n\n**Translate Video Subtitles**\n\n**subtrs** is a simple tool that translates subtitles from files.\n\nThe main idea came when using the YouTube auto-tool to translate video subtitles, I saw that the translation sucked.\n\nSo I decided to create this simple tool and translate my subtitles more successfully.\n\nEnjoy!\n\n\n.. image:: https://gitlab.com/dslackw/images/raw/master/subtrs/subtrs.gif\n   :target: https://gitlab.com/dslackw/subtrs\n\n\t\nInstalling\n----------\n\n.. code-block:: bash\n\n   $ pip3 install subtrs --upgrade\n\n \nCommand line usage\n------------------\n\n.. code-block:: bash\n\n   Usage: subtrs [subtitles_file] [destination languages]\n\n          Simple tool that trlanslates video subtitles\n\n          Support subtitles files [*.sbv, *.vtt, *.srt]\n          Destination languages [en,de,ru] etc.\n\n   Optional arguments:\n          --color      View translated text with colour.\n          --progress   Show progress bar.\n          --export     Export the text only.\n     -l,  --languages  Show all supported languages.\n     -v,  --version    Print the version and exit.\n     -h,  --help       Show this message and exit.\n\n\nExample\n-------\n\n.. code-block:: bash\n\n   $ subtrs subtitles.srt el --progress\n   [1/1] Translate into greek |########                        | 27% - 24s\n\n\nAn example which create multiple subtitles files:\n\n.. code-block:: bash\n\n   $ subtrs subtitles.srt zh-cn,de,ru --color\n   [1/3] Translate into chinese\n\n   [en] << - Did you hear that?\n\n   [zh-cn] >> - \u4f60\u542c\u5230\u4e86\u5417\uff1f\n\n   [en] << - Hear what?\n\n   [zh-cn] >> - \u542c\u5230\u4ec0\u4e48\uff1f\n\n   [en] << Are you sure this line is clean?\n\n   [zh-cn] >> \u4f60\u786e\u5b9a\u8fd9\u6761\u7ebf\u662f\u5e72\u51c0\u7684\u5417\uff1f\n\n   [en] << Yeah, of course I'm sure.\n\n   [zh-cn] >> \u662f\u7684\uff0c\u6211\u5f53\u7136\u786e\u5b9a\u3002\n\n   [en] << I better go.\n\n   [zh-cn] >> \u6211\u6700\u597d\u53bb\u3002\n\n   [en] << - Freeze! Police!\n\n   [zh-cn] >> - \u51bb\u7ed3\uff01\u8b66\u5bdf\uff01\n\n   [en] << - Hands on your head!\n\n   [zh-cn] >> - \u628a\u624b\u653e\u5728\u4f60\u7684\u5934\u4e0a\uff01\n\n   [en] << Do it! Do it now!\n\n   [zh-cn] >> \u53bb\u505a\u5427\uff01\u73b0\u5728\u505a\n   .\n   .\n   .\n   \nThis command should translate and create three different files, one with Chinese subtitles, one with German and one with Russia subtitles.\n\n\n\nProject layout\n--------------\n\n.. code-block:: bash\n\n   \u251c\u2500\u2500 CHANGES.md\n   \u251c\u2500\u2500 LICENSE.txt\n   \u251c\u2500\u2500 README.rst\n   \u251c\u2500\u2500 bin\n   \u2502\u00a0\u00a0 \u251c\u2500\u2500 __init.py__\n   \u2502\u00a0\u00a0 \u2514\u2500\u2500 subtrs\n   \u251c\u2500\u2500 requirements.txt\n   \u251c\u2500\u2500 setup.py\n   \u2514\u2500\u2500 subtrs\n       \u251c\u2500\u2500 __init__.py\n       \u251c\u2500\u2500 __metadata__.py\n       \u2514\u2500\u2500 main.py\n\n\nDonate\n------\n\nIf you feel satisfied with this project and want to thanks me make a donation.\n\n.. image:: https://gitlab.com/dslackw/images/raw/master/donate/paypaldonate.png\n   :target: https://www.paypal.me/dslackw\n\n          \nCopyright\n---------\n\n- Copyright 2022 \u00a9 dslackw\n\n\nLicense\n-------\n`MIT <https://gitlab.com/dslackw/subtrs/-/blob/main/LICENSE.txt>`_\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A simple tool that translates video subtitles",
    "version": "2.3",
    "split_keywords": [
        "video",
        "translate",
        "subtitles",
        "google",
        "youtube"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "9a809fe3c39e72832ed677ca34a34bbc",
                "sha256": "6b19a613279a251923f3b091adba62a19f2660d916bee3dfd6a5d8e6963165dc"
            },
            "downloads": -1,
            "filename": "subtrs-2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "9a809fe3c39e72832ed677ca34a34bbc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6195,
            "upload_time": "2022-12-07T18:39:25",
            "upload_time_iso_8601": "2022-12-07T18:39:25.077125Z",
            "url": "https://files.pythonhosted.org/packages/5f/d7/387204d18ad15f8e801d48986583e302ff4fbbbf2526beba928d037a5874/subtrs-2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-07 18:39:25",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "gitlab_user": "dslackw",
    "gitlab_project": "subtrs",
    "lcname": "subtrs"
}
        
Elapsed time: 0.02509s