Class IPATranscriptBuilder
java.lang.Object
ca.phon.ipa.IPATranscriptBuilder
Class for building
IPATranscripts.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(IPAElement ipaElement) Append the givenIPAElementappend(IPATranscript ipa) Append the given transcriptAppend the given string to the transcript.Append the given string to the transcript, attempting to retain syllabification.append(Collection<? extends IPAElement> eleList) Append all elementsAppend a compound word marker (e.g, '+')Append contractionAppend a linker (including liason)Append major intonation groupAppend minor intonation groupappendPause(float secs) appendPause(PauseLength len) Append phonetic group marker endAppend phonetic group marker startappendPhone(Diacritic[] prefixDiacritics, Character basePhone, Diacritic[] combiningDiacritics, Diacritic[] suffixDiacritics) Append a phoneappendPhone(Diacritic[] prefixDiacritics, Character basePhone, Diacritic[] combiningDiacritics, Diacritic[] suffixDiacritics, FeatureSet overrideFeatureSet, SyllableInfo syllableInfo) Append a phoneappendStress(StressType type) Append stressAppend a syllable boundary (e.g., '.')Append a word boundary.last()Return the last element in the buffer ornullif buffer is empty.makeCompoundPhone(IPAElement phone, Character lig) Make the last added element plus this phone a new compound phone.makeCompoundPhone(Character lig, FeatureSet overrideFeatureSet, SyllableInfo syllableInfo) reverse()Reverse elements in this builder.intsize()Return the length of the currentIPATranscriptin the buffer.Return theIPATranscriptobjecttoString()
-
Constructor Details
-
IPATranscriptBuilder
public IPATranscriptBuilder()
-
-
Method Details
-
getUnvalidatedValue
-
append
Append the givenIPAElement- Parameters:
ipaElement-- Returns:
- builder
-
makeCompoundPhone
Make the last added element plus this phone a new compound phone. This will replace the last phone added.- Parameters:
phone-lig-- Returns:
- Throws:
IllegalStateException- if previous phone is not present or is not an instance of Phone
-
makeCompoundPhone
-
makeCompoundPhone
public IPATranscriptBuilder makeCompoundPhone(Character lig, FeatureSet overrideFeatureSet, SyllableInfo syllableInfo) -
append
Append all elements- Parameters:
eleList-- Returns:
- builder
-
append
Append the given string to the transcript, attempting to retain syllabification. This utilizes theIPATranscript.parseIPATranscript(String)method. The given ipa should be parse-able on it's own.- Parameters:
ipa-retainSyllabification-- Returns:
- builder
-
append
Append the given string to the transcript. This utilizes theIPATranscript.parseIPATranscript(String)method.- Parameters:
ipa-- Returns:
- builder
-
append
Append the given transcript- Parameters:
ipa-- Returns:
- builder
-
appendPhone
public IPATranscriptBuilder appendPhone(Diacritic[] prefixDiacritics, Character basePhone, Diacritic[] combiningDiacritics, Diacritic[] suffixDiacritics) Append a phone- Parameters:
prefixDiacritics-basePhone-combiningDiacritics-suffixDiacritics-
-
appendPhone
public IPATranscriptBuilder appendPhone(Diacritic[] prefixDiacritics, Character basePhone, Diacritic[] combiningDiacritics, Diacritic[] suffixDiacritics, FeatureSet overrideFeatureSet, SyllableInfo syllableInfo) Append a phone- Parameters:
prefixDiacritics-basePhone-combiningDiacritics-suffixDiacritics-
-
appendPause
-
appendPause
-
appendWordBoundary
-
appendSyllableBoundary
Append a syllable boundary (e.g., '.')- Returns:
- builder
-
appendCompoundWordMarker
Append a compound word marker (e.g, '+')- Returns:
- builder
-
appendLinker
-
appendContraction
-
appendMinorIntonationGroup
Append minor intonation group- Returns:
- builder
-
appendMajorIntonationGroup
Append major intonation group- Returns:
- builder
-
appendStress
-
appendPgStart
-
appendPgEnd
-
appendPg
-
toIPATranscript
-
last
Return the last element in the buffer ornullif buffer is empty.- Returns:
- last element in buffer
-
removeLast
-
reverse
Reverse elements in this builder. -
size
public int size()Return the length of the currentIPATranscriptin the buffer.- Returns:
- size of buffer
-
toString
-