| Crates.io | phonetic |
| lib.rs | phonetic |
| version | 0.2.0 |
| created_at | 2022-03-17 18:20:19.08826+00 |
| updated_at | 2022-03-18 14:02:06.614848+00 |
| description | Small tool to help you spell in phonetic alphabets |
| homepage | |
| repository | https://github.com/wouterdebie/phonetic/ |
| max_upload_size | |
| id | 551947 |
| size | 42,996 |
Small application and rust library that helps you spell sentences in the phonetic alphabets.
cargo install phonetic
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.
See usage documentation at https://docs.rs/phonetic/latest/phonetic/
Make sure to have Rust installed. Then build with cargo build.
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.
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.
NOTE: Be sure to merge the latest from "upstream" before making a pull request!