home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / v / vsnbl220.zip / GENTRAN.TTI < prev    next >
Text File  |  1991-02-14  |  862b  |  30 lines

  1. ! GENTRAN.TTI
  2. !
  3. ! This sample translation file demonstrates some of the things
  4. ! which can be done with the simple GENTRAN program.  The following
  5. ! GENTRAN directives will cause all excess spaces to be removed
  6. ! from the file, vowels to be converted to asterisks, and some other
  7. ! interesting functions.
  8. !
  9. ! Echo the translation to the pc screen:
  10. %TRACE
  11. !
  12. ! Collapse the lines (remove leading and trailing blanks, and compress blanks)
  13. %COLLAPSE
  14. !
  15. ! Change all asterisks in the first position of the record to !s.
  16. \POS(0) "*"\ \"!"\
  17. !
  18. ! Replace "George" with "Harry"
  19. !\"George"\ \"Harry"\
  20. !
  21. ! Change all vowels to asterisks:
  22. \ANY("AEIOUaeiou")\ \"*"\
  23. !
  24. ! Change all periods to commas
  25. \'.'\ \","\
  26. !
  27. ! Convert upper or lower case J,K,L,M and N to 1,2,3,4 or 5.
  28. \SPAN("JKLMNjklmn") . WORD\ \*(REPLACE(WORD,"JKLMNjklmn","1234512345"))\
  29.  
  30.