cldr2def: Slim down ctype src files
commit6e46cba7c2068ca21f8d50de601d72784bbecb9b
authorJohn Marino <draco@marino.st>
Sat, 15 Aug 2015 13:04:22 +0000 (15 15:04 +0200)
committerJohn Marino <draco@marino.st>
Sat, 15 Aug 2015 13:28:23 +0000 (15 15:28 +0200)
tree73672ce7988262db545222deb52a14c18b11ec11
parent97055fc243c274ccb7531c2ad47484df211bed6a
cldr2def: Slim down ctype src files

I originally modified the tool to use "ranges" to define the CTYPE,
e.g. "<a>;...;<z>" rather than "<a>;<b>;<c> ... <z>".  This worked
great on UTF-8 but converting to other encodings is not supported
because part of the range may not exist, or the upper boundary may
come before the lower boundary in the target encoding.  Thus I had
to remove that work, but I was able to retain the removal of the now
redundant "print" section.

I confirmed that the output without "print" section was identical to
before, and then I added back "print" section with a single element:
NO-BREAK_SPACE. This character is used in quite a few monetary
defintions, but it was never mapped to CTYPE, which I believe is a
mistake.  NO-BREAK_SPACE is also defined as a blank, which is considered
a space as well by localedef tool (so there's no need to also define a
"space" section").

The net change is multibyte encodings now have non-breaking spaces
1) recognized and 2) defined as printable.
tools/tools/locale/tools/cldr2def.pl [changed mode: 0755->0644]