Class SAMPA2DISC

  • All Implemented Interfaces:
    Function<String,​String>, UnaryOperator<String>

    public class SAMPA2DISC
    extends PhonemeTranslator
    Translates SAMPA-encoded phonemic transcriptions like streIndZ to CELEX-DISC-encoded transcriptions like str1n_.
    Mapping
    SAMPADISC
    Vowels
    i: → i
    A: → #
    O: → $
    u: → u
    3: → 3
    eI → 1
    aI → 2
    OI → 4
    @U → 5
    aU → 6
    I@ → 7
    E@ → 8
    U@ → 9
    {~ → c
    A~: → q
    {~: → 0
    O~: → ~
    Consonants
    tS → J
    dZ → _
    N, → C
    m, → F
    n, → H
    l, → P
    r* → R
    Author:
    Robert Fromont robert@fromont.net.nz
    See Also:
    DISC2SAMPA
    • Constructor Detail

      • SAMPA2DISC

        public SAMPA2DISC()
        Default constructor.
    • Method Detail

      • apply

        public String apply​(String source)
        Translates a phonemic transcription from the source encoding to the destination encoding.
        Specified by:
        apply in interface Function<String,​String>
        Overrides:
        apply in class PhonemeTranslator
        Parameters:
        source - Phonemic transcription in the source encoding.
        Returns:
        Phonemic transcription in the destination encoding.