diff --git a/test/shaping/hb-unicode-decode b/test/shaping/hb-unicode-decode index df3d23960..e880f490c 100755 --- a/test/shaping/hb-unicode-decode +++ b/test/shaping/hb-unicode-decode @@ -8,7 +8,7 @@ def decode (s): if __name__ == '__main__': if len (sys.argv) == 1 or ('--stdin' in sys.argv and len (sys.argv) != 2): - print "Usage:\n %s [UNICODE_STRING]...\nor:\n %s --stdin" % (sys.argv[0], sys.argv[0]) + print "Usage:\n %s UNICODE_STRING...\nor:\n %s --stdin" % (sys.argv[0], sys.argv[0]) sys.exit (1) if '--stdin' in sys.argv: diff --git a/test/shaping/hb-unicode-prettyname b/test/shaping/hb-unicode-prettyname index 27d2dee9b..1447fca02 100755 --- a/test/shaping/hb-unicode-prettyname +++ b/test/shaping/hb-unicode-prettyname @@ -34,15 +34,14 @@ def pretty_name (x): def pretty_names (s): - s = re.sub (r"[<+>\\]", "", s) - s = re.sub (r"[uU]", " ", s) + s = re.sub (r"[<+>\\uU]", " ", s) s = [unichr (int (x, 16)) for x in re.split ('[, \n]', s) if len (x)] return ' + '.join (pretty_name (x) for x in s) if __name__ == '__main__': if len (sys.argv) == 1 or ('--stdin' in sys.argv and len (sys.argv) != 2): - print "Usage:\n %s [UNICODE_CODEPOINTS]...\nor:\n %s --stdin" % (sys.argv[0], sys.argv[0]) + print "Usage:\n %s UNICODE_CODEPOINTS...\nor:\n %s --stdin" % (sys.argv[0], sys.argv[0]) sys.exit (1) if '--stdin' in sys.argv: