Skip to content

Command line tools to apply/remove smart punctuation to ASS subtitle files.

License

Notifications You must be signed in to change notification settings

jpenney/smartass

Repository files navigation

Overview

docs Documentation Status
tests
Travis-CI Build Status AppVeyor Build Status Requirements Status
Coverage Status
package

Apply smart punctuation to subtitles.

  • Free software: BSD 3-Clause License

Installation

You can install the in-development version with:

$ pip install -e git://github.com/jpenney/smartass.git#egg=smartass

Documentation

https://smartass.readthedocs.io/

Command Line Usage

Smarten punctuation:

$ smartass --skip-actor sign subs1.ass

Unsmarted punctuation:

$ dumbass subs2.ass

See usage:

$ smartass --help
Usage: smartass [OPTIONS] FILE

  Smarten punctionation on ass subtitle files.

Options:
  --log-level [debug|info|warning|error|critical]
                                  log level displayed  [default: info]
  --no-backup / --backup          enable/disable creation of backup files
                                  [default: True]

  --process-comments / --no-process-comments
                                  enable/disable processing of comment events
                                  [default: False]

  --skip-name ACTOR_NAME          lines by this actor (case insensitive) will
                                  be skipped. May be passed multiple times.

  --version                       Show the version and exit.
  --help                          Show this message and exit.

Development

To run all the tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows
set PYTEST_ADDOPTS=--cov-append
tox
Other
PYTEST_ADDOPTS=--cov-append tox

About

Command line tools to apply/remove smart punctuation to ASS subtitle files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published