From 5b5a3fe23541666a3c21e3ad2099c5380d0e16fd Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 25 Dec 2016 01:20:59 -0500 Subject: [PATCH] [fix] adding Taiwan, Hong Kong, and Macao to the CJK patterns since language affects the order --- scripts/geodata/addresses/components.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index be3d6fde..cfc3f830 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -57,6 +57,9 @@ PARSER_DEFAULT_CONFIG = os.path.join(this_dir, os.pardir, os.pardir, os.pardir, CHINA = 'cn' JAPAN = 'jp' KOREA = 'kr' +TAIWAN = 'tw' +HONG_KONG = 'hk' +MACAO = 'mo' JAPANESE_ROMAJI = 'ja_rm' ENGLISH = 'en' @@ -66,7 +69,7 @@ CHINESE = 'zh' KOREAN = 'ko' CJK_LANGUAGES = set([CHINESE, JAPANESE, KOREAN]) -CJK_COUNTRIES = set([CHINA, JAPAN, KOREA]) +CJK_COUNTRIES = set([CHINA, JAPAN, KOREA, TAIWAN, HONG_KONG, MACAO]) class AddressComponents(object):