Package ca.phon.ipa
Class IPAElementFactory
java.lang.Object
ca.phon.ipa.IPAElementFactory
A factory for creating various types of
IPAElement
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncloneElement
(IPAElement ele) Clone the givenIPAElement
the returned element will have the exact content and sameSyllableConstituentType
as the original elementclonePause
(Pause pause) clonePhone
(Phone p) copyDiacritic
(Diacritic dia) void
copySyllabification
(IPAElement ele1, IPAElement ele2) Copy syllabification information from ele1 to ele2Create a new alignment marker (left-right arrow 0x2194)Create an empty compound phonecreateCompoundPhone
(Phone phone1, Phone phone2, Character ligature) Create a new compound phoneCreate the default compound word marker ('+')Create a contractioncreateDiacritic
(Diacritic[] prefix, Character dia, Diacritic[] suffix) createDiacritic
(Character dia) Create a new intonation groupCreate an intra-word pauseCreate a linkerCreate a major intonation group markerCreate a minor intonation group markercreatePause
(PauseLength length) Create a pauseNew basic phonecreatePhone
(Diacritic[] prefix, Character basePhone, Diacritic[] combining, Diacritic[] suffix) Create a new basic phonecreatePhone
(Diacritic prefix, Character basePhone) Create a new basic phonecreatePhone
(Diacritic prefix, Character basePhone, Diacritic suffix) Create a new basic phonecreatePhone
(Diacritic prefix, Character basePhone, Diacritic[] combining, Diacritic suffix) Create a new basic phonecreatePhone
(Character basePhone) Create a new basic phonecreatePhone
(Character basePhone, Diacritic[] combiningDiacritics) createPhonexMatcherReference
(int groupIndex) Create a phonex matcher reference.createPhonexMatcherReference
(String groupName) Create a phonex matcher reference.Create a primary stress markercreateSandhi
(String text) Create a sandhi element based on given textCreate a secondary stress markercreateStress
(StressType type) Create a new stress markerCreate a 'hard' syllable boundary.Create a new word boundary.
-
Constructor Details
-
IPAElementFactory
public IPAElementFactory()
-
-
Method Details
-
createPhone
New basic phone -
createPhone
Create a new basic phone- Parameters:
basePhone
-- Returns:
- the created
IPAElement
object
-
createPhone
-
createPhone
Create a new basic phone- Parameters:
prefix
-basePhone
-
-
createPhone
Create a new basic phone- Parameters:
prefix
-basePhone
-suffix
-
-
createPhone
public Phone createPhone(Diacritic prefix, Character basePhone, Diacritic[] combining, Diacritic suffix) Create a new basic phone- Parameters:
prefix
-basePhone
-combining
-suffix
-
-
createPhone
public Phone createPhone(Diacritic[] prefix, Character basePhone, Diacritic[] combining, Diacritic[] suffix) Create a new basic phone- Parameters:
prefix
-basePhone
-combining
-suffix
-
-
clonePhone
-
createDiacritic
-
createDiacritic
-
copyDiacritic
-
createCompoundPhone
Create an empty compound phone -
createCompoundPhone
Create a new compound phone- Parameters:
phone1
-phone2
-ligature
-
-
cloneCompoundPhone
-
createSyllableBoundary
Create a 'hard' syllable boundary. I.e., a '.'- Returns:
- a syllable boundary marker
-
createStress
Create a new stress marker- Parameters:
type
-- Returns:
- a new stress marker of the given type
-
cloneStress
-
createPrimaryStress
Create a primary stress marker- Returns:
- a new primary stress marker
-
createSecondaryStress
Create a secondary stress marker- Returns:
- a new secondary stress marker
-
createIntonationGroup
Create a new intonation group- Parameters:
type
-- Returns:
- a new intonation group marker
-
cloneIntonationGroup
-
createMajorIntonationGroup
Create a major intonation group marker- Returns:
- a new major intonation group marker
-
createMinorIntonationGroup
Create a minor intonation group marker- Returns:
- a new minor intonation group marker
-
createWordBoundary
Create a new word boundary. I.e., a ' '- Returns:
- a new word boundary marker
-
createPause
Create a pause- Parameters:
length
-- Returns:
- a new pause of the given length
-
clonePause
-
createIntraWordPause
Create an intra-word pause- Returns:
- new intra-word pause
-
createCompoundWordMarker
Create the default compound word marker ('+')- Returns:
- compound word marker
-
createCompoundWordMarkerPlus
-
createCompoundWordMarkerTilde
-
createLinker
Create a linker- Returns:
- linker (sandhi)
-
createContraction
Create a contraction- Returns:
- contraction (sandhi)
-
createSandhi
Create a sandhi element based on given text- Returns:
- sandhi
-
cloneSandhi
-
createPhonexMatcherReference
Create a phonex matcher reference.- Parameters:
groupIndex
-
-
createPhonexMatcherReference
Create a phonex matcher reference.- Parameters:
groupName
-- Returns:
-
clonePhonexMatcherReference
-
createAlignmentMarker
Create a new alignment marker (left-right arrow 0x2194)- Returns:
-
cloneElement
Clone the givenIPAElement
the returned element will have the exact content and sameSyllableConstituentType
as the original element- Parameters:
ele
-- Returns:
- a copy of the given element
- Throws:
NullPointerException
- if ele isnull
-
copySyllabification
Copy syllabification information from ele1 to ele2- Parameters:
ele1
-ele2
-
-