diff --git a/scripts/geodata/i18n/unicode_properties.py b/scripts/geodata/i18n/unicode_properties.py index 1ef7d3e0..afdefed5 100644 --- a/scripts/geodata/i18n/unicode_properties.py +++ b/scripts/geodata/i18n/unicode_properties.py @@ -32,6 +32,7 @@ from geodata.encoding import safe_encode, safe_decode from geodata.file_utils import ensure_dir, download_file from cldr_languages import * +from download_cldr import download_cldr from unicode_paths import UNICODE_DATA_DIR from word_breaks import script_regex, regex_char_range @@ -353,6 +354,9 @@ def main(out_dir): download_file(DERIVED_CORE_PROPS_URL, LOCAL_DERIVED_CORE_PROPS_FILE) download_file(WORD_BREAKS_URL, LOCAL_WORD_BREAKS_FILE) + if not os.path.exists(CLDR_SUPPLEMENTAL_DATA): + download_cldr() + chars = get_chars_by_script() all_scripts = build_master_scripts_list(chars) script_codes = get_script_codes(all_scripts)