home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
utilities
/
utilst
/
uucoder
/
!UUcoder
/
!Help
< prev
next >
Wrap
Text File
|
1995-05-17
|
8KB
|
215 lines
UUcoder 1.10
============
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ © John Allen 1994, 1995. This application is Freeware and is +
+ supplied on the understanding that: +
+ +
+ 1. The source code is not altered in any way +
+ 2. Any copies made contain all of the files in the directory +
+ 3. It is not sold for a profit +
+ +
+ Please contact me before adding it to a PD library so that I can +
+ supply an up to date version. +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
!UUcoder codes and decodes uuencoded files such as might be sent and
received via Usenet newsgroups on the Internet. It works totally on
the RISC OS desktop and is designed to work only under RISC OS 3.10 and
later versions.
As well as decoding single files it will also turn a series of messages
containing sections of a uu encoded file (such as might be found in
newsgroups with'binaries' in the title) into a single decoded file.
Likewise it will split long coded files into short sections to send in
separate messages.
!UUcoder saves and loads files to and from !Scrap so will run much
better on a machine with a hard disc, but then Internet (or at least
Demon) would be a pain on a machine which only had floppy drives.
The following files should be included in the !UUcoder directory:
!Boot
!Help
!History
!Run
!RunImage
!Sprites
!Sprites22
Resources directory containing: Messages, Sprites, Sprites22, Templates
Use
===
Double click on the !UUcoder icon in the Filer window. This installs
!UUcoder on the iconbar and opens the main coding and decoding window.
Clicking on the !UUcoder icon on the iconbar will re-open the main
coding and decoding window if it has been closed. If the window is
already open it will bring it to the top of any other windows that are
open.
To encode a file:
1. Use the Choices window (opens from the menu) to set up the way that
!UUcoder should code the file. Select the split file option if you
think that the resulting file will be longer than the maximum length of
an e-mail message (it can be as low as 60k on some parts of the
Internet). With this option set you should set the maximum file length
that your system allows. These options can be saved to use as defaults
on future sessions with !UUcoder by selecting 'Save' or used just this
time by selecting 'Use'. This dialogue box also allows you to set
default file names for the resulting encoded file. These can be full
filepaths if you wish.
2. Drag the file you wish to encode to the code icon at the top right
of the main window. If the file is being sent to someone with a PC
rather than an Arc it should be named with the appropriate file PC file
extension, using a "/" instead of a ".". This ensures that the PC user
gets a correctly typed file when it is decoded. For example a gif file
"mum" should be called "mum/gif" before dragging it to !UUcoder. It
will be uuencoded with the PC file name of "mum.gif". If there is not
a PC style file extension !UUcoder will save the RISC OS filetype with
the file so that it will be filetyped correctly if later decoded by
!UUcoder.
3. !UUcoder will encode the file.
4. Edit the file name supplied by !UUcoder to the name you wish to save
the file under, and drag the file icon to a Filer directory display or
to another application. Alternatively enter the full pathname and
click select on the 'OK' icon. If you have the split option set, and
the file is longer than the maximum length, !UUcoder will split the
file and keep presenting new part-files for you to save until the whole
file has been saved.
To decode a file or series of files:
1. Drag a uuencoded file to the decode icon at the bottom right of the
main window. !UUcoder will detect whether it is a complete uuencoded
file or give a prompt for the next file in a series. Continue dragging
the series of files to the decode icon until !UUcoder detects the end
of the uuencoded data. The files must be dragged in order.
2. !UUcoder decodes the complete uuencoded file.
3. Edit the supplied name as appropriate, then drag the file icon to a
Filer directory display or to another application. Alternatively enter
the full pathname of the file and click select on the 'OK' icon.
Additionally you can double-click select over the file icon to load it
into an appropriate application.
Features
========
* !UUcoder will accept files direct from other applications so, for
example, you can use the 'Save File' option of !TTFN to decode files by
dragging them to the !UUcoder decode icon rather than saving them on
disc first.
* !UUcoder will save coded files to other applications so, for example,
you can insert an encoded file (or section of file) into a message
being composed by !TTFN.
* !UUcoder uses solid sprite dragging if you have it enabled on your
machine.
* !UUcoder will put the RISC OS filetype at the end of any file it
codes (except files which already have PC file extensions). When
decoding files !UUcoder will check whether there is a RISC OS filetype
given after the file and will use it to filetype the decoded file.
* !UUcoder will translate PC-type file extensions to RISC OS filetypes
as follows:
PC-type RISC OS
.arc &DDC
.arj &DDC
.bmp &69C
.csv &DFE
.doc &FFF
.dxf &DEA
.gif &695
.gz &DDC
.iff &693
.img &692
.jpg &C85
.lzh &DDC
.lha &DDC
.mod &CB6
.med &CB6
.mmd &CB6
.mpg &BF8
.pc1 &691
.pc2 &691
.pc3 &691
.pcx &697
.pi1 &691
.pi2 &691
.pi3 &691
.ps &FF5
.tar &C46
.tif &FF0
.txt &FFF
.uue &FFF
.wav &FB1
.zip &DDC
This means that the output files can be double clicked to load them
into image translators such as !ChangeFSI, !Translatr or !FYEO2 (.jpg,
.gif and tif), an MPEG viewer (.mpg) or a de-archiver such as !Spark
(.arc .tar and .zip).
I would welcome suggests of other file extensions which could be
translated to RISC OS filetypes (and appropriate sprites) in this way.
* !UUcoder will also transfer directly to and from other applications
which accept direct transfer. Note that there is a bug in !Translatr
which means it will not accept .jpg files unless you edit one line in
!Translatr's !Run file. The line that reads:
Set Translator$Scrap <Wimp$Scrap>
should be changed to point to a different file such as:
Set Translator$Scrap <Wimp$Scrap>2
* Closing the main window part way through any operation will destroy
the unsaved data (as per Acorn's guidelines). To keep the data while
closing the !UUcoder main window, hold the shift key down when closing
it. This will iconise the window on the pinboard allowing it to be
reopened by clicking select on the window icon.
* Interactive Help is supported for the main window, dialogue boxes and
menus.
Background
==========
UUcoded files are put on the Internet in a wide range of forms. This
means that it is not always easy to detect the start and end of
sections of code which need to be combined before decoding. !UUcoder
makes intelligent guesses but I would welcome examples of files where
it does not produce a valid output file. In cases of doubt you can
edit 'END' as the line after the last coded line of a file, this
clearly signifies to !UUcoder that it has reached the end of a section
and to request anothe