Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art.animation, started 6 Aug 1998.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
asc-tool.exe (asciitool.c for dos) [1/2]

asc-tool.exe (asciitool.c for dos) [1/2]

alt.ascii-art.animation · 4 messages · 6 Aug 1998 - 12 Aug 1998
CJRandall <col...@shieldwolf.demon.co.uk> wrote:

> here is the straight and raw output from DJGPP of the file
> asciitool.c ASC-TOOL.EXE    64.335 Kb     with -O optimisation
> option set during compile.  alas it is not going to perform quite as
> well without the 'tr' utility.
>  as it is.....   <<=====   becomes  =====<<

Can that be fixed to make it do a perfect reversal?


[...snip...]


> the original source code had some unix shell scripts that performed
> character translation using 'tr'.   eg:   [ gets mapped to ]

> if it does not work on your machine ..... let me know and i may
> try hacking the source-code or finding what the default compiler
> options are ..... that are incompatible with your machine
> archictecture ...  provided you describe what kind of machine your
> working with.


I uudecoded it OK to yield the executable ASC-TOOL.EXE size 39690Kb.

When I run it I get the error message " Load error: no DPMI " which
conveys nothing to me but probably has something to do with the
preface in the executable itself which says:


---------   preface from the executable file  -----------------------

stub.h generated from stub.asm by djasm, on Tue Jan 30 23:43:58 1996
The STUB.EXE stub loader is Copyright (C) 1993-1995 DJ Delorie.
Permission granted to use for any purpose provided this copyright
remains present and unmodified.
This only applies to the stub, and not neccessarily the whole program.

$Id: stub.asm built 01/30/96 23:43:58 by djasm $

@(#) stub.asm built 01/30/96 23:43:58 by djasm

go32stub, v 2.00T
--------------------------------------------------------------------


Now I don't have an executable named CWSDPMI.EXE...do you?

Regards,

In article <902...@mnementh.southern.co.nz>, Colin Douthwaite
<cfb...@southern.co.nz> writes
>CJRandall <col...@shieldwolf.demon.co.uk> wrote:
>
>> here is the straight and raw output from DJGPP of the file
>> asciitool.c ASC-TOOL.EXE    64.335 Kb     with -O optimisation
>> option set during compile.  alas it is not going to perform quite as
>> well without the 'tr' utility.
>>  as it is.....   <<=====   becomes  =====<<
>
>Can that be fixed to make it do a perfect reversal?

[][ i'm currently trying to make a first-fit compile of tr.c the unix
[][ character translation tool......that'll fix it.

[][ the above example could be fixed using 'sed' but it wouldn't work
[][ on complex pics
>
>
>
>I uudecoded it OK to yield the executable ASC-TOOL.EXE size 39690Kb.
>
[][ thats the wrong file size!

 Volume in drive C has no label
 Volume Serial Number is 386D-18FD
 Directory of C:\usr\colin\download

ASCIIT~1 TGZ         3,149  08-03-98  7:53p asciitools.tgz
ASCIIT~1 TXT        14,840  08-03-98  7:54p asciitools.txt
ASC-TOOL EXE        64,335  08-06-98  8:37p Asc-tool.exe
         3 file(s)         82,324 bytes
         0 dir(s)     293,502,976 bytes free

[][ i also downloaded and uudecoded the file as shown above....
[][ .... tested it too and it worked ok.

>When I run it I get the error message " Load error: no DPMI " which
>conveys nothing to me but probably has something to do with the
[snip]
>Now I don't have an executable named CWSDPMI.EXE...do you?

[][ no, me neither!   try downloading it again ... and retry.
[][ if you still get errors i'll pklite it then uuencode it and
[][ try sending it as one chunk.

[][ see yuz
[][ colin
-- 
( () /_ / /\)   _/   /? .\ /\) /) .\ /_ /_
CJRandall http://www.shieldwolf.demon.co.uk

In article <qPq...@shieldwolf.demon.co.uk>, CJRandall
<col...@shieldwolf.demon.co.uk> writes
>In article <902...@mnementh.southern.co.nz>, Colin Douthwaite
><cfb...@southern.co.nz> writes
>>
>>Can that be fixed to make it do a perfect reversal?
>
[][ *All* the bits you need to do a perfect reversal!

[][ i have just sent the uuencoded zip file
[][   asctools.zip   110 Kb ;  uuencoded: 146 Kb
[][ as one chunk to   news:alt.binaries.misc


        []())
         ~_~


[][ just have to wait and see if it reaches you
[][ without being damaged

[][][ see yuz
[][][ colin
-- 
( () /_ / /\)   _/   /? .\ /\) /) .\ /_ /_
CJRandall http://www.shieldwolf.demon.co.uk

CJRandall <col...@shieldwolf.demon.co.uk> ASCII art 12 Aug 1998 00:00 · permalink · report
   ASC-TOOLS  Information    for asciitool.c for dos

=======================================================================
i didn't think i'd have to do this.....

...to save me re-posting a tidier package...

...here is an installation procedure and
 a brief explanation on how the tools work...



  -=O[  Instructions to install Ascii-Tools  ]O=-
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1.  obtain the following zip archives from news:alt.ascii-art.animation

        ASCTOOLS.ZIP  111.824 Kb   9th August 1998
        ASCTOOL2.ZIP   29.754 Kb  11th August 1998

2.  unzip ASCTOOLS.ZIP to a directory (eg.  C:\AT)

3.  rename ASC-TOOL.EXE to ASC-T386.EXE
    rename TR.EXE       to TR-386.EXE
    rename SED.EXE      to SED-386.EXE

4.  unzip ASCTOOL2.ZIP to the same directory as ASCTOOLS.ZIP
    (over-writing the batch files)

5.  check the files against this list :-

      ASC-TOOL.EXE  11.402 Kb  Ascii picture raw rotation tool
                               (no DPMI required)
      ASC-TOOL.TXT   1.125 Kb  brief help page for ASC-TOOL.EXE
      ASC-TOOL.C     6.816 Kb  source-code used for ASC-TOOL.EXE
      ASC-T386.EXE  65.045 Kb  Ascii picture raw rotation tool (i386)
                               (requires 386 or higher and CWSDPMI.EXE)
      TR-386.EXE    86.314 Kb  Unix character translation tool (i386)
                               (requires 386 or higher and CWSDPMI.EXE)
      SED-386.EXE   73.216 Kb  Unix stream editor (i386 version)
                               (requires 386 or higher and CWSDPMI.EXE)
      CWSDPMI.EXE   25.920 Kb  DPMI support for i386 executables
                               (requires 386 or higher)
      CWSDPMI.DOC    7.060 Kb  documentation sheet for CWSDPMI.EXE
      LR.BAT         0.930 Kb  flip ascii picture left-right
      TB.BAT         0.673 Kb  flip ascii picture top-bottom
      CW90.BAT       0.799 Kb  rotate clockwise 90 degrees
      CCW90.BAT      0.811 Kb  rotate counter-clockwise 90 degrees
      asciitool.tgz  3.149 Kb  original unix source-code asciitool.c
                               and unix shell scripts.

6.  add the directory  C:\AT  to your PATH environment variable if you
    wish to run the batch-files from any location.



  -=O[  Brief Description of how these tools work  ]O=-
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  The batch-files first call  ASC-TOOL.EXE  to perform raw flips and
  rotations of ascii-art pictures,

  like this :-

  type test1.asc

          >>--->

  asc-tool -mh test1.asc

          >--->>

  The output from ASC-TOOL.EXE is then piped to  TR-386.EXE  which
  re-maps (translates) the characters according to two sets of
  characters supplied as parameters.

  The first set are characters to be re-mapped and
  the second set are the characters the first set will be re-mapped to,

  like this :-

  type test2.asc

          >--->>

  tr-386 ">" "<" test2.asc

          <---<<

  tr-386 "->" "=<" test2.asc

          <===<<

  The resulting output from TR-386.EXE may then be piped to SED-386.EXE
  which simply strips any trailing space characters, using the command

  sed-386 "s/ $*//"

  Trailing space characters in a document could be removed using the
  command :-

  sed-386 "s/ $*//" document.txt >doc-stripped.txt


  SUMMARY
  -------
  Thus the process for LH.BAT is :-

  type %1;  asc-tool -mh %1 | tr-386 "->" "=<" | sed-386 "s/ $*//"

  >>--->        >--->>           <===<<


  !..hope all this makes sense..!

[][][ see yuz
[][][ colin
-- 
( () /_ / /\)   _/   /? .\ /\) /) .\ /_ /_
CJRandall http://www.shieldwolf.demon.co.uk

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art.animation in 1998 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post