def accented_syllable_to_numbered(s):
if s[<NUM_LIT:0>] == '<STR_LIT>':<EOL><INDENT>lowercase_syllable, case_memory = _lower_case(s[<NUM_LIT:1>:])<EOL>lowercase_syllable = '<STR_LIT>' + lowercase_syllable<EOL><DEDENT>else:<EOL><INDENT>lowercase_syllable, case_memory = _lower_case(s)<EOL><DEDENT>numbered_syllable, tone = _parse_accented_syllable(lowercase_syllable)<EOL>return _restore_case(numbered_syllable, case_memory) + tone<EOL>
Convert accented Pinyin syllable *s* to a numbered Pinyin syllable.