home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / txt / chrxlt.do < prev    next >
Text File  |  2006-10-19  |  2KB  |  43 lines

  1. Club 100 Library - 415/939-1246 BBS,    937-5039 NEWSLETTER, 932-8856 VOICE
  2.  
  3. Documentation for CHRXLT.BA, a Character Translator
  4. ---------------------------------------------------
  5.  
  6. CHRXLT.BA is a text file character translator for the Tandy
  7. 100/102/200.  It goes through a text file and replaces designated
  8. characters by specified replacement characters.  I wrote it as
  9. part of the process of developing a tool to translate T-WORD files
  10. into Wordstar files (i.e., translate the embedded print codes).
  11.  
  12. The translation tables are inputted in line 100-120.  Line 100
  13. specifies the number of characters to be converted.  Line 110
  14. identifies the input file characters (decimal representation) to
  15. be converted, and line 120 specifies the new values in the output
  16. file.  Lines 110 and 120 must both have the number of entries
  17. specified in Line 100.  Input/output files can be from any device,
  18. RAM being the most obvious one.
  19.  
  20. In the uploaded program the translations are:
  21.  
  22.  A -> ^A, B -> ^B, ..., I -> ^I and the reverse of each.
  23.  
  24. A typical four-line test file is:
  25.  
  26. AB
  27. ^A^B <create by CTRL-P,CTRL-A,CTRL-P,CTRL-B>
  28. CD
  29. ^C^D <create by CTRL-P,CTRL-C,CTRL-P,CTRL-D>
  30.  
  31. With the default data statements, the order within line pairs
  32. (1,2) and (3,4) will be reversed.
  33.  
  34. Certain characters will give some interesting results when
  35. converted -- one example being ^J = CHR$(10), which is a linefeed
  36. (the little "triangle" you see at the end of each line on your
  37. screen will be processed).
  38.  
  39. I'm not sure that this program "as-is" has any real practical
  40. applications -- but it may have.  Please report any you come up
  41. with!
  42.  
  43. Phil Wheeler