Class XSAMPA2DISC

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

    public class XSAMPA2DISC
    extends PhonemeTranslator
    Translates X-SAMPA-encoded phonemic transcriptions like str\eIndZ to CELEX-DISC-encoded transcriptions like str1n_. // duplicate of "eI" // 'open schwa' (ɐ) // flap - this is an extension to DISC
    Mapping
    X-SAMPADISCExample
    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~: → ~
    Vowels output by MAUSBasic
    @} → 5
    Ae → 2
    {Q → 6
    {I → 1
    6 → @
    o: → $
    O", 'Q
    4", 'L
    (different from SAMPA)
    }: → }
    Consonants
    tS → J
    dZ → _
    r* → R
    (different from SAMPA)
    r\\ → r
    5 → l
    N= → C
    m= → F
    n= → H
    l= → P
    Author:
    Robert Fromont robert@fromont.net.nz
    See Also:
    DISC2XSAMPA
    • Constructor Detail

      • XSAMPA2DISC

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