Package nzilbb.encoding
Class XSAMPA2DISC
- java.lang.Object
-
- nzilbb.encoding.PhonemeTranslator
-
- nzilbb.encoding.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_.Mapping X-SAMPA DISC Example 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 // duplicate of "eI"{I → 1 // 'open schwa' (ɐ)6 → @ o: → $ O", 'Q // flap - this is an extension to DISC4", '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 Summary
Constructors Constructor Description XSAMPA2DISC()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(String source)
Translates a phonemic transcription from the source encoding to the destination encoding.-
Methods inherited from class nzilbb.encoding.PhonemeTranslator
getDestinationEncoding, getSourceEncoding
-
-