encode.ALINE: Encode IPA as ALINE ASCII notation

Description Usage Arguments Warning Author(s) See Also Examples

Description

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

Usage

1
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.

Author(s)

Sean Downey and Guowei Sun

See Also

decode.ALINE

Examples

1
2
3
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")

Example output

[1] "<U+01A2>mlat<U+03B8>" "dinnira"         
<U+01A2>mlat<U+03B8>          dinnira 
       "omlattS"        "dinnira" 

alineR documentation built on May 2, 2019, 11:26 a.m.

Related to encode.ALINE in alineR...