Learn R Programming

alineR (version 1.1.4)

encode.ALINE: Encode IPA as ALINE ASCII notation

Description

Translates a vector of IPA words into the ASCII encoding scheme used by aline via ALINE.map. Uses UTF-8 encodings.

Usage

encode.ALINE(x, mark = FALSE, m1 = NULL, m2 = NULL)

Arguments

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

Warning

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.

See Also

decode.ALINE

Examples

Run this code
# 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