mktables: Use control names under -annotate
authorKarl Williamson <public@khwilliamson.com>
Fri, 8 Jun 2012 03:33:10 +0000 (21:33 -0600)
committerKarl Williamson <public@khwilliamson.com>
Fri, 8 Jun 2012 16:39:22 +0000 (10:39 -0600)
Now that all the control characters have names, use them instead of the
generic, "Control", but retain that as a fall back just in case.

lib/unicore/mktables

index 796e14c..8e30f94 100644 (file)
@@ -1556,10 +1556,9 @@ sub populate_char_info ($) {
                                                     containing_range($i)->end;
         }
         elsif ($gc-> table('Control')->contains($i)) {
-            $viacode[$i] = 'Control';
+            $viacode[$i] = property_ref('Name_Alias')->value_of($i) || 'Control';
             $annotate_char_type[$i] = $CONTROL_TYPE;
             $printable[$i] = 0;
-            $end = 0x81 if $i == 0x80;  # Hard-code this one known case
         }
         elsif ($gc-> table('Unassigned')->contains($i)) {
             $annotate_char_type[$i] = $UNASSIGNED_TYPE;