diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2015-02-23 11:22:37 -0300 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2015-02-23 11:35:24 -0300 |
commit | 7b1ec6a05ceac76efca999ebab515afc4caaa5e9 (patch) | |
tree | 5be9e36cc0809341d4d9139a2b8cd904fa86a1e4 /localedata | |
parent | d49499c128f38e77f1b424ea4fabea0014dd95c1 (diff) | |
download | glibc-7b1ec6a05ceac76efca999ebab515afc4caaa5e9.tar.gz glibc-7b1ec6a05ceac76efca999ebab515afc4caaa5e9.tar.xz glibc-7b1ec6a05ceac76efca999ebab515afc4caaa5e9.zip |
Amendments to Unicode 7 update.
for ChangeLog * include/stdc-predef.h (__STDC_ISO_10646__): Update to 201304L, for Unicode 7. for localedata/ChangeLog * unicode-gen/ctype_compatibility.py: Use date ranges in copyright notice. * unicode-gen/ctype_compatibility_test_cases.py: Likewise. * unicode-gen/gen_unicode_ctype.py: Likewise. * unicode-gen/utf8_compatibility.py: Likewise. * unicode-gen/utf8_gen.py: Likewise. Use upper case for global variables, use tuples for global constant arrays. From Mike FABIAN. Suggested by Mike Frysinger <vapier@gentoo.org>.
Diffstat (limited to 'localedata')
-rw-r--r-- | localedata/ChangeLog | 11 | ||||
-rwxr-xr-x | localedata/unicode-gen/ctype_compatibility.py | 2 | ||||
-rw-r--r-- | localedata/unicode-gen/ctype_compatibility_test_cases.py | 2 | ||||
-rwxr-xr-x | localedata/unicode-gen/gen_unicode_ctype.py | 2 | ||||
-rwxr-xr-x | localedata/unicode-gen/utf8_compatibility.py | 2 | ||||
-rwxr-xr-x | localedata/unicode-gen/utf8_gen.py | 20 |
6 files changed, 25 insertions, 14 deletions
diff --git a/localedata/ChangeLog b/localedata/ChangeLog index 58063e0bbd..ceb373f1be 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,3 +1,14 @@ +2015-02-23 Alexandre Oliva <aoliva@redhat.com> + + * unicode-gen/ctype_compatibility.py: Use date ranges in + copyright notice. + * unicode-gen/ctype_compatibility_test_cases.py: Likewise. + * unicode-gen/gen_unicode_ctype.py: Likewise. + * unicode-gen/utf8_compatibility.py: Likewise. + * unicode-gen/utf8_gen.py: Likewise. Use upper case for + global variables, use tuples for global constant arrays. From + Mike FABIAN. Suggested by Mike Frysinger <vapier@gentoo.org>. + 2015-02-20 Alexandre Oliva <aoliva@redhat.com> [BZ #17588] diff --git a/localedata/unicode-gen/ctype_compatibility.py b/localedata/unicode-gen/ctype_compatibility.py index 19e9ee5176..0d67f29186 100755 --- a/localedata/unicode-gen/ctype_compatibility.py +++ b/localedata/unicode-gen/ctype_compatibility.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- -# Copyright (C) 2014, 2015 Free Software Foundation, Inc. +# Copyright (C) 2014-2015 Free Software Foundation, Inc. # This file is part of the GNU C Library. # # The GNU C Library is free software; you can redistribute it and/or diff --git a/localedata/unicode-gen/ctype_compatibility_test_cases.py b/localedata/unicode-gen/ctype_compatibility_test_cases.py index ab7f6ddc87..34e6de4f40 100644 --- a/localedata/unicode-gen/ctype_compatibility_test_cases.py +++ b/localedata/unicode-gen/ctype_compatibility_test_cases.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2014, 2015 Free Software Foundation, Inc. +# Copyright (C) 2014-2015 Free Software Foundation, Inc. # This file is part of the GNU C Library. # # The GNU C Library is free software; you can redistribute it and/or diff --git a/localedata/unicode-gen/gen_unicode_ctype.py b/localedata/unicode-gen/gen_unicode_ctype.py index 559af7957a..0c74f2a849 100755 --- a/localedata/unicode-gen/gen_unicode_ctype.py +++ b/localedata/unicode-gen/gen_unicode_ctype.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 # # Generate a Unicode conforming LC_CTYPE category from a UnicodeData file. -# Copyright (C) 2014, 2015 Free Software Foundation, Inc. +# Copyright (C) 2014-2015 Free Software Foundation, Inc. # This file is part of the GNU C Library. # Based on gen-unicode-ctype.c by Bruno Haible <haible@clisp.cons.org>, 2000. # diff --git a/localedata/unicode-gen/utf8_compatibility.py b/localedata/unicode-gen/utf8_compatibility.py index e11327ba82..b84a1eb3de 100755 --- a/localedata/unicode-gen/utf8_compatibility.py +++ b/localedata/unicode-gen/utf8_compatibility.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- -# Copyright (C) 2014, 2015 Free Software Foundation, Inc. +# Copyright (C) 2014-2015 Free Software Foundation, Inc. # This file is part of the GNU C Library. # # The GNU C Library is free software; you can redistribute it and/or diff --git a/localedata/unicode-gen/utf8_gen.py b/localedata/unicode-gen/utf8_gen.py index 670a628d2e..f1b88f5b29 100755 --- a/localedata/unicode-gen/utf8_gen.py +++ b/localedata/unicode-gen/utf8_gen.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- -# Copyright (C) 2014, 2015 Free Software Foundation, Inc. +# Copyright (C) 2014-2015 Free Software Foundation, Inc. # This file is part of the GNU C Library. # # The GNU C Library is free software; you can redistribute it and/or @@ -33,21 +33,21 @@ import re # Auxiliary tables for Hangul syllable names, see the Unicode 3.0 book, # sections 3.11 and 4.4. -jamo_initial_short_name = [ +JAMO_INITIAL_SHORT_NAME = ( 'G', 'GG', 'N', 'D', 'DD', 'R', 'M', 'B', 'BB', 'S', 'SS', '', 'J', 'JJ', 'C', 'K', 'T', 'P', 'H' -] +) -jamo_medial_short_name = [ +JAMO_MEDIAL_SHORT_NAME = ( 'A', 'AE', 'YA', 'YAE', 'EO', 'E', 'YEO', 'YE', 'O', 'WA', 'WAE', 'OE', 'YO', 'U', 'WEO', 'WE', 'WI', 'YU', 'EU', 'YI', 'I' -] +) -jamo_final_short_name = [ +JAMO_FINAL_SHORT_NAME = ( '', 'G', 'GG', 'GS', 'N', 'NI', 'NH', 'D', 'L', 'LG', 'LM', 'LB', 'LS', 'LT', 'LP', 'LH', 'M', 'B', 'BS', 'S', 'SS', 'NG', 'J', 'C', 'K', 'T', 'P', 'H' -] +) def ucs_symbol(code_point): '''Return the UCS symbol string for a Unicode character.''' @@ -74,9 +74,9 @@ def process_range(start, end, outfile, name): index2, index3 = divmod(i - 0xaC00, 28) index1, index2 = divmod(index2, 21) hangul_syllable_name = 'HANGUL SYLLABLE ' \ - + jamo_initial_short_name[index1] \ - + jamo_medial_short_name[index2] \ - + jamo_final_short_name[index3] + + JAMO_INITIAL_SHORT_NAME[index1] \ + + JAMO_MEDIAL_SHORT_NAME[index2] \ + + JAMO_FINAL_SHORT_NAME[index3] outfile.write('{:<11s} {:<12s} {:s}\n'.format( ucs_symbol(i), convert_to_hex(i), hangul_syllable_name)) |