A very simple utility to convert the plain quotes in a text file into typographic quotes. Uses the html and smartypants modules.
Go to file
Tildebeast 093c8808b8 Fixed error behaviour on input file permissions. 2023-05-17 21:13:44 +00:00
LICENSE Initial commit 2023-05-17 20:53:51 +00:00
README.md Update 'README.md' 2023-05-17 21:10:20 +00:00
sqt Fixed error behaviour on input file permissions. 2023-05-17 21:13:44 +00:00

README.md

sqt

A very simple utility to convert the plain quotes in a text file into typographic quotes. Uses the html and smartypants modules.

Usage

To convert plain quotes to typographic quotes:

      sqt infile [outfile]

or to show help:

      sqt -h|--help

If you specify an output file, then sqt will write the converted text to that file without displaying the results onscreen.

To see the results in your terminal and write them to a file, try sqt some_input_file.txt | tee some_output_file.txt.

Installation

These instructions are intended for Linux distributions and similar OSes such as the BSD family.

  • Install the smartypants package using pip install -u smartypants.
  • Download the file sqt.
  • Make sure it is executable with the command chmod u+x sqt.
  • Copy it to a file in your PATH, with a command such as cp sqt ~/.local/bin/
  • Find a suitable input file (say input_file.txt)
  • Check that the command works by typing sqt input_file.txt.