def main(argv):
    chars = []
    for arg in argv[1:]:
        if '-' in arg:
            hyphen_index = arg.index('-')
            code1 = char_rep_to_code(arg[:hyphen_index])
            code2 = char_rep_to_code(arg[hyphen_index+1:])
            chars += range(code1, code2+1)
        else:
            chars.append(char_rep_to_code(arg))
    chars = u' '.join([unichr(code) for code in chars])
    print chars.encode('UTF-8')
Outputs a space-separated list of characters based on input ranges.
dataset/ETHPy150Open googlei18n/nototools/nototools/generate_sample_text.py/main