home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / sprint / char.arc / char.spm
Encoding:
Text File  |  1989-07-02  |  2.5 KB  |  52 lines

  1. ;            A S C I I   P R I N T E R   T E S T   C H A R T
  2.  
  3. ;                                                       (c) 1989 Ralph Roberts
  4.  
  5. ; CHAR.SPM is a Sprint macro that  came about through  my annoyance  in trying
  6. ; to find a special character on a PostScript laser printer.  Ever notice that
  7. ; the durn character tables  are never to hand when  you NEED them? This macro
  8. ; will dump a neat ASCII chart, with the character decimal  equavalents into a
  9. ; document file.  Thus you can use it  for whatever printer and font currently
  10. ; selected by Sprint. I've found it to be exceptionally handy! Enjoy.
  11.  
  12. ; TO INSTALL:  To put this macro into Sprint,  simply load this  file, exactly
  13. ; as it is. If there is a ruler at the top, remove it. Then type the ALT-U-M-R
  14. ; key combination and this macro will be compiled. Next, use the ALT-U-M-E key
  15. ; combination. When it reads, "Enter Macro:"  on the status line at the bottom
  16. ; of your screen, type in the name "CHARGEN" and hit the <ENTER> key.  You may
  17. ; either execute your  new macro, or assign it to a key or key combination for
  18. ; ease-of-use in the future. Enjoy!
  19.  
  20. ; CHAR.SPM and the other unique Sprint macros in this series are all the copy-
  21. ; righted property of Ralph Roberts.   You may distribute and use them  freely
  22. ; if the macros are  properly attributed & my copyright notice remains intact.
  23. ; They are, frankly, advertisements for my book on Sprint, and the other help-
  24. ; ful computer-oriented books that I write.  Helping  fellow computer users is
  25. ; how I make my living, so please look for my books and articles. Thanks.
  26.  
  27. ; Ralph Roberts,  the author of this macro,  also wrote the comprehensive book,
  28. ; COMPUTE!'S USING BORLAND'S SPRINT.  Autographed copies of this  100,000-word+
  29. ; book are now available for the retail price of $16.95 (ppd)  from  the author
  30. ; at: P.O. Box 8549, Asheville, North Carolina 28814, or you may buy it through
  31. ; your local Waldenbooks, B. Dalton's, or other quality bookstore.
  32.  
  33.  
  34. CharGen:
  35.         33 -> x
  36.          0 -> y
  37.  
  38.         "^OBEGIN VERBATIM,SPACING 1^N^J^J"
  39.         "^F^BA S C I I   P R I N T E R   T E S T   C H A R T^N^F^J^J"
  40.         "^FCourtesy of "
  41.         "^UCOMPUTE!'S USING BORLAND'S SPRINT^N by Ralph Roberts^F^J^J"
  42.  
  43.         while x < 256 {
  44.              if x < 100 (" ")
  45.              x put current
  46.              " " x -> current "  " draw
  47.              x + 1 -> x
  48.              y + 6 -> y
  49.              if y = 54 ("^J" 0 -> y)}
  50.  
  51.         "^OEND VERBATIM^N" 26 up tosol
  52.