decode.ALINE: Decode ALINE ASCII output

Description Usage Arguments Value Warning Note Author(s) See Also Examples

Description

Decode aligned ALINE ASCII output into the original IPA characters while indicating the optimal alignment with vertical bars ('|').

Usage

1
decode.ALINE(x, y, m1 = NULL, m2 = NULL)

Arguments

x

A vector containing the original IPA word.

y

A vector containing the aligned characters in ALINE notation.

m1

A vector of IPA characters to encode. See map() for details.

m2

A vector of ASCII ALINE encodings. See map() for detail.

Value

word

The alignment of the word in the IPA notation.

Warning

The ALINE encoding scheme only accepts a single lower case character followed by one or more upper case characters. For example, "dD" can be accepted but "dd" can not.

Note

The opriginal IPA word is required because of many-to-one relationships when mapping ALINE–>IPA. For example, both intToUtf8(249) and intToUtf8(250) are mapped to ASCII 'u' (see map()) so the process cannot be reversed without the original IPA word. User-specified mappings should be consistent with encode.ALINE().

Author(s)

Sean Downey and Guowei Sun

See Also

encode.ALINE

Examples

1
2
3
4
5
6
7
8
x<-intToUtf8(c(611,117,108,108,97))
y<-"|         gS       u       l       l       a       |  "
decode.ALINE(x,y)

# user-specified mapping. Should be consistent with encode.ALINE() function
x<-intToUtf8(c(418,109,108,97,116,952))
y<-"|  o   m   l   a   t   tS  |  "
decode.ALINE(x,y,m1=intToUtf8(418), m2="o")

Example output

[1] "|          <U+0263>       u       l       l       a       |  "
[1] "|  <U+01A2>   m   l   a   t    <U+03B8>  |  "

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

Related to decode.ALINE in alineR...