knitr::opts_chunk$set( # collapse = TRUE, results = "asis", comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(ipa) # remotes::install_github("GuangchuangYu/badger") library(badger) # remotes::install_github("coolbutuseless/phon") library(phon)
r badge_cran_release(color = "brightgreen")
r badge_lifecycle("maturing")
r badge_license(color = "blueviolet")
r badge_github_actions(action = "R-CMD-check")
r badge_codecov()
r badge_dependencies()
Convert character vectors between phonetic representations. Supports IPA, X-SAMPA and ARPABET (used by the CMU Pronouncing Dictionary).
You can install the released version of ipa from CRAN with:
install.packages("ipa")
Or the development version from GitHub with:
``` {r eval = FALSE} install_github("rossellhayes/ipa")
## Usage My main use case for **ipa** is including phonetic representations in R markdown files. You can enter phonetic information as plain-text X-SAMPA and have it rendered as IPA. ```r `r sampa('/aI pi: "eI/')`
r sampa('/aI pi: "eI/')
`r sampa(c('/"nom.b4e/', '/nO~bR/'))`
r sampa(c("/\"nom.b4e/", "/nO~bR/"))
You can also get the X-SAMPA representation of IPA strings.
ipa("/aɪ piː ˈeɪ/")
/aI pi: "eI/
ipa(c("/ˈnom.bɾe/", "/nɔ̃bʁ/"))
/nom.b4e/
, /nO~bR/
ARPABET support allows ipa to automatically convert results from the phon package.
# remotes::install_github("coolbutuseless/phon") arpa(phon::phonemes("pronounce"))
r arpa(phon::phonemes("pronounce"))
Hex sticker fonts are Source Code Pro and Source Serif Pro by Adobe.
Please note that ipa is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.