default='i18n.new', help='''The file which shall contain the generated LC_CTYPE category, default: %(default)s. If the original glibc/localedata/locales/i18n has been given as an option, all data from the original file except the newly generated LC_CTYPE character classes and the date stamp in LC_IDENTIFICATION will be copied unchanged into the output file. ''') PARSER.add_argument('--unicode_version', nargs='?', required=True, type=str, help='The Unicode version of the input files used.') PARSER.add_argument('--turkish', action='store_true', help='Use Turkish case conversions.') ARGS = PARSER.parse_args() unicode_utils.fill_attributes(ARGS.unicode_data_file) unicode_utils.fill_derived_core_properties( ARGS.derived_core_properties_file) unicode_utils.verifications() HEAD = TAIL = '' if ARGS.input_file: (HEAD, TAIL) = read_input_file(ARGS.input_file) with open(ARGS.output_file, mode='w') as I18N_FILE: output_head(I18N_FILE, ARGS.unicode_version, head=HEAD) output_tables(I18N_FILE, ARGS.unicode_version, ARGS.turkish) output_tail(I18N_FILE, tail=TAIL)
glibc/localedata/locales/i18n has been given as an option, all data from the original file except the newly generated LC_CTYPE character classes and the date stamp in LC_IDENTIFICATION will be copied unchanged into the output file. ''') PARSER.add_argument( '--unicode_version', nargs='?', required=True, type=str, help='The Unicode version of the input files used.') PARSER.add_argument( '--turkish', action='store_true', help='Use Turkish case conversions.') ARGS = PARSER.parse_args() unicode_utils.fill_attributes( ARGS.unicode_data_file) unicode_utils.fill_derived_core_properties( ARGS.derived_core_properties_file) unicode_utils.verifications() HEAD = TAIL = '' if ARGS.input_file: (HEAD, TAIL) = read_input_file(ARGS.input_file) with open(ARGS.output_file, mode='w') as I18N_FILE: output_head(I18N_FILE, ARGS.unicode_version, head=HEAD) output_tables(I18N_FILE, ARGS.unicode_version, ARGS.turkish) output_tail(I18N_FILE, tail=TAIL)