From a2104773180458a9184466e32075f470f371207c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 24 Oct 2021 09:47:25 +0200 Subject: report: Add triad analysis Create and add a new plot that should indicate how difficult typing common triads is. --- gen.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gen.sh') diff --git a/gen.sh b/gen.sh index fb2cf8a..cde2be4 100755 --- a/gen.sh +++ b/gen.sh @@ -102,6 +102,12 @@ rule analyze-corpusstats rule wordlist command = lulua-analyze -l ar-lulua latinime < \$in > \$out +rule analyze-triadeffortdata + command = lulua-analyze -l \$layout triadeffortdata < \$in > \$out + +rule analyze-triadeffortplot + command = cat \$in | lulua-analyze -l ar-lulua triadeffortplot > \$out + rule report command = lulua-report -c \$corpus -l \$layoutstats > \$out @@ -218,6 +224,9 @@ build \$reportdir/${l}.svg: render-svg || \$reportdir build \$tempdir/${l}-heat.yaml: analyze-heat \$statsdir/${l}/all.pickle || \$tempdir layout = ${l} +build \$tempdir/${l}-triadeffort.pickle: analyze-triadeffortdata \$statsdir/${l}/all.pickle || \$tempdir + layout = ${l} + build \$reportdir/${l}-heat.svg: render-svg-heat \$tempdir/${l}-heat.yaml || \$reportdir layout = ${l} @@ -255,6 +264,12 @@ EOF metafiles+=" \$tempdir/metadata-$c.yaml" done +echo -n "build \$reportdir/triadeffort.json: analyze-triadeffortplot " +for l in $layouts; do + echo -n "\$tempdir/${l}-triadeffort.pickle " +done +echo "|| \$reportdir" + # dependencies are not properly modeled, always rebuild cat <