Skip to content

Commit e7730ad

Browse files
committed
mktables: Prepare to handle 15.1 \b{lb} Quote rules
Unicode 15.1 changes the rules for line breaking with regards to Quotation marks. This prepares for that.
1 parent ca2e9b7 commit e7730ad

File tree

6 files changed

+19
-5
lines changed

6 files changed

+19
-5
lines changed

charclass_invlists.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -436055,7 +436055,7 @@ static const U8 WB_table[23][23] = {
436055436055
* 3f4f32ed2a577344a508114527e721d7a8b633d32f38945d47fe0c743650c585 lib/unicore/extracted/DLineBreak.txt
436056436056
* 710abf2d581ac9c57f244c0834f9d9969d9781e0396adccd330eaae658ac7d6b lib/unicore/extracted/DNumType.txt
436057436057
* 6bd30f385f3baf3ab5d5308c111a81de87bea5f494ba0ba69e8ab45263b8c34d lib/unicore/extracted/DNumValues.txt
436058-
* 9582c6075d11a1f57b806d54b9dd17063bbc66f9b19c1439e656e4dc155b13af lib/unicore/mktables
436058+
* 273236becd6f795425739144aded86309011c3604d5b309d3952b55065bd7f3b lib/unicore/mktables
436059436059
* 55d90fdc3f902e5c0b16b3378f9eaa36e970a1c09723c33de7d47d0370044012 lib/unicore/version
436060436060
* 0a6b5ab33bb1026531f816efe81aea1a8ffcd34a27cbea37dd6a70a63d73c844 regen/charset_translations.pl
436061436061
* c7ff8e0d207d3538c7feb4a1a152b159e5e902d20293b303569ea8323e84633e regen/mk_PL_charclass.pl

lib/unicore/mktables

+14
Original file line numberDiff line numberDiff line change
@@ -15367,6 +15367,20 @@ END
1536715367
}
1536815368
}
1536915369
}
15370+
elsif ($v_version ge 15.1.0 && $value eq standardize('Quotation')) {
15371+
15372+
# Unicode 15.1 splits LB=QU initial quotes and final quotes, and
15373+
# regular quotes
15374+
for my $i ($range->start .. $range->end) {
15375+
my $gc_val = $gc->value_of($i);
15376+
if ($gc_val eq 'Pi') {
15377+
$perl_lb->replace_map($i, $i, "Initial_Quote");
15378+
}
15379+
elsif ($gc_val eq 'Pf') {
15380+
$perl_lb->replace_map($i, $i, "Final_Quote");
15381+
}
15382+
}
15383+
}
1537015384
}
1537115385

1537215386
# This property is a modification of the scx property

lib/unicore/uni_keywords.pl

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regcharclass.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regexp_constants.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
* 3f4f32ed2a577344a508114527e721d7a8b633d32f38945d47fe0c743650c585 lib/unicore/extracted/DLineBreak.txt
7979
* 710abf2d581ac9c57f244c0834f9d9969d9781e0396adccd330eaae658ac7d6b lib/unicore/extracted/DNumType.txt
8080
* 6bd30f385f3baf3ab5d5308c111a81de87bea5f494ba0ba69e8ab45263b8c34d lib/unicore/extracted/DNumValues.txt
81-
* 9582c6075d11a1f57b806d54b9dd17063bbc66f9b19c1439e656e4dc155b13af lib/unicore/mktables
81+
* 273236becd6f795425739144aded86309011c3604d5b309d3952b55065bd7f3b lib/unicore/mktables
8282
* 55d90fdc3f902e5c0b16b3378f9eaa36e970a1c09723c33de7d47d0370044012 lib/unicore/version
8383
* 0a6b5ab33bb1026531f816efe81aea1a8ffcd34a27cbea37dd6a70a63d73c844 regen/charset_translations.pl
8484
* c7ff8e0d207d3538c7feb4a1a152b159e5e902d20293b303569ea8323e84633e regen/mk_PL_charclass.pl

uni_keywords.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)