# Last edited on 2026-01-19 16:43:42 by stolfi # all: test all: do_note_095.sh do_note_095.sh ###################################################################### TEST_IN := st_unparsed/str-parags.ivt # TEST_IN := .test-in.ivt TEST_TEMP := .test-temp TEST_TOKS := .test-toks TEST_GAPS := .test-gaps TEST_PLOT := .test-plot.png test: count-commas ${TEST_COUNTS} ${TEST_GAPS} ${TEST_PLOT} clean: rm .test-* count-commas: ${TEST_IN} cat ${TEST_IN} \ | egrep -e '<[a-z0-9]+[.][0-9A-Z;]+>' \ | gawk '//{ print $$2 }' \ > ${TEST_TEMP} cat ${TEST_TEMP} \ | tr -c -d '.\055' \ > .dd 1>&2 cat ${TEST_TEMP} \ | tr -c -d ',' \ > .cm @printf " data lines: " 1>&2 @cat ${TEST_TEMP} | wc -l 1>&2 @printf " dots and dashes: " 1>&2 @cat .dd | wc -c 1>&2 @printf " commas: " 1>&2 @cat .cm | wc -c 1>&2 ${TEST_TOKS}: ${TEST_IN} words_from_ivt.py Makefile cat ${TEST_IN} \ | words_from_ivt.py \ -showParags \ -dubiousSpaces 0 \ > ${TEST_TOKS} # -showParags -showLines=1 \ # -omitInitial -omitMedial -omitFinal \ # -dubiousSpaces 50 \ # -dubiousSpaces 100 \ ${TEST_GAPS}: ${TEST_TOKS} count_qq_gaps.py Makefile cat ${TEST_TOKS} \ | count_qq_gaps.py \ > ${TEST_GAPS} ${TEST_PLOT}: ${TEST_GAPS} plot_qq_gap_histogram.sh Makefile plot_qq_gap_histogram.sh QE 0.8114 \ < ${TEST_GAPS} \ > ${TEST_PLOT}