Package ca.phon.ipa
Class IPATranscriptBuilder
java.lang.Object
ca.phon.ipa.IPATranscriptBuilder
Class for building
IPATranscript
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend
(IPAElement ipaElement) Append the givenIPAElement
append
(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 groupAppend a syllable boundary (e.g., '.')Append a word boundary.last()
Return the last element in the buffer ornull
if buffer is empty.makeCompoundPhone
(IPAElement phone, Character lig) Make the last added element plus this phone a new compound phone.reverse()
Reverse elements in this builder.int
size()
Return the length of the currentIPATranscript
in the buffer.Return theIPATranscript
object
-
Constructor Details
-
IPATranscriptBuilder
public IPATranscriptBuilder()
-
-
Method Details
-
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
-
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
-
appendWordBoundary
Append a word boundary.- Returns:
- builder
-
appendSyllableBoundary
Append a syllable boundary (e.g., '.')- Returns:
- builder
-
appendCompoundWordMarker
Append a compound word marker (e.g, '+')- Returns:
- builder
-
appendLinker
Append a linker (including liason)- Returns:
- builder
-
appendContraction
Append contraction- Returns:
- builder
-
appendMinorIntonationGroup
Append minor intonation group- Returns:
- builder
-
appendMajorIntonationGroup
Append major intonation group- Returns:
- builder
-
toIPATranscript
Return theIPATranscript
object- Returns:
- ipa
-
last
Return the last element in the buffer ornull
if buffer is empty.- Returns:
- last element in buffer
-
removeLast
-
reverse
Reverse elements in this builder. -
size
public int size()Return the length of the currentIPATranscript
in the buffer.- Returns:
- size of buffer
-