summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-06 15:00:24 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-06 15:00:24 (GMT)
commitd436c051630a4406971645c7b44d84f4f00a0ff8 (patch)
tree20d751f40c7f6b88cf09c974ce7edebe41405c50 /template
parent4fa166e301eb074fac378815d2641ef1dfcd5a18 (diff)
unicode_norm_gen.tmpl: expand kompatible_table
* template/unicode_norm_gen.tmpl: expand kompatible_table so that recursive expansion is not needed at runtime. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/unicode_norm_gen.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/template/unicode_norm_gen.tmpl b/template/unicode_norm_gen.tmpl
index 82498d0..2123643 100644
--- a/template/unicode_norm_gen.tmpl
+++ b/template/unicode_norm_gen.tmpl
@@ -138,6 +138,12 @@ decomposition_table.each do |key, value|
kompatible_table[key] = value if expanded
end
+while kompatible_table.any? {|key, value|
+ expanded = value.map {|v| kompatible_table[v] || v}.flatten
+ kompatible_table[key] = expanded unless value == expanded
+ }
+end
+
# generate normalization tables file
%># coding: us-ascii
%# >