def pinyin(char, variant='<STR_LIT>', sep='<STR_LIT:U+0020>', out='<STR_LIT>'):
if len(char) > <NUM_LIT:1>:<EOL><INDENT>return sep.join([pinyin(c, variant=variant, sep=sep, out=out) for c in char])<EOL><DEDENT>if not is_chinese(char):<EOL><INDENT>return char<EOL><DEDENT>if char in _cd.GBK: <EOL><INDENT>char = gbk2big5(char)<EOL><DEDENT>out_char = _cd.UNIHAN.get(char, {variant: '<STR_LIT>'.format(char)}).get(variant, '<STR_LIT>'.format(char))<EOL>if out != '<STR_LIT>':<EOL><INDENT>out_char = '<STR_LIT>'.join([tone_converter.get(x, x) for x in out_char])    <EOL><DEDENT>return out_char<EOL>
Retrieve Pinyin of a character.