#alphabet #sentence #spell #stdin

yanked phonetic

Small tool to help you spell in phonetic alphabets

0.2.0 Mar 18, 2022
0.1.2 Mar 17, 2022
0.1.1 Mar 17, 2022

#21 in #spell

27 downloads per month

MIT license

17KB
215 lines

Phonetic

Small application and rust library that helps you spell sentences in the phonetic alphabets.

Installation

cargo install phonetic

Usage (cli)

USAGE:
    phon [OPTIONS] [SENTENCE]...

ARGS:
    <SENTENCE>...

OPTIONS:
    -a, --alphabet <ALPHABET>              Alphabet to use [env: PHON_ALPHABET=] [default: nato]
    -h, --help                             Print help information
    -l, --list-alphabets                   List available alphabets
    -s, --show-alphabet <SHOW_ALPHABET>    Show the contents of an alphabet
    -V, --version                          Print version information

phon can also be used through stdin:

$ echo "some sentence" | phon

Note that the alphabet can be set through either the -a command line option or the PHON_ALPHABET environment variable.

Usage (library)

See usage documentation at https://docs.rs/phonetic/latest/phonetic/

Building

Make sure to have Rust installed. Then build with cargo build.

Alphabets

The alphabets directory contains the current list of available alphabets, most of which are taken from https://en.wikipedia.org/wiki/Spelling_alphabet. If you want to include other alphabets, please add them and create a pull-request.

Contributing

Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

Dependencies

~3–11MB
~97K SLoC