home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d7xx / d768 / uedit.lha / Uedit / Documentation / UEP-cmds < prev    next >
Text File  |  1992-11-22  |  3KB  |  77 lines

  1. The following commands are for use with UEP, when the text is to be processed
  2. by the F filter program.
  3.  
  4. The commands which contain a printer control sequence a) are for the Canon
  5. BJ130 bubble jet printer and must be modified to suit your printer, and b)
  6. insert a trailing ESC which the F program recognizes and throws away:
  7.  
  8.  
  9. Insert printer code to turn ON non-proportoional (10 cpi) font
  10. <shftAltCtl-s: insertRgn(curFile,atCursor,":",all)>
  11.  
  12. Insert printer code to turn ON proportional font
  13. <shftAltCtl-e: insertRgn(curFile,atCursor,"P",all)>
  14.  
  15. Bracket entire line with prtr codes to turn on boldface & then back off at eol
  16. <shftAltCtl-buttonDown:
  17.     movecursor(curfile,mouseloc)
  18.     if (is(curFile,blankLine)) return
  19.     if (not is(curFile,sLine)) moveCursor(curFile,sLine)
  20.     insertRgn(curFile,atcursor,"E",all)
  21.     moveCursor(curFile,eLine)
  22.     ..while (not is(curFile,whitespace)) moveCursor(curFile,echar)
  23.     insertRgn(curfile,atcursor,"F",all)
  24. >
  25.  
  26.  
  27. The following brackets a line with F-program and printer control codes to 1)
  28. slide the text to the right, right-justifying it, 2) turn on boldface, 3)
  29. turn on tall printing, and 4) turn off boldface & tall printing at the end of
  30. the text.  This is used for printing big bold chapter headings up against the
  31. right border of the page.  (All new chapters begin on an odd-numbered page,
  32. and hence the chapter title is against the right border.)  (Note that the two
  33. literals each contain not one but two printer control sequences, EACH ending
  34. with a trailing ESC which the F program will recognize and throw away.  Note
  35. also that the "CM" control sequence begins with ASCII 28, not with ESC.)
  36.  
  37. <shftCtl-buttondown:
  38.     movecursor(curfile,mouseloc)
  39.     if (is(curFile,blankLine)) return
  40.     if (not is(curFile,sLine)) moveCursor(curFile,sLine)
  41.     insertRgn(curFile,atcursor,"@ ECM",all)
  42.     moveCursor(curFile,eLine)
  43.     moveCursor(curFile,eChar)
  44.     insertRgn(curfile,atcursor,"FCM",all)
  45. >
  46.  
  47.  
  48. The following uses insertChar() so wordwrapping cannot occur when the "`" is
  49. typed in.
  50.  
  51. Insert ASCII 96 (`) character at cursor
  52. <normal-`: insertChar(curFile,"`")  >
  53.  
  54.  
  55. The following two commands are useful for converting between ascii 32 & ascii
  56. 27 "space" characters.  The cmds abort when the cursor reaches end of page.
  57. If you mistakenly convert some spaces, you can reverse it by using the other
  58. command.
  59.  
  60. Advance cursur to next ASCII 32 space and convert to ASCII 127 space
  61. <alt-space:
  62.             while (not is(curFile," "))  {
  63.                 movecursor(curfile,echar)
  64.                 if (is(curFile,ePage)) abort
  65.             }
  66.             if (is(curfile," "))  swapChar(curfile,127) >
  67.  
  68. Advance cursur to next ASCII 127 space and convert to ASCII 32 space
  69. <ctl-space:
  70.             while (not is(curFile,127)) {
  71.                 movecursor(curfile,echar)
  72.                 if (is(curFile,ePage)) abort
  73.             }
  74.             if (is(curfile,127))  swapChar(curfile," ") >
  75.  >
  76.  
  77.