encode.ALINE {alineR} | R Documentation |
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)
x |
A vector of IPA words to encode. |
mark |
If FALSE unknown symbols are omitted; if TRUE invalid symbols are replaced with "@". |
m1 |
A vector of IPA characters to encode. See map() for detail. |
m2 |
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.
Sean Downey and Guowei Sun
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")