Description Usage Arguments Value Warning Note Author(s) See Also Examples
Decode aligned ALINE ASCII output into the original IPA characters while indicating the optimal alignment with vertical bars ('|').
1 | decode.ALINE(x, y, m1 = NULL, m2 = NULL)
|
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. |
word |
The alignment of the word in the IPA notation. |
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.
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().
Sean Downey and Guowei Sun
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")
|
[1] "| <U+0263> u l l a | "
[1] "| <U+01A2> m l a t <U+03B8> | "
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.