Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
stefantaubert committed Jan 11, 2023
1 parent 4f13a09 commit 3658c75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,19 @@ pip install pinyin-to-ipa --user

## Usage

```sh
pinyin-to-ipa-cli
```txt
usage: pinyin-to-ipa-cli [-h] [-v] [--sep SEP] [--first] PINYIN
Command-line interface (CLI) to transcribe pinyin to IPA.
positional arguments:
PINYIN pinyin
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--sep SEP separator between phonemes (default: )
--first return only first result (default: False)
```

### Example
Expand Down
2 changes: 1 addition & 1 deletion src/pinyin_to_ipa_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def get_app_try_add_vocabulary_from_pronunciations_parser(parser: ArgumentParser):
parser.description = "Command-line interface (CLI) to create a pronunciation dictionary by looking up IPA transcriptions using dragonmapper including the possibility of ignoring punctuation and splitting words on hyphens before transcribing them."
parser.description = "Command-line interface (CLI) to transcribe pinyin to IPA."
parser.add_argument("pinyin", metavar='PINYIN', type=parse_non_empty_or_whitespace,
help="pinyin")
parser.add_argument("--sep", type=str, help="separator between phonemes", default="")
Expand Down

0 comments on commit 3658c75

Please sign in to comment.