We'd like to import content from files, compute on it, and then download it to new files. We will test our ideas with Robert Sterbal's data. New with version 0.1.13
pages/testing-file-mech
stop
about above after again against because been before being below between both does doing down during each from further have having here hers herself himself into itself just more most myself once only other ours ourselves over same should some such than that their theirs them themselves then there these they this those through under until very were what when where which while whom will with your yours yourself yourselves
.
Here we ask for two letter group identifiers instead of the default one. This will make smaller groups and likely many more than 26.
CLICK SOURCE assets FILE .tsv KWIC 3 PREVIEW items
We specialize the indented lines following KWIC to specify long and wordy parameters. In this case the markup that will be used to link to related content.
CLICK SOURCE assets FILE .tsv CLICK KWIC 2 $W PREVIEW items CLICK KWIC 1 $K PREVIEW items CLICK KWIC 2 $K PREVIEW items
We've used this application specific block to explore more exotic parameterization. Some things can go wrong.
No .tsv file as input
KWIC
Indented lines incomplete as link substitutions.
SOURCE assets FILE .tsv KWIC <a href=http://example.com>
.
We cleaned up the original file with a regular expression to make a tab-separated file with the data we understand.
curl -s http://ward.dojo.fed.wiki/assets/pages/testing-file-mech/KWIC-list+axe-files.txt | perl -ne 'print "$1\t$2\n" if /^(Ep\. *\d+).*?([A-Z].*)$/' >KWIC-list-axe-files.tsv
We construct a tsv file from the Dojo Practice Yearbooks.
for i in 0 1 2 3 4; do curl -s http://ward.dojo.fed.wiki/dojo-practices-202$i.json | jq -r '.story[]|select(.type == "paragraph")|.text' ; done > dojo-practice-yearbooks.tsv