Annotation of researchv8dc/cmd/wwb/punctrules.sh, revision 1.1.1.1

1.1       root        1: # NOTICE-NOT TO BE DISCLOSED OUTSIDE BELL SYS EXCEPT UNDER WRITTEN AGRMT
                      2: for i in $*
                      3:        do case $i in
                      4:                -ver) echo $0 version 2.0;exit;;
                      5:                -flags) echo $0 \[-ver\] \[-flags\];exit;;
                      6:                -*) echo unknown punctrules flag $i; exit;;
                      7:                *) echo punctrules takes no files;shift;continue;;
                      8:        esac
                      9: done
                     10: cat << !
                     11:       1.  Periods and commas _a_l_w_a_y_s go inside double quote marks.
                     12:           EXAMPLE: "I want to go to the fair," he said.
                     13: 
                     14:           The only allowable exception is when a single character
                     15:           is in quotes, e.g., use a tilde "~".
                     16: 
                     17:       2.  Semicolons and colons _a_l_w_a_y_s go outside of double quotes.
                     18:           EXAMPLE: He knew what was meant by "hardcopy"; he didn't
                     19:           know about "software."
                     20: 
                     21:       3.  Question marks and exclamation marks go inside or outside of
                     22:           double quote marks depending on the sentence sense.
                     23:           EXAMPLE:  "Where are you going?" he asked.
                     24:                      What is meant by the word "firmware"?
                     25: 
                     26:       4.  When a quote ends with a question mark that ends a clause
                     27:           and a comma would normally appear at the end of the clause,
                     28:           it is standard to leave the comma out. (The first example
                     29:           sentence under item 3 illustrates this.)
                     30: 
                     31:       5.  When using single quote marks instead of double quote marks,
                     32:           the same rules apply. (Single quotes are considered
                     33:           incorrect, except inside of a quotation enclosed in double
                     34:           quotes.)
                     35: 
                     36:       6.  When a sentence is enclosed in parentheses, the period goes
                     37:           inside the closing parenthesis.
                     38:           EXAMPLE: (This is a sentence.)
                     39: 
                     40:       7.  If the words inside parentheses do not constitute a sen-
                     41:           tence, but are at the end of the sentence, the period goes
                     42:           after the closing parenthesis.
                     43:           EXAMPLE: This is a sentence (but not this).
                     44: 
                     45:       8.  No commas, semicolons, or colons should appear before a left
                     46:           parenthesis.  If such punctuation is needed, it is placed
                     47:           after the phrase in parentheses.
                     48:           EXAMPLE: After eating salt (sodium chloride), he threw up.
                     49: 
                     50:       9.  Dashes never occur next to commas, semicolons, blank spaces,
                     51:           or parentheses.
                     52:           EXAMPLE: Before World War I--but not afterwards--Iceland was
                     53:           a part of Denmark.
                     54: !

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.