From 6b3d434c315bf5600809dade9f1755f1f423b5e9 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 1 Jun 2015 17:13:57 -0400 Subject: [PATCH] [fix] removing unnecessary definition --- scripts/geodata/i18n/download_cldr.py | 3 --- scripts/geodata/i18n/word_breaks.py | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/geodata/i18n/download_cldr.py b/scripts/geodata/i18n/download_cldr.py index 9105061f..cce31058 100644 --- a/scripts/geodata/i18n/download_cldr.py +++ b/scripts/geodata/i18n/download_cldr.py @@ -11,9 +11,6 @@ sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir))) CLDR_URL = 'http://www.unicode.org/Public/cldr/latest/core.zip' -CLDR_DIR = os.path.join(this_dir, os.pardir, os.pardir, os.pardir, - 'data', 'unicode', 'cldr') - def download_cldr(temp_dir=None): if os.path.exists(CLDR_DIR): diff --git a/scripts/geodata/i18n/word_breaks.py b/scripts/geodata/i18n/word_breaks.py index d50134bd..f16189cf 100644 --- a/scripts/geodata/i18n/word_breaks.py +++ b/scripts/geodata/i18n/word_breaks.py @@ -46,6 +46,9 @@ ideographic_scripts = set([ def regex_char_range(match): r = match.split('..') + # Wide version + # return u'-'.join([('\u{}' if len(c) < 5 else '\U{}').format(c) for c in r]) + if len(r[0]) < 5 and len(r[-1]) < 5: return '-'.join(['\u{}'.format(c.lower()) for c in r]) else: