Skip to content

Commit

Permalink
Minor clean up to README
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Aug 25, 2021
1 parent 9d13151 commit b2f6d45
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ echo 'ɑ̃' | \
0 1
```

where U+0251 (ɑ) is 0 and U+0303 (nasal) is 1.
where U+0251 (`ɑ`) is 0 and U+0303 (nasal) is 1.

Specifying the exact graphemes to separate out is done with `--separate <string>` (one or more times):

Expand All @@ -223,27 +223,27 @@ echo 'aː' | \
0 1
```

where "a" is 0 and "ː" is 1. If the separator occurs in the middle of a phoneme, the phoneme is split into three parts (before, separator, after):
where `a` is 0 and `ː` is 1. If the separator occurs in the middle of a phoneme, the phoneme is split into three parts (before, separator, after):

```sh
echo 'aːb' | \
phonemes2ids --separate 'ː'
0 2 1
```

where "a" is 0, b is 1, and "ː" is 2.
where `a` is 0, `b` is 1, and `ː` is 2.

### Punctuation Simplification

If you only care about short and long pauses in a sentence, the `--simple-punctuation` flag is for you! It replaces common punctuation symbols with either "," (short pause) or "." (long pause):
If you only care about short and long pauses in a sentence, the `--simple-punctuation` flag is for you! It replaces common punctuation symbols with either `,` (short pause) or `.` (long pause):

```sh
sh
echo ', . : ; ! ?' | \
phonemes2ids --simple-punctuation
0 1 0 0 1 1
```
``

where "," is 0 and "." is 1. Use `--phoneme-map` for more control.
where `,` is 0 and `.` is 1. Use `--phoneme-map` for more control.

---

Expand Down

0 comments on commit b2f6d45

Please sign in to comment.