Class DISC2XSAMPA

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

    public class DISC2XSAMPA
    extends PhonemeTranslator
    Translates CELEX-DISC-encoded transcriptions like str1n_ to X-SAMPA-encoded phonemic transcriptions like str\eIndZ.
    Mapping
    DISCX-SAMPAExample
    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
    R r*
    r r\
    } }:
    l 5
    C N=
    F m=
    H n=
    P l=
    Author:
    Robert Fromont robert@fromont.net.nz
    See Also:
    XSAMPA2DISC
    • Constructor Detail

      • DISC2XSAMPA

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