published: python3 alt-length-check.py alt.txt exit=0 edge: the length controls (500/501, 1000/1001, 2000/2001 plain, and 999 code points with 5 flags = 1009 UTF-16) exit=1 edge: Windows line breaks (CRLF) and a decomposed accent (NFD) exit=0 edge: one run-on sentence over 120 characters (fits every limit, but the main point is not up front) exit=1 edge: blank lines between alt texts (rows show file line numbers 1 and 4) exit=0 edge: first sentence of exactly 119 and 120 characters (120 is not under 120, so it is flagged) exit=1 edge: openers with Dr., a period inside quotes, a CJK full stop and an ellipsis exit=1 edge: openers with U.S., a.m./p.m., etc. and a web address (a word with a dot inside does not end the sentence, so openers that end in etc. or koldflux.com. run on; Blvd., not in the list, ends the sentence early and a long opener passes) exit=1 edge: styled fancy-text bold letters (each is 2 UTF-16 units, 1 code point) exit=0 edge: an empty file exit=2 edge: a missing file exit=2 edge: a file saved as Latin-1, not UTF-8 exit=2 edge: no file given (prints the usage) exit=2