From: Mischa POSLAWSKY Date: Mon, 27 May 2019 20:54:43 +0000 (+0200) Subject: browser: distinguish supported features with annotations X-Git-Tag: v1.12~32 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/795859dd991bf96637a5cdf3e46714e618c43881 browser: distinguish supported features with annotations Assume notes indicate minor problems worthy of an less-than-perfect mark (level 4 (instead) of 5, visually close but distinguishable at a glance). In some cases the note describes improvements and such, but these are less frequent, cannot be detected, and still benefit from different styling. --- diff --git a/browser.plp b/browser.plp index a3fa063..80369d9 100644 --- a/browser.plp +++ b/browser.plp @@ -36,11 +36,14 @@ my %CSTATS = ( 'p d' => 'l2', 'a d' => 'l2', 'y' => 'l5', + 'y #' => 'l4', 'y x' => 'l5 ex', + 'y x #' => 'l4 ex', 'a' => 'l3', 'a x' => 'l3 ex', 'p' => 'l2', 'u' => 'l0', + 'u d' => 'l2', ); my %DSTATS = ( u => 'unknown', @@ -416,6 +419,7 @@ sub saybrowsercols { )); $title .= "\n$_" for notestotitle(@notes); + $prev .= ' #' if @notes and $prev =~ /^y/; printf('%s', join(' ', X => $CSTATS{$prev}, @@ -477,6 +481,7 @@ sub showversions {
supported + annotated partial optional missing