published: bash ad-length.sh script.txt 150 30 run: bash ../ad-length.sh script.txt 150 30 exit=0 edge: test file: the 67-word read with a written URL and code; the test file output: words: 67|predicted length at 150 words a minute: 26.8 s|words that fit 30 s at 150 words a minute: 75|fits: 8 words of room|check these tokens (a URL, code or number counts as 1 word but is longer to say; write them as you will say them): USB lanterndesk.example/show LANTERN20.| published: bash ad-length.sh script.txt 150 30 run: bash ../ad-length.sh nope.txt 150 30 exit=2 edge: missing file output: file not found: nope.txt| published: bash ad-length.sh script.txt 150 30 run: bash ../ad-length.sh empty.txt 150 30 exit=2 edge: empty file output: the script has no words: empty.txt| published: bash ad-length.sh script.txt 150 30 run: bash ../ad-length.sh crlf.txt 150 30 exit=0 edge: Windows line breaks output: words: 67|predicted length at 150 words a minute: 26.8 s|words that fit 30 s at 150 words a minute: 75|fits: 8 words of room|check these tokens (a URL, code or number counts as 1 word but is longer to say; write them as you will say them): USB lanterndesk.example/show LANTERN20.| published: bash ad-length.sh script.txt 150 30 run: bash ../ad-length.sh nonascii.txt 150 30 exit=0 edge: non-ASCII text output: words: 10|predicted length at 150 words a minute: 4.0 s|words that fit 30 s at 150 words a minute: 75|fits: 65 words of room|check these tokens (a URL, code or number counts as 1 word but is longer to say; write them as you will say them): lanterndesk.example/über| published: bash ad-length.sh script.txt 150 30 run: bash ../ad-length.sh script.txt 40 30 exit=2 edge: pace out of range (40) output: words per minute must be a whole number from 60 to 300| published: bash ad-length.sh script.txt 150 30 run: bash ../ad-length.sh ../texts/A.txt 127 15 exit=0 edge: plain 32-word script with no URL against a 15 s slot at 127 wpm output: words: 32|predicted length at 127 words a minute: 15.1 s|words that fit 15 s at 127 words a minute: 31|too long: 1 words over|check these tokens (a URL, code or number counts as 1 word but is longer to say; write them as you will say them): USB| published: bash ad-length.sh script.txt 150 30 run: bash ../ad-length.sh script.txt exit=0 edge: no extra arguments: defaults 150 wpm and 30 s output: words: 67|predicted length at 150 words a minute: 26.8 s|words that fit 30 s at 150 words a minute: 75|fits: 8 words of room|check these tokens (a URL, code or number counts as 1 word but is longer to say; write them as you will say them): USB lanterndesk.example/show LANTERN20.| published: bash ad-length.sh script.txt 150 30 --speak run: bash ../ad-length.sh script.txt 150 30 --speak exit=0 edge: with --speak on the Mac (say and afinfo present) output: words: 67|predicted length at 150 words a minute: 26.8 s|words that fit 30 s at 150 words a minute: 75|fits: 8 words of room|check these tokens (a URL, code or number counts as 1 word but is longer to say; write them as you will say them): USB lanterndesk.example/show LANTERN20.|measured with the macOS voice at its default rate: 23.9 s (one synthetic voice, not your pace)|