Class DISC2SAMPA

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

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

      • DISC2SAMPA

        public DISC2SAMPA()
        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.