<PLAINTEXT>
support/scripts   Miscellanous Scripts I use to organize the icon library

  These scripts are the programs I use in maintaining this library.  Most
of these are bourne shell scripts using the pnmplus filters, but a couple
of perl and sed scripts are also present.

Most of the scripts are also designed to handle both X bitmaps and or X
pixmap images which is from here on refered to as X images. Also all files
work on multiple X image files unless otherwise noted (unlike their
PbmPlus counter parts).

However many of these scripts now understand the X pixmap transparent color
and preserves it while filtering the icon through the PbmPlus filters, which
does not understand transparency.

To find where the latest PbmPlus filters are from the Libraries main
README file (not the WWW main index page).

As these are scripts, the usage and any documentation for the command is
given as comments at the start of the script files. I try to comment all
my scripts this way. So look at the top of the script for its usage and
purpose.

You can find a Xbmbrowser Menu Config File which uses these scripts in
``support/configs/xbmbrowserrc''. This program is a must for viewing
and modifing a whole directory of icons.

Anything marked as ``OLD'' means that I have not used that script for
sometime and as such it could be broken to behave unexpectedly. Please
check such scripts carefully before use.


Scripts by Catagory

  Information
    README         You are reading it!  :-)

  Filters
    xbm-cmd        Run a given PbmPlus filter on a single X image
    xbm-resize     Attempt to resize X images (lots of options)
    xbm-mask       Create mask files for X images (named "???_mask.xbm")
    xpm-mask       Mask a X image into ``masked'' X pixmap with transparency

    recolor        Recolor given X pixmaps using the standard color table
    xpm-fix        Fix the X pixmap output from pbmplus (restore color names)
    mk-color-db    Create a reverse color name database (for xpm-fix)
    colorname      find the rgb.txt colorname of a pixel #rrggbb value
    xpm-colors     Count the number of color pixels over list of pixmaps given

    xbm-list       Create a Image Listing (like pnmimage) for X images  - OLD
    xbm-rotate16   rotate a X image into 16 directions

    bdf2xbms       Split a bdf font into a collection of bitmaps (awk script)
    pnmsplitup     Split up a large array of icons into individual icons

  Converters 
    x2p            Convert X Images into PbmPlus Images of the same type
    p2x            Convert PbmPlus Images into X Images of the same type
    x2p.sed        Sed script to clean pixmaps before converting to PPM 

    xbm2epsi       Convert a Xbm to Encapulated Postscript with Preview Image
    xbm2xpm        Convert X bitmap to X pixmap (colors fixed correctly)
    xpm2xbm        Convert X pixmap to X bitmap (threshold or dithering)

    xbm2gif        X Image to GIF  (with transparency option for WWW use)
    gif2xbm        Gif files to X Image (transparency retained for Pixmaps!)
    ppm2gif        Multiple file ppmtogif converter (example)  - OLD

    a2hex          Ascii file (output of bmtoa) to Hex (for xbm2epsi)
    hex2a          Reverse of the above.
    face2xbm       Xmail face file to bitmap (needs uncompface)
    xbm2face       Reverse of the above (needs compface)
    macp2xbm       Mac paint to X bitmap
    xpm1to3.pl     Covert Xpm type 1 to type 3  (From the Xpm dist - not used)
    any2pnm        As `anytopnm' but for multiple files        - OLD
    any2xbm        As above but one step further               - OLD

    icon2xbm       Sun Icons  to  X bitmaps (using pbmplus)    - OLD
    xbm2icon       Reverse of the above                        - OLD
    icon2xbm.old   As above but using a internal sed script.   - OLD
    xbm2icon.old   Reverse of the above                        - OLD
    ilbm2gif       Amiga Ilbm to Gif                           - OLD
    ilbm2xbm       Amiga Ilbm to X bitmap                      - OLD

  Miscellanous (general file handling)
    merge          Safe Move (or copy), does not overwrite files.
    mved           Move (or Copy) with editing   (use = for variable part)
    randomline     pick a randomline from file or standard input
    xlogout        Create logout button using a Icon Image (via bricons)

Anthony Thyssen  <anthony@cit.gu.edu.au>  http://www.sct.gu.edu.au/~anthony/
-------------------------------------------------------------------------------
``But that's fantasy for you. The Damsel get to fly, while
    the Elf gets stuck in the mud.''  -- Piers Anthony `Bearing an Hourglass'
-------------------------------------------------------------------------------
