home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / pmuue144.zip / PMUUE.DOC < prev    next >
Text File  |  1996-08-10  |  14KB  |  311 lines

  1.                               PMUUE 1.44
  2.             Presentation Manager Unix-to-Unix Encoder/Decoder
  3.                             August 12, 1996
  4.  
  5.  
  6. What is PMUUE?
  7. ==============
  8.  
  9. PMUUE stands for Presentation Manager Unix-to-Unix Encoder/Decoder.
  10. It is used to encode and decode Unix-to-Unix encoded files (commonly
  11. known as UUencoded files.)
  12.  
  13. Using text only mail readers, it is not possible to send binary
  14. files through E-mail because of the possibility of non-ASCII
  15. charaters being lost or converted to other characters.  A utility,
  16. such as PMUUE, will convert a binary file into a set of ASCII
  17. characters (UUencoded format) which can be sent through E-mail and
  18. converted back into binary format once the destination is reached.
  19.  
  20.  
  21. The Disclaimer
  22. ==============
  23.  
  24. There is no warranty, expressed or implied, with this program.  THE
  25. AUTHOR IS NOT RESPONSIBLE FOR ANY DAMAGES INCURRED BY THE USE OF THIS
  26. PROGRAM.  Use at your own risk!
  27.  
  28.  
  29. Distribution
  30. ============
  31.  
  32. This program may be freely distributed as long as:
  33.  
  34. a)      The archived file from which the program came from is distributed
  35.         and not altered in any way.
  36. b)      This program is not distributed with any commercial program except
  37.         for shareware or freeware collections of programs.
  38.  
  39.  
  40. Quick Start
  41. ===========
  42.  
  43. Here are the basic steps to DECODE a UUencoded file:
  44.  
  45. 1.  Select "File|Decode..." from the menu or press Ctrl-D.
  46.  
  47. 2.  Select ALL the files you want to decode.  If a binary file is split
  48.     between more than one UUencoded file, you must make sure that those
  49.     files appear in the correct order and consecutively in the list box.
  50.     You can only decode one directory at a time.  Press Ctrl-/ in the file
  51.     list box to select all files in the current directory.
  52.  
  53. 3.  Select the "OK" button.
  54.  
  55.     NOTE: If the decoding did not work properly, you may have to change some
  56.           of the settings in the "Preferences|Settings..." dialog box.
  57.  
  58. Here are the basic steps to ENCODE a binary file:
  59.  
  60. 1.  Select "File|Encode..." from the menu or press Ctrl-E.
  61.  
  62. 2.  Select ALL the files you want to encode.  You can only encode one
  63.     directory at a time.  Press Ctrl-/ in the file list box to select
  64.     all files in the current directory.
  65.  
  66. 3.  Select the "OK" button.
  67.  
  68.     NOTE: The format of the UUencoded file is dependent on the current
  69.           settings of the "Preferences|Settings..." dialog box.
  70.  
  71.  
  72. Parts of the PMUUE display
  73. ==========================
  74.  
  75. Besides the normal OS/2 system windows, such as the title bar, the
  76. minimize and maximize buttons and the menu bar, there are two windows
  77. controlled by PMUUE: the log window and the status bar.
  78.  
  79. The log window is where any significant event is recorded that has occured
  80. while encoding or decoding a binary file.  Specifically, an entry is placed
  81. into the log window when:
  82.  
  83.    - A file is opened
  84.    - The process of encoding or decoding a file is started or finished
  85.  
  86. By default, the log window keeps the last 500 events that have occured
  87. and deletes any log entries, starting from the oldest entry, that exceed
  88. the maximum number of entries allowed.  The log window automatically
  89. scrolls down to always show the latest event.
  90.  
  91. The status bar shows the last message sent to the log window, but this
  92. might change in future versions to include a progress indicator.
  93.  
  94. If selected in the Settings notebook, a dialog box pops up with the
  95. message that the process is finished whenever an encoding or
  96. decoding process is completed.
  97.  
  98.  
  99. Drag and Drop Encoding and Decoding
  100. ===================================
  101.  
  102. PMUUE can UUencode or UUdecode files by dragging a file or a group of
  103. files from the folders inside the Drives icon into the Log Window using
  104. Mouse Button #2 (usually the right mouse button).  Depending on the
  105. settings in the Settings Notebook, the files will be UUencoded, UUdecoded,
  106. or prompt the user to choose between UUencoding or UUdecoding.
  107.  
  108. You can also drag the files to be UUencoded or UUdecoded directly onto the
  109. PMUUE program icon itself without opening the program.  However, this
  110. method is FAR less flexible than the first method because dragging the
  111. files onto the program icon is like using the command line method to
  112. UUencode and UUdecode files.  Furthermore, PMUUE will NOT prompt the user
  113. to choose between UUencode or UUdecode when the user drags the files onto
  114. the program icon.  Another disadvantage of dragging files onto the program
  115. icon is that each file must contain entire binary files (ie. you cannot
  116. UUdecode files that have several parts).  You can set up two program
  117. icons, one for UUencode and one for UUdecode, by having a "-e" parameter
  118. for the UUencode icon and a "-d" parameter for the UUdecode icon and
  119. having both icons point to the same PMUUE program file.  Both icons can
  120. open PMUUE normally.
  121.  
  122.  
  123. The Menu Options
  124. ================
  125.  
  126. The File Menu
  127. -------------
  128.  
  129. The file menu allows the user to encode a file, decode a file, or exit
  130. the program.
  131.  
  132. When the user selects the "Encode..." menu option or presses Ctrl-E on
  133. the keyboard, the user is presented with a dialog box.  This dialog
  134. box allows the user to select the binary file to be encoded into
  135. UUencoded format.  The user can select one or many files.
  136. If the user selects "Cancel", the operation is aborted.  If the user
  137. selects "OK", the encoding process is started.  A message box can be
  138. selected to pop up when the encoding process is completed.  Select "OK"
  139. to dismiss the dialog box.
  140.  
  141. The way the program encodes files can be determined by the Settings
  142. notebook.
  143.  
  144. When the user selects the "Decode..." menu option or presses Ctrl-D on
  145. the keyboard, the user is presented with a dialog box.  This dialog
  146. box allows the user to select the encoded file to be decoded back into a
  147. binary file.  The user can select one or many files.  If the user selects
  148. "Cancel", the operation is aborted.  If the user selects "OK", the
  149. operation is started.  A message box can be selected to pop up when the
  150. decoding process is completed.  Select "OK" to dismiss the dialog box.
  151.  
  152. An encoded file does NOT have to be stripped of extraneous text in
  153. order for PMUUE to decode it.  Also, the encoded file also does NOT
  154. have to be split up if it contains more than one UUencoded file.
  155. Even if the binary file is split into many UUencoded files, these
  156. UUencoded files do NOT have to be joined together into one file.
  157. PMUUE will (hopefully) be smart enough to determine which lines are
  158. encoded and which are not and when an encoded file starts and ends.
  159.  
  160. When the user selects "Exit," or double-clicks on the system menu icon
  161. or selects "Close" from the system menu, the program will terminate.
  162.  
  163. The Preferences Menu
  164. --------------------
  165. The preferences menu has only one option, "Settings..." which will tell
  166. the program how to act in particular situations.  For a full
  167. explanation of the "Settings..." option, see "The Settings Notebook"
  168. elsewhere in this file.
  169.  
  170. The Help Menu
  171. -------------
  172. When the user selects "Help index...", the user is presented with all
  173. the major topics in the help file.
  174.  
  175. When the user selects "General Help...", the user sees the definitions
  176. of the major functions of this program.
  177.  
  178. When the user selects "Using Help...", a window with instructions on
  179. how to use help is presented.
  180.  
  181. When the user selects "Keys Help...", a window with valid keystrokes
  182. for the main window appears.
  183.  
  184. When the user selects the "Product Information..." menu option, PMUUE
  185. will show a dialog showing the program name and version, as well as
  186. other pertinent information about itself.
  187.  
  188.  
  189. The Settings Notebook
  190. =====================
  191.  
  192. The settings notebook is divided into five pages: Notification, End of
  193. Line, Directories, Multi-part, and Miscellaneous.
  194.  
  195. The "Notification" page allows the user to select which output methods
  196. are used by the program.  The "Log" option specifies if the log window
  197. should be active.  The "Status Line" option specifies if the status
  198. line window should be used.  The "Message Box" option specifies if
  199. message windows should be used by the program for notification
  200. purposes.
  201.  
  202. The "End of Line" page specifies what an end-of-line marker should be
  203. in a UUencoded file.  The "OS/2" option says that lines should end with
  204. a carriage return followed by a linefeed.  The "Unix" option says that
  205. lines should end with only a linefeed.
  206.  
  207. The "Directories" page specifies where the binary and UUencoded files
  208. should be and be placed.  The "Default Binary Directory" indicates
  209. where the binary files should be placed after decoding a UUencoded
  210. file.  The program will also look at that directory, by default, when
  211. starting up the "Encode..." menu option for the first time in the
  212. current session.  The "Default UUENCODE Directory" indicates where the
  213. UUencoded files should be placed after encoding a binary file.  The
  214. program will also look at that directory, by default, when starting up
  215. the "Decode..." menu option for the first in the currect session.
  216.  
  217. This page also has a "Default File Extension" field.  This field is
  218. used to add an extension to a UUencoded file when creating a UUencoded
  219. file except when the "Create multiple part encoding" option is used.
  220.  
  221. The "Multi-part" page specifies if multi-part UUencoded files should
  222. be created or not.  The "Create multiple part encoding" option
  223. indicates if PMUUE should split binary files into multiple UUencoded
  224. parts.  If this option is checked, then the rest of the options on the
  225. page are enabled.  The "Max. part size in KB" option specifies that
  226. the maximum size of each part should be limited by its size in
  227. kilobytes.  The maximum size should be entered to the field
  228. immediately to the right of this option.  The "Max. part size in
  229. lines" options specifies that the maximum size of each part should be
  230. limited by its size in the number of lines it has.  The maximum size
  231. should be entered to the field to the right of this option.
  232.  
  233. The maximum number of parts for either method of partitioning the file
  234. is 99 parts.  Each part of the encoded file will have an extension of
  235. ".u##" where ## is a number between 01 and 99.
  236.  
  237. The "Allow Multiple Part Decoding" checkbox specifies if PMUUE should
  238. assume that a binary file will be spread across multiple UUencoded
  239. files.  If this checkbox is not on, then one UUencoded file should
  240. contain complete binary files.
  241.  
  242. The "Drag and Drop" page indicates how the program should treat dropped
  243. files using the Drag and Drop feature of OS/2.  The "Decode" radio
  244. button specifies that dropped files should be automatically decoded.
  245. The "Encode" radio button specifies that dropped files should be
  246. automatically encoded.  The "Prompt" radio button specifies that
  247. a dialog will appear asking the user if the files should be encoded
  248. or decoded.
  249.  
  250. The "Sort file names" checkbox specifies if the list of dropped files
  251. should be sorted before they are encoded or decoded.  If this checkbox
  252. is checked, the files will be sorted.  If this checkbox is not checked,
  253. the files will not be sorted.
  254.  
  255. The "Miscellaneous" page has two fields and a checkbox on it.  The
  256. "INI File" field indicates the name of the INI file that PMUUE should
  257. create and use to hold the settings from the Settings notebook.  The
  258. "Max Log Length" field is the maximum number of lines that should be
  259. allowed in the log window.  The "Allow Lowercase Characters" option
  260. specifies if PMUUE should allow lowercase characters as valid UUencoded
  261. characters.  Normally, lowercase characters are not part of the code but
  262. some encoders allow lowercase characters as part of the encoding.  This
  263. could be troublesome if PMUUE decodes an ordinary line of text into the
  264. binary file.  If garbage appears in the binary file and this option is
  265. on, try turning this option off if no lowercase letters show up in the
  266. code or delete all the non-encoded lines of text in the source file.
  267.  
  268.  
  269. Command Line UUencoding and UUdecoding
  270. ======================================
  271.  
  272. PMUUE can be started by using the OS/2 command line. If no command line
  273. arguments are provided, then PMUUE will start up in interactive mode.
  274. If only filenames are used as parameters to PMUUE, the files specified
  275. will automatically be UUdecoded no matter what is specified in the
  276. Settings notebook.
  277.  
  278. These are the current command line options that PMUUE will recognize:
  279.  
  280. -c:[NO|{delay}]
  281.  
  282. This switch will determine how long PMUUE will wait until it automatically
  283. closes itself after running.  Use "-c:NO" if PMUUE is not supposed to
  284. close after encoding or decoding.  Use "-c:{delay}" to tell PMUUE how
  285. long to wait before closing, where {delay} is the number of milliseconds
  286. to wait.  If this switch is not specified, PMUUE will wait five seconds
  287. before closing itself.
  288.  
  289. If the user clicks in the log window or selects a menu item before the
  290. window closes, PMUUE will NOT close itself automatically.  PMUUE will beep
  291. through the PC's internal speaker to indicate that it will no longer close
  292. by itself.  This is handy if errors occur and the user wants to take a
  293. closer look at them.
  294.  
  295. -d
  296.  
  297. This will decode any files (including wildcard searches) appearing on
  298. the command line after this point, or until the next "-e" switch is
  299. encountered.
  300.  
  301. -e
  302.  
  303. This switch will encode any files (including wildcard searches) appearing
  304. on the command line after this point, or until the next "-d" switch is
  305. encountered.
  306.  
  307. Happy encoding
  308.  
  309. Colin Vernon
  310. cvernon@saturn.tlug.org
  311.