PageRenderTime 28ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/trf2.1.4/doc/html/uuencode.html

#
HTML | 221 lines | 132 code | 1 blank | 88 comment | 0 complexity | 6771efca7e6c1baf184e44e865dcf167 MD5 | raw file
Possible License(s): BSD-3-Clause, GPL-2.0, LGPL-2.0, 0BSD
  1. <html><head>
  2. <title>uuencode - Trf transformer commands</title>
  3. <style type="text/css"><!--
  4. HTML {
  5. background: #FFFFFF;
  6. color: black;
  7. }
  8. BODY {
  9. background: #FFFFFF;
  10. color: black;
  11. }
  12. DIV.doctools {
  13. margin-left: 10%;
  14. margin-right: 10%;
  15. }
  16. DIV.doctools H1,DIV.doctools H2 {
  17. margin-left: -5%;
  18. }
  19. H1, H2, H3, H4 {
  20. margin-top: 1em;
  21. font-family: sans-serif;
  22. font-size: large;
  23. color: #005A9C;
  24. background: transparent;
  25. text-align: left;
  26. }
  27. H1.title {
  28. text-align: center;
  29. }
  30. UL,OL {
  31. margin-right: 0em;
  32. margin-top: 3pt;
  33. margin-bottom: 3pt;
  34. }
  35. UL LI {
  36. list-style: disc;
  37. }
  38. OL LI {
  39. list-style: decimal;
  40. }
  41. DT {
  42. padding-top: 1ex;
  43. }
  44. UL.toc,UL.toc UL, UL.toc UL UL {
  45. font: normal 12pt/14pt sans-serif;
  46. list-style: none;
  47. }
  48. LI.section, LI.subsection {
  49. list-style: none;
  50. margin-left: 0em;
  51. text-indent: 0em;
  52. padding: 0em;
  53. }
  54. PRE {
  55. display: block;
  56. font-family: monospace;
  57. white-space: pre;
  58. margin: 0%;
  59. padding-top: 0.5ex;
  60. padding-bottom: 0.5ex;
  61. padding-left: 1ex;
  62. padding-right: 1ex;
  63. width: 100%;
  64. }
  65. PRE.example {
  66. color: black;
  67. background: #f5dcb3;
  68. border: 1px solid black;
  69. }
  70. UL.requirements LI, UL.syntax LI {
  71. list-style: none;
  72. margin-left: 0em;
  73. text-indent: 0em;
  74. padding: 0em;
  75. }
  76. DIV.synopsis {
  77. color: black;
  78. background: #80ffff;
  79. border: 1px solid black;
  80. font-family: serif;
  81. margin-top: 1em;
  82. margin-bottom: 1em;
  83. }
  84. UL.syntax {
  85. margin-top: 1em;
  86. border-top: 1px solid black;
  87. }
  88. UL.requirements {
  89. margin-bottom: 1em;
  90. border-bottom: 1px solid black;
  91. }
  92. --></style>
  93. </head>
  94. <! -- Generated from file 'uuencode.man' by tcllib/doctools with format 'html'
  95. -->
  96. <! -- Copyright &copy; 1996-2003, Andreas Kupries &lt;andreas_kupries@users.sourceforge.net&gt;
  97. -->
  98. <! -- CVS: $Id$ uuencode.n
  99. -->
  100. <body><div class="doctools">
  101. <h1 class="title">uuencode(n) 2.1.3 &quot;Trf transformer commands&quot;</h1>
  102. <div id="name" class="section"><h2><a name="name">Name</a></h2>
  103. <p>uuencode - Encoding &quot;uuencode&quot;</p>
  104. </div>
  105. <div id="toc" class="section"><h2><a name="toc">Table Of Contents</a></h2>
  106. <ul class="toc">
  107. <li class="section"><a href="#toc">Table Of Contents</a></li>
  108. <li class="section"><a href="#synopsis">Synopsis</a></li>
  109. <li class="section"><a href="#section1">Description</a></li>
  110. <li class="section"><a href="#section2">NOTES</a></li>
  111. <li class="section"><a href="#section3">IMMEDIATE versus ATTACHED</a></li>
  112. <li class="section"><a href="#see-also">See Also</a></li>
  113. <li class="section"><a href="#keywords">Keywords</a></li>
  114. <li class="section"><a href="#copyright">Copyright</a></li>
  115. </ul>
  116. </div>
  117. <div id="synopsis" class="section"><h2><a name="synopsis">Synopsis</a></h2>
  118. <div class="synopsis">
  119. <ul class="requirements">
  120. <li>package require <b class="pkgname">Tcl <span class="opt">?8.2?</span></b></li>
  121. <li>package require <b class="pkgname">Trf <span class="opt">?2.1.3?</span></b></li>
  122. </ul>
  123. <ul class="syntax">
  124. <li><a href="#1"><b class="cmd">uuencode</b> <span class="opt">?<i class="arg">options...</i>?</span> <span class="opt">?<i class="arg">data</i>?</span></a></li>
  125. </ul>
  126. </div>
  127. </div>
  128. <div id="section1" class="section"><h2><a name="section1">Description</a></h2>
  129. <p>The command <b class="cmd">uuencode</b> is one of several data encodings
  130. provided by the package <b class="package">trf</b>. See <b class="syscmd">trf-intro</b> for an
  131. overview of the whole package.</p>
  132. <p>This encoding transforms every block of three bytes into a block of
  133. four bytes, each of which is printable, i.e. 7bit ASCII. This implies
  134. that the result is valid UTF-8 too.
  135. The command uses essentially the same algorithm as for <b class="cmd">base64</b>,
  136. except for a different mapping from 6-bit fragments to printable
  137. bytes.</p>
  138. <dl class="definitions">
  139. <dt><a name="1"><b class="cmd">uuencode</b> <span class="opt">?<i class="arg">options...</i>?</span> <span class="opt">?<i class="arg">data</i>?</span></a></dt>
  140. <dd><dl class="definitions">
  141. <dt><b class="option">-mode</b> <b class="const">encode</b>|<b class="const">decode</b></dt>
  142. <dd><p>This option has to be present and is always understood by the
  143. encoding.</p>
  144. <p>For <i class="term">immediate</i> mode the argument value specifies the operation
  145. to use. For an <i class="term">attached</i> encoding it specifies the operation to
  146. use for <em>writing</em>. Reading will automatically use the reverse
  147. operation.
  148. See section <span class="sectref"><a href="#section3">IMMEDIATE versus ATTACHED</a></span> for explanations of
  149. these two terms.</p>
  150. <p>Beyond the argument values listed above all unique abbreviations are
  151. recognized too.</p>
  152. <p><b class="const">Encode</b> converts from arbitrary (most likely binary) data into
  153. the described representation, <b class="const">decode</b> does the reverse .</p></dd>
  154. <dt><b class="option">-attach</b> <i class="arg">channel</i></dt>
  155. <dd><p>The presence/absence of this option determines the main operation mode
  156. of the transformation.</p>
  157. <p>If present the transformation will be stacked onto the <i class="arg">channel</i>
  158. whose handle was given to the option and run in <i class="term">attached</i>
  159. mode. More about this in section <span class="sectref"><a href="#section3">IMMEDIATE versus ATTACHED</a></span>.</p>
  160. <p>If the option is absent the transformation is used in <i class="term">immediate</i>
  161. mode and the options listed below are recognized. More about this in
  162. section <span class="sectref"><a href="#section3">IMMEDIATE versus ATTACHED</a></span>.</p></dd>
  163. <dt><b class="option">-in</b> <i class="arg">channel</i></dt>
  164. <dd><p>This options is legal if and only if the transformation is used in
  165. <i class="term">immediate</i> mode. It provides the handle of the channel the data
  166. to transform has to be read from.</p>
  167. <p>If the transformation is in <i class="term">immediate</i> mode and this option is
  168. absent the data to transform is expected as the last argument to the
  169. transformation.</p></dd>
  170. <dt><b class="option">-out</b> <i class="arg">channel</i></dt>
  171. <dd><p>This options is legal if and only if the transformation is used in
  172. <i class="term">immediate</i> mode. It provides the handle of the channel the
  173. generated transformation result is written to.</p>
  174. <p>If the transformation is in <i class="term">immediate</i> mode and this option is
  175. absent the generated data is returned as the result of the command
  176. itself.</p></dd>
  177. </dl></dd>
  178. </dl>
  179. </div>
  180. <div id="section2" class="section"><h2><a name="section2">NOTES</a></h2>
  181. <ol class="enumerated">
  182. <li><p>The encoding buffers 2 bytes.</p></li>
  183. </ol>
  184. </div>
  185. <div id="section3" class="section"><h2><a name="section3">IMMEDIATE versus ATTACHED</a></h2>
  186. <p>The transformation distinguishes between two main ways of using
  187. it. These are the <i class="term">immediate</i> and <i class="term">attached</i> operation
  188. modes.</p>
  189. <p>For the <i class="term">attached</i> mode the option <b class="option">-attach</b> is used to
  190. associate the transformation with an existing channel. During the
  191. execution of the command no transformation is performed, instead the
  192. channel is changed in such a way, that from then on all data written
  193. to or read from it passes through the transformation and is modified
  194. by it according to the definition above.
  195. This attachment can be revoked by executing the command <b class="cmd">unstack</b>
  196. for the chosen channel. This is the only way to do this at the Tcl
  197. level.</p>
  198. <p>In the second mode, which can be detected by the absence of option
  199. <b class="option">-attach</b>, the transformation immediately takes data from
  200. either its commandline or a channel, transforms it, and returns the
  201. result either as result of the command, or writes it into a channel.
  202. The mode is named after the immediate nature of its execution.</p>
  203. <p>Where the data is taken from, and delivered to, is governed by the
  204. presence and absence of the options <b class="option">-in</b> and <b class="option">-out</b>.
  205. It should be noted that this ability to immediately read from and/or
  206. write to a channel is an historic artifact which was introduced at the
  207. beginning of Trf's life when Tcl version 7.6 was current as this and
  208. earlier versions have trouble to deal with \0 characters embedded into
  209. either input or output.</p>
  210. </div>
  211. <div id="see-also" class="section"><h2><a name="see-also">See Also</a></h2>
  212. <p>ascii85, base64, bin, hex, oct, otp_words, quoted-printable, trf-intro, uuencode</p>
  213. </div>
  214. <div id="keywords" class="section"><h2><a name="keywords">Keywords</a></h2>
  215. <p>base64, encoding, uuencode</p>
  216. </div>
  217. <div id="copyright" class="section"><h2><a name="copyright">Copyright</a></h2>
  218. <p>Copyright &copy; 1996-2003, Andreas Kupries &lt;andreas_kupries@users.sourceforge.net&gt;</p>
  219. </div>
  220. </div></body></html>