Translates a vector of IPA words into the ASCII encoding scheme used by aline via ALINE.map. Uses UTF-8 encodings.
encode.ALINE(x, mark = FALSE, m1 = NULL, m2 = NULL)
A vector of IPA words to encode.
If FALSE unknown symbols are omitted; if TRUE invalid symbols are replaced with "@".
A vector of IPA characters to encode. See map() for detail.
A vector of ALINE encodings. see map() for detail
This function will return a warning if it encounters an IPA symbol not included in the ALINE map or defined by the user. It will then ignore that symbol and decode the rest. Use mark=TRUE to see what is being omitted and map(m1, m2) to provide a new mapping.
# NOT RUN {
y<-c(intToUtf8(c(418,109,108,97,116,952)),intToUtf8(c(100,105,110,110,105,114,97)))
y
encode.ALINE(y,m1=intToUtf8(418), m2="o")
# }
Run the code above in your browser using DataLab