Package nzilbb.encoding
Class DISC2IPA
- java.lang.Object
-
- nzilbb.encoding.PhonemeTranslator
-
- nzilbb.encoding.DISC2IPA
-
- All Implemented Interfaces:
Function<String,String>
,UnaryOperator<String>
public class DISC2IPA extends PhonemeTranslator
Translates CELEX-DISC-encoded transcriptions like tr{nskrIpS@n to IPA-encoded phonemic transcriptions using Unicode characters like tɹænskɹɪpʃən.This supports straight round-trip conversion with IPA symbols used by
IPA2DISC
. The 1-to-1 mappings are:Mapping
DISC IPA Example & ↔ a hat (German) Nasals c ↔ æ̃ timbre q ↔ ɑ̃ː détente 0 ↔ æ̃ː lingerie ~ ↔ ɒ̃ː bouillon Possible linking r R ↔ ɹ father Syllabics C ↔ ŋ̩ bacon F ↔ m̩ idealism H ↔ n̩ burden P ↔ l̩ dangle r ↔ ɹ rat g ↔ ɡ game (this is LATIN SMALL LETTER SCRIPT G which is always straight-backed) Monophthongs 3 ↔ ɜː NURSE { ↔ æ TRAP } ↔ ʉ put (Dutch) $ ↔ ɔː THOUGHT I ↔ ɪ KIT Y ↔ ʏ Pfütze V ↔ ʌ STRUT Q ↔ ɒ LOT O ↔ ɔ Glocke (German) U ↔ ʊ FOOT @ ↔ ə another Schwa u ↔ uː GOOSE i ↔ iː FLEECE E ↔ ɛ DRESS # ↔ ɑː BATH A ↔ ɑ kalevala (German) y ↔ yː für (German) o ↔ oː boot (German) ) ↔ ɛː Käse (German) | ↔ øː Möbel (German) ^ ↔ œ̃ː Parfum (German) / ↔ œ Götter (German) Diphthongs 1 ↔ eɪ FACE 2 ↔ aɪ PRICE 4 ↔ ɔɪ CHOICE 5 ↔ əʊ GOAT 6 ↔ aʊ MOUTH 7 ↔ ɪə NEAR 8 ↔ ɛə SQUARE 9 ↔ ʊə CURE W ↔ ai weit (German) B ↔ au Haut (German) X ↔ ɔy freut (German) L ↔ œy huis (Dutch) Consonants N ↔ ŋ bang T ↔ θ thin D ↔ ð then S ↔ ʃ sheep Z ↔ ʒ measure + ↔ pf Pferd (German) Affricates _ ↔ d͜ʒ jeep J ↔ t͜ʃ cheap = ↔ t͜s Zahl (German) Extensions to DISC, not in CELEX ? ↔ ʔ uh-oh Glottal Stop Any other symbol is passed through unchanged, including: p ↔ p pat b ↔ b bad t ↔ t tack d ↔ d dad k ↔ k cad g ↔ g game l ↔ l lad m ↔ m mad n ↔ n nat f ↔ f fat v ↔ v vat s ↔ s sap z ↔ z zap j ↔ j yank h ↔ h had w ↔ w why x ↔ x loch - Author:
- Robert Fromont robert@fromont.net.nz
-
-
Constructor Summary
Constructors Constructor Description DISC2IPA()
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.String
getDelimiter()
Getter fordelimiter
: Delimiter between IPA phonemes, if any.DISC2IPA
setDelimiter(String newDelimiter)
Setter fordelimiter
: Delimiter between IPA phonemes, if any.-
Methods inherited from class nzilbb.encoding.PhonemeTranslator
getDestinationEncoding, getSourceEncoding
-
-
-
-
Method Detail
-
getDelimiter
public String getDelimiter()
Getter fordelimiter
: Delimiter between IPA phonemes, if any.- Returns:
- Delimiter between IPA phonemes, if any.
-
setDelimiter
public DISC2IPA setDelimiter(String newDelimiter)
Setter fordelimiter
: Delimiter between IPA phonemes, if any.- Parameters:
newDelimiter
- Delimiter between IPA phonemes, if any.
-
-