Class Phone
java.lang.Object
ca.phon.ipa.IPAElement
ca.phon.ipa.Phone
- All Implemented Interfaces:
- IExtendable,- CombiningDiacritics,- PrefixDiacritics,- SuffixDiacritics,- Visitable<IPAElement>
- Direct Known Subclasses:
- CompoundPhone
public class Phone
extends IPAElement
implements PrefixDiacritics, SuffixDiacritics, CombiningDiacritics
A basic phone consists of the following parts:
- A (optional) prefix diacritic
- A base glyph (i.e., Consonant, Vowel, etc.)
- Combining diacritics
- Length - measured from 0-3, with 0 being no length modifier
- A (optional) suffix diacritic
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new Phone for the given base phone.Phone(Character basePhone, FeatureSet overrideFeatureSet, SyllableInfo syllableInfo) Create a new Phone for the given base
- 
Method SummaryModifier and TypeMethodDescriptionprotected FeatureSetPrivate method to return the feature set for theIPAElement.getBase()Get the string for the phone's base.Get the feature set for the base phoneGet the primary glyph for this Phone.Get the string for the combining diacritic portion of the phone.Get the combining diacritics for the phone.Get the feature set for all combining diacritics.Get the string representing this phone's prefix.Get the feature set for the prefix diacritic.Get the string for this phone's suffix.Get the feature set for the suffix diacriticgetText()Get the text for this phoneMethods inherited from class ca.phon.ipa.IPAElementaccept, constituentType, featureSet, getExtension, getExtensions, isDiphthong, overrideFeatureSet, putExtension, removeExtension, segregated, sonority, sonorityDistance, stress, syllableIndex, syllableInfo, tone, toString
- 
Constructor Details- 
PhoneCreate a new Phone for the given base phone.- Parameters:
- basePhone-
 
- 
PhoneCreate a new Phone for the given base- Parameters:
- basePhone-
- overrideFeatureSet-
- syllableInfo-
 
 
- 
- 
Method Details- 
getPrefixDiacritics- Specified by:
- getPrefixDiacriticsin interface- PrefixDiacritics
 
- 
getPrefix
- 
getPrefixFeaturesGet the feature set for the prefix diacritic.- Returns:
- feature set for the prefix diacritic or an empty set if not found
 
- 
getBasePhoneGet the primary glyph for this Phone. All other parts of the Phone are 'attached' to this glyph.- Returns:
- the base character for the Phone
 
- 
getBase
- 
getBaseFeaturesGet the feature set for the base phone- Returns:
- the base phone's feature set or an empty set if not found
 
- 
getCombiningDiacriticsGet the combining diacritics for the phone. - Specified by:
- getCombiningDiacriticsin interface- CombiningDiacritics
- Returns:
- the combining diacritics, or an empty array if no combining diacritics are available.
 
- 
getLengthDiacritics
- 
getCombiningGet the string for the combining diacritic portion of the phone.- Returns:
- the combining diacritic string
 
- 
getCombiningFeaturesGet the feature set for all combining diacritics.- Returns:
- the feature set for all combining diacritics
 
- 
getSuffixDiacritics- Specified by:
- getSuffixDiacriticsin interface- SuffixDiacritics
 
- 
getSuffixGet the string for this phone's suffix.- Returns:
- the text for the suffix portion of the Phone
 
- 
getSuffixFeaturesGet the feature set for the suffix diacritic- Returns:
- feature set for the suffix diacritic or an empty set if not found
 
- 
_getFeatureSetDescription copied from class:IPAElementPrivate method to return the feature set for theIPAElement.- Specified by:
- _getFeatureSetin class- IPAElement
- Returns:
- the feature set for the implementing type.
 
- 
getTextDescription copied from class:IPAElementGet the text for this phone- Specified by:
- getTextin class- IPAElement
- Returns:
- the phone string
 
 
-