Skip to content

Commit 718ac8a

Browse files
committed
mktables: Fix --annotate option output
Special code suppressed the expanded output of some ranges, where it would be clear from the range itself what was meant. However, for many output tables, that range output was changed, so the desired information is missing. For these tables, don't suppress the expanded output.
1 parent ba403c7 commit 718ac8a

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

charclass_invlists.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -99537,7 +99537,7 @@ static const UV XPosixXDigit_invlist[] = { /* for EBCDIC POSIX-BC */
9953799537
* 1a0687fb9c6c4567e853913549df0944fe40821279a3e9cdaa6ab8679bc286fd lib/unicore/extracted/DLineBreak.txt
9953899538
* 40bcfed3ca727c19e1331f6c33806231d5f7eeeabd2e6a9e06a3740c85d0c250 lib/unicore/extracted/DNumType.txt
9953999539
* a18d502bad39d527ac5586d7bc93e29f565859e3bcc24ada627eff606d6f5fed lib/unicore/extracted/DNumValues.txt
99540-
* d5895407f73f1bcb0d7ad39e955c0e88a9145e401e868572849eeb134e669269 lib/unicore/mktables
99540+
* db70131a57e33d508d06ac16a9637b368182ec6b88085c43d83cdf9ccb3590fc lib/unicore/mktables
9954199541
* 462c9aaa608fb2014cd9649af1c5c009485c60b9c8b15b89401fdc10cf6161c6 lib/unicore/version
9954299542
* c6884f4d629f04d1316f3476cb1050b6a1b98ca30c903262955d4eae337c6b1e regen/charset_translations.pl
9954399543
* 8a097f8f726bb1619af2f27f149ab87e60a1602f790147e3a561358be16abd27 regen/mk_invlists.pl

lib/unicore/mktables

+10-1
Original file line numberDiff line numberDiff line change
@@ -6379,7 +6379,15 @@ END
63796379
$range_name = "Hangul Syllable";
63806380
}
63816381

6382-
if ($i != $start || $range_end < $end) {
6382+
# If the annotation would just repeat what's
6383+
# already being output as the range, skip it.
6384+
# (When an inversion list is being written, it
6385+
# isn't a repeat, as that always is in
6386+
# decimal)
6387+
if ( $write_as_invlist
6388+
|| $i != $start
6389+
|| $range_end < $end)
6390+
{
63836391
if ($range_end < $MAX_WORKING_CODEPOINT)
63846392
{
63856393
$annotation = sprintf "%04X..%04X",
@@ -6393,6 +6401,7 @@ END
63936401
else { # Indent if not displaying code points
63946402
$annotation = " " x 4;
63956403
}
6404+
63966405
if ($range_name) {
63976406
$annotation .= " $age[$i]" if $age[$i];
63986407
$annotation .= " $range_name";

regcharclass.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2514,7 +2514,7 @@
25142514
* 1a0687fb9c6c4567e853913549df0944fe40821279a3e9cdaa6ab8679bc286fd lib/unicore/extracted/DLineBreak.txt
25152515
* 40bcfed3ca727c19e1331f6c33806231d5f7eeeabd2e6a9e06a3740c85d0c250 lib/unicore/extracted/DNumType.txt
25162516
* a18d502bad39d527ac5586d7bc93e29f565859e3bcc24ada627eff606d6f5fed lib/unicore/extracted/DNumValues.txt
2517-
* d5895407f73f1bcb0d7ad39e955c0e88a9145e401e868572849eeb134e669269 lib/unicore/mktables
2517+
* db70131a57e33d508d06ac16a9637b368182ec6b88085c43d83cdf9ccb3590fc lib/unicore/mktables
25182518
* 462c9aaa608fb2014cd9649af1c5c009485c60b9c8b15b89401fdc10cf6161c6 lib/unicore/version
25192519
* c6884f4d629f04d1316f3476cb1050b6a1b98ca30c903262955d4eae337c6b1e regen/charset_translations.pl
25202520
* d9c04ac46bdd81bb3e26519f2b8eb6242cb12337205add3f7cf092b0c58dccc4 regen/regcharclass.pl

0 commit comments

Comments
 (0)