This contains my bachelors thesis and associated tex files, code snippets and maybe more. Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

170 lines
5.2 KiB

  1. checkbiw(1) - Checks your prose's conformance to the "BUGS in
  2. Writing" style guide
  3. Michael Hohmuth
  4. Synopsis
  5. ########
  6. checkbiw [ -hnvc ] [ -iad _ruleset ..._ ] _files ..._
  7. Description
  8. ###########
  9. The checkbiw tool finds and flags stylistic errors in English
  10. documents. Checkbiw comes with a number of style rule sets that were
  11. derived from Lyn Dupré's book ``BUGS in Writing---A Guide to Debugging
  12. your prose.''
  13. To adapt checkbiw to your needs, you can remove and add standard or
  14. custom rule sets.
  15. Checkbiw outputs error information in a format typical for compilers,
  16. allowing users of editors like Emacs to easily navigate to the error
  17. location. Output is written to stdout.
  18. Checkbiw reads input from the files supplied on the command line. A
  19. file name of '-' denotes stdin.
  20. Options
  21. =======
  22. Checkbiw reads options from $HOME/.checkbiwrc, from ./.checkbiwrc, and
  23. from the command line, in that order. It processes options from left
  24. to right; later options can undo the effect of earlier ones.
  25. :-n: Clear current list of rule sets. Also removes all standard rule
  26. sets
  27. :-v: Print the list of enabled rule sets after all option processing.
  28. :-h: Prints a short help texts and exits.
  29. :-c: Use colors for highlighting the output.
  30. :-a _ruleset_: Add rule set at the end of the set list. Before adding
  31. the set, removes set of same type from the list (see next paragraph)
  32. :-i _ruleset_: Inserts rule set at the beginning of the list. Before adding
  33. the set, removes set of same type from the list (see next
  34. paragraph)
  35. :-d _rulesettype_: Deletes rule set of given type from the rule-set
  36. list (see next paragraph)
  37. The -a, -i, and -d options remove rule sets according to their
  38. ``type,'' which is equivalent to the name of the rule set up to the
  39. first '-' character. For example:
  40. * Option "-d lang" removes any of the rule sets "lang", "lang-american",
  41. "lang-whatever"
  42. * Option "-a emdash-space" first removes "emdash-nospace"
  43. Standard rule sets
  44. ==================
  45. Checkbiw comes with the following standard rule sets. Rule sets
  46. enabled by default are shown with an asterisk (*).
  47. :* biw: The BUGS in Writing rule set; contains common style errors.
  48. :* lang-american: The American-English rule set; contains British
  49. English misspellings
  50. :* cite-space: Checks for space characters before citations indicated
  51. using 'cite' or square brackets []
  52. :* emdash-nospace: Enforces that no space characters are set before or
  53. after an em-dash '---'
  54. :emdash-space: Enforces that space characters _are set_ before or
  55. after an em-dash '---'.
  56. :passive: Checks for passive-voice construction. This rule set is
  57. disabled by default because it produces a significant number of
  58. false positives, but it can be extremely useful.
  59. Writing custom rule sets
  60. ========================
  61. You can write your own rule-set files and add them using the '-i' and
  62. '-a' options. Custom rule sets are especially useful for removing
  63. false positives from checkbiw's output; I give an example for this use
  64. at the end of this section.
  65. Rule sets are defined in an extended diction(1) format. Rule-set
  66. files contain one rule per line. Each line has two parts separated by
  67. a tabulator character: The first part is the ``bad phrase,'' the
  68. second is the advice.
  69. If the bad phrase starts with a space character, the rest of the
  70. phrase matches only after nonalphabetic characters (i.e., after
  71. whitespace and punctuation). If the bad phrase _does not_ end with a
  72. tilde character '~', the phrase matches only before nonalphabetic
  73. characters. Otherwise, the phrase match does not depend on
  74. neighboring characters.
  75. An empty advice or an advice starting with "!" marks a phrase
  76. checkbiw should ignore; this feature is useful for avoiding false
  77. positives.
  78. For example:
  79. ! as though......!
  80. ! even though....!
  81. ! though.........although, even though
  82. (In this example, I used dots to denote one tab character.)
  83. Environment
  84. ###########
  85. :$CHECKBIWPATH:
  86. Colon-separated list of directories in which checkbiw searches for
  87. rule-set files. Before searching these directories, checkbiw always
  88. checks the current directory; after checking $CHECKBIWPATH, checkbiw
  89. looks into the system directory {instprefix}/share/checkbiw/.
  90. :$DICTIONPATH:
  91. Colon-separated list of directories in which checkbiw searches for
  92. the GNU diction binary. Defaults to {instprefix}/bin. If checkbiw
  93. cannot find in one of these directories, it additionally
  94. searches the ones in $PATH.
  95. :$HOME:
  96. User's home directory, used to find user-configuration file
  97. Files
  98. #####
  99. :$HOME/.checkbiwrc:
  100. User configuration. Checkbiw reads options from this file first.
  101. :./.checkbiwrc:
  102. Directory configuration. Checkbiw processes options from this file
  103. after reading $HOME/.checkbiwrc, but before it proceeds to the
  104. command line.
  105. :{instprefix}/share/checkbiw/*:
  106. Standard rule-set files
  107. See also
  108. ########
  109. diction(1), bugsinwriting(7)
  110. Michael Hohmuth: "The tech-paper writer's ultimate BUGS in Writing
  111. must-read list". File doc/mustread.pdf; hardcopy version of
  112. bugsinwriting(7).
  113. Lyn Dupré: "BUGS in Writing---A Guide to Debugging Your Prose".
  114. Addison--Wesley 1998
  115. ;Local Variables:
  116. ;mode:flyspell
  117. ;ispell-local-dictionary: "american"
  118. ;comment-start: ";"
  119. ;comment-start-skip: "; *"
  120. ;End:
  121. ; LocalWords: Hohmuth checkbiw