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.

272 lines
8.3 KiB

  1. @c {{{Texinfo}}}@c {{{ Setup
  2. \input texinfo
  3. @setfilename diction.info
  4. @settitle diction, print wordy and commonly misused phrases in sentences
  5. @syncodeindex ky cp
  6. @syncodeindex pg cp
  7. @syncodeindex tp cp
  8. @defcodeindex op
  9. @syncodeindex op fn
  10. @syncodeindex vr fn
  11. @ifinfo
  12. @direntry
  13. * diction: (diction). print wordy and commonly misused phrases in sentences.
  14. @end direntry
  15. This file documents @command{diction}, a program to print wordy and
  16. commonly misused phrases in sentences.
  17. Published by the Free Software Foundation,
  18. 59 Temple Place - Suite 330
  19. Boston, MA 02111-1307, USA
  20. Copyright 1997, 1998, 1999, 2000 Michael Haardt
  21. Permission is granted to make and distribute verbatim copies of this
  22. manual provided the copyright notice and this permission notice are
  23. preserved on all copies.
  24. Permission is granted to copy and distribute modified versions of
  25. this manual under the conditions for verbatim copying, provided that
  26. the entire resulting derived work is distributed under the terms of a
  27. permission notice identical to this one.
  28. Permission is granted to copy and distribute translations of this manual
  29. into another language, under the above conditions for modified versions,
  30. except that this permission notice may be stated in a translation approved
  31. by Michael Haardt.
  32. @end ifinfo
  33. @setchapternewpage off
  34. @c }}}
  35. @c {{{ Title page
  36. @titlepage
  37. @title diction, print wordy and commonly misused phrases in sentences
  38. @subtitle version @VERSION@, @UPDATED@
  39. @author Michael Haardt
  40. @page
  41. @vskip 0pt plus 1filll
  42. Copyright @copyright{} 1997, 1998, 1999, 2000 Michael Haardt
  43. @sp 2
  44. Published by the Free Software Foundation, @*
  45. 59 Temple Place - Suite 330, @*
  46. Boston, MA 02111-1307, USA
  47. Permission is granted to make and distribute verbatim copies of this
  48. manual provided the copyright notice and this permission notice are
  49. preserved on all copies.
  50. Permission is granted to copy and distribute modified versions of
  51. this manual under the conditions for verbatim copying, provided that
  52. the entire resulting derived work is distributed under the terms of a
  53. permission notice identical to this one.
  54. Permission is granted to copy and distribute translations of this manual
  55. into another language, under the above conditions for modified versions,
  56. except that this permission notice may be stated in a translation approved
  57. by Michael Haardt.
  58. @end titlepage
  59. @c }}}
  60. @c {{{ Overview
  61. @page
  62. @ifnottex
  63. @node Top
  64. @top Diction
  65. @command{diction} prints wordy and commonly misused phrases in sentences.
  66. This document was produced for version @VERSION@ of @sc{gnu}
  67. @command{diction}.
  68. @end ifnottex
  69. @menu
  70. * Introduction:: Introduction.
  71. * Invoking:: Invoking @command{diction}; description of options.
  72. * Diagnostics:: Exit status returned by @command{diction}.
  73. * Reporting Bugs:: Reporting Bugs.
  74. * Concept Index:: A menu with all the topics in this manual.
  75. * Index:: A menu with all @command{diction} commands
  76. and command-line options.
  77. @end menu
  78. @c }}}
  79. @c {{{ Introduction
  80. @node Introduction
  81. @chapter Introduction
  82. @command{diction} finds all sentences in a document, that contain
  83. phrases from a database of frequently misused, bad or wordy diction.
  84. It further checks for double words. If no files are given, the document
  85. is read from standard input. Each found phrase is enclosed in @code{[ ]}
  86. (brackets). Suggestions and advice, if any, are printed headed by a right
  87. arrow @code{->}. A sentence is a sequence of words, that starts with a
  88. capitalised word and ends with a full stop, double colon, question mark
  89. or exclaimation mark. A single letter followed by a dot is considered an
  90. abbreviation, so it does not terminate a sentence. Various multi-letter
  91. abbreviations are recognized, they do not terminate a sentence as well.
  92. @command{diction} understands @command{cpp} @code{#line} lines for being
  93. able to give precise locations when printing sentences.
  94. There has been a diction command on old UNIX systems, which is now part
  95. of the AT&T DWB package. The original version was bound to roff by
  96. enforcing a call to @command{deroff}. This version is a reimplementation
  97. and not must run in a pipe with @command{deroff} if you want to process
  98. roff documents. Similarly, you can run it in a pipe with @command{dehtml}
  99. or @command{detex} to process HTML or TeX documents.
  100. See also:
  101. Cherry, L.L.; Vesterman, W.: Writing Tools-The STYLE and DICTION
  102. programs, Computer Science Technical Report 91, Bell Laboratories,
  103. Murray Hill, N.J. (1981), republished as part of the 4.4BSD User's
  104. Supplementary Documents by O'Reilly.
  105. Strunk, William: The elements of style, Ithaca, N.Y.: Priv. print., 1918,
  106. @url{http://coba.shsu.edu/help/strunk/}.
  107. @c }}}
  108. @c {{{ Invoking
  109. @node Invoking
  110. @chapter Invoking @command{diction}
  111. @table @samp
  112. @item -f @var{file}
  113. @itemx --file @var{file}
  114. @opindex -f
  115. @opindex --file
  116. @cindex user specified database
  117. Read the user specified database from the specified @var{file} in addition
  118. to the default database.
  119. @item -n
  120. @itemx --no-default-file
  121. @opindex -n
  122. @opindex --no-default-file
  123. @cindex not loading default database
  124. Do not read the default database, so only the user-specified database is used.
  125. @item -L @var{language}
  126. @itemx --language @var{language}
  127. @opindex -L
  128. @opindex --language
  129. @cindex set phrase file language
  130. Set the phrase file language.
  131. @item -h
  132. @itemx --help
  133. @opindex -h
  134. @opindex --help
  135. @cindex print usage message
  136. Print a short usage message.
  137. @itemx --version
  138. @opindex --version
  139. @cindex print version
  140. Print the version.
  141. @end table
  142. @section Environment Variables
  143. Diction's behaviour is affected by the following environment variables.
  144. @cindex environment variables
  145. @table @code
  146. @itemx LC_MESSAGES
  147. @vindex LC_MESSAGES
  148. @cindex language of messages
  149. @cindex message language
  150. @cindex national language support
  151. @cindex NLS
  152. @cindex translation of message language
  153. This variable specifies the @code{LC_MESSAGES} locale, which determines
  154. the language that @command{diction} uses for messages. American English
  155. is used if the environment variable is not set, or if the message catalog
  156. is not installed, or if @command{diction} was not compiled with national
  157. language support (@sc{nls}). The variable is further used as default
  158. for the phrase language.
  159. @end table
  160. @section Files
  161. @cindex files
  162. @table @code
  163. @itemx @DATADIR@/diction
  164. This directory contains phrase databases for various languages.
  165. @end table
  166. @c }}}
  167. @c {{{ Diagnostics
  168. @node Diagnostics
  169. @chapter Diagnostics
  170. If no errors occur, exit status is 0. On usage errors, 1 is returned.
  171. Termination caused by lack of memory is signalled by exit code 2.
  172. @c }}}
  173. @c {{{ Reporting Bugs
  174. @node Reporting Bugs
  175. @chapter Reporting Bugs
  176. If you find a bug in @command{diction}, please send electronic mail to
  177. @email{michael@@moria.de}. Include the version number, which you can find
  178. by running @command{diction --version}. Also include the hardware and
  179. operating system, the compiler used to compile `diction', a description
  180. of the bug behavior, and the input to `diction' that triggered the bug.
  181. @c }}}
  182. @c {{{ Author
  183. @node Author
  184. @chapter Author
  185. This program is GNU software, copyright 1997, 1998, 1999, 2000 Michael Haardt
  186. @email{michael@@moria.de}.
  187. The english phrase file contains contributions by Greg Lindahl
  188. @email{lindahl@@pbm.com}, Wil Baden, Gary D. Kline, Kimberly Hanks and
  189. Beth Morris.
  190. This program is free software; you can redistribute it and/or modify
  191. it under the terms of the GNU General Public License as published by
  192. the Free Software Foundation; either version 2 of the License, or
  193. (at your option) any later version.
  194. This program is distributed in the hope that it will be useful,
  195. but WITHOUT ANY WARRANTY; without even the implied warranty of
  196. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  197. GNU General Public License for more details.
  198. You should have received a copy of the GNU General Public License along
  199. with this program. If not, write to the Free Software Foundation, Inc.,
  200. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  201. @c }}}
  202. @c {{{ Concept Index
  203. @page
  204. @node Concept Index
  205. @unnumbered Concept Index
  206. This is a general index of all issues discussed in this manual, with the
  207. exception of the @command{diction} command-line options.
  208. @printindex cp
  209. @c }}}
  210. @c {{{ Index
  211. @page
  212. @node Index
  213. @unnumbered Index
  214. This is an alphabetical list of all @command{diction} command-line
  215. options and environment variables.
  216. @printindex fn
  217. @contents
  218. @c }}}
  219. @bye