+
+ for my $cp ($offset .. $offset+$pagerows-1) {
+ state $colpos;
+ my $block = Unicode::UCD::charblock($cp);
+ if ($block ne (state $sameblock = $block) and $block ne 'No_Block') {
+ print '<tbody>';
+ printf '<tr><th colspan=%d>%s', $pagecols+1, $block
+ unless $block eq 'No_Block';
+ say '';
+ $sameblock = $block;
+ $colpos = 0;
+ }
+
+ say sprintf '<tr><th>%X', $cp if $colpos++ % $pagecols == 0;
+