Metadata-Version: 2.4
Name: vtt2ptxt
Version: 0.0.1
Summary: Convert WebVTT to printable text.
Author-email: أحمد المحمودي <aelmahmoudy@users.sourceforge.net>
License: GPL-3.0
Project-URL: homepage, https://gitlab.com/aelmahmoudy/vtt2ptxt
Project-URL: issues, https://gitlab.com/aelmahmoudy/vtt2ptxt/-/issues
Keywords: webvtt,txt,cli
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: COPYING
Requires-Dist: webvtt_py
Requires-Dist: setuptools; python_version < "3.8"
Dynamic: license-file

# vtr2ptxt

CLI tool to convert WebVT to pretty/printable(that's what the 'p' stands for) plain text.

# Installation

## From git repo

Check out the [git repository](https://gitlab.com/aelmahmoudy/vtt2ptxt).

Also you can install from the git repo:

```shell
# Recommended
pipx install git+https://gitlab.com/aelmahmoudy/vtt2ptxt

# alternative
pip3 install --user git+https://gitlab.com/aelmahmoudy/vtt2ptxt
```

## From PyPI (for Python implementation)

```shell
# Recommended
pipx install vtt2ptxt

# alternative
pip3 install --user vtt2ptxt
```

# Usage

Just run `vtt2ptxt --help`. You'll get it:

<!-- VTT2PTXT_HELP -->
```
usage: vtt2ptxt [-h] [-w TEXTWIDTH] vttfile [outfile]

Convert WebVTT to printable text.

positional arguments:
  vttfile               input WebVTT file
  outfile               output text file

options:
  -h, --help            show this help message and exit
  -w TEXTWIDTH, --textwidth TEXTWIDTH
                        text width (for text wrapping)
```
<!-- PKP_HELP_END -->

