From 2d098fdab6146328c2a08e392877beacf81c4401 Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 4 Jun 2015 11:24:13 -0400 Subject: [PATCH] [numex] Adding ordinal_indicator rule type for CJK ordinals --- scripts/geodata/i18n/numex.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/geodata/i18n/numex.py b/scripts/geodata/i18n/numex.py index 4f55c4e1..61e233d9 100644 --- a/scripts/geodata/i18n/numex.py +++ b/scripts/geodata/i18n/numex.py @@ -57,10 +57,12 @@ right_context_map = { CARDINAL = 'NUMEX_CARDINAL_RULE' ORDINAL = 'NUMEX_ORDINAL_RULE' +ORDINAL_INDICATOR = 'NUMEX_ORDINAL_INDICATOR_RULE' rule_type_map = { 'cardinal': CARDINAL, - 'ordinal': ORDINAL + 'ordinal': ORDINAL, + 'ordinal_indicator': ORDINAL_INDICATOR, } numex_rule_template = u'{{"{key}", (numex_rule_t){{{left_context_type}, {right_context_type}, {rule_type}, {gender}, {category}, {radix}, {value}LL}}}}'