use utf8;
sub disptap {
- map {
+ return map {
m/\A(-?)(\d)(\d)/;
- $1 . '\\' # escape dot
- . ('.̇' x ($2 < $3 ? $2 : $3)) # min($2,$3) without losing captures
- . ('.' x ($3 - $2))
- . (' ̇' x ($2 - $3))
- } @_
+ sprintf('<small style="line-height:2ex">%s</small> ',
+ #TODO: prepend $1
+ join "<br>\n", '•' x $2, '•' x $3,
+ );
+ } @_;
}
my %C = qw(red #EC1C24 blue #3953A3 yellow #F9EC31 black #231F20);