def _parse_ipa_syllable(unparsed_syllable):
ipa_tone = re.search('<STR_LIT>' % {'<STR_LIT>': _IPA_MARKS},<EOL>unparsed_syllable)<EOL>if not ipa_tone:<EOL><INDENT>syllable, tone = unparsed_syllable, '<STR_LIT:5>'<EOL><DEDENT>else:<EOL><INDENT>for tone_number, tone_mark in _IPA_TONES.items():<EOL><INDENT>if ipa_tone.group() == tone_mark:<EOL><INDENT>tone = tone_number<EOL>break<EOL><DEDENT><DEDENT>syllable = unparsed_syllable[<NUM_LIT:0>:ipa_tone.start()]<EOL><DEDENT>return syllable, tone<EOL>
Return the syllable and tone of an IPA syllable.