home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / utils / f / replace.ark / REPLACE.DOC < prev   
Encoding:
Text File  |  1987-01-20  |  8.0 KB  |  197 lines

  1.  
  2.  
  3.  
  4.                                   REPLAC┼ V1.▒ 
  5.                                   
  6.  
  7.              REPLAC┼ i≤ ß prograφ designeΣ t∩ cop∙ ß file¼ anΣ a≤ i⌠ doe≤ ì
  8.         so¼á t∩ replacσ certaiε set≤ oµ character≤ (calleΣ KE┘ STRING╙ o≥ ì
  9.         KEYS⌐ witΦ othe≥ sucΦ sets« Ke∙ string≤ ma∙ bσ specifieΣ froφ thσ ì
  10.         compute≥ keyboard¼ o≥ froφ ß previousl∙ createΣ disδ file.
  11.  
  12.         OPERATION:
  13.  
  14.              Typσ REPLAC┼ anΣ hi⌠ ß carriagσ return« Yo⌡ wil∞ bσ askeΣ t∩ ì
  15.         specif∙á thσ filσ iε whicΦ thσ replacement≤ arσ t∩ bσá madσá (thσ ì
  16.         INPU╘á file)¼á anΣá thσ filσ t∩ receivσ thσ change≤á (thσá OUTPU╘ ì
  17.         file)«á Yo⌡á wil∞á theεá bσ askeΣ ho≈ thσ key≤ arσ t∩á bσá input¼ ì
  18.         eithe≥á froφá thσ keyboard¼á o≥ froφ ß file«á Iµ yo⌡á choosσá thσ ì
  19.         keyboarΣá optioεá yo⌡ wil∞ bσ prompteΣ fo≥ key≤ t∩ bσá founΣá anΣ ì
  20.         wha⌠á the∙ arσ t∩ bσ replaceΣ with«á Wheε yo⌡ wan⌠ t∩á star⌠á thσ ì
  21.         replacemen⌠ process¼ jus⌠ hi⌠ ß carriagσ returε wheε prompteΣ fo≥ ì
  22.         thσ nex⌠ ke∙ t∩ bσ found«á Iµ thσ filσ optioε i≤ chosen¼ yo⌡ wil∞ ì
  23.         bσá askeΣá fo≥ thσ namσ oµ thσ filσ tha⌠ contain≤ thσ key≤ t∩á bσ ì
  24.         founΣá anΣá replaceΣá (ho≈ t∩ preparσ sucΦ ßá filσá i≤á discusseΣ ì
  25.         below)«á Thσ prograφ wil∞ theε reaΣ iε thσ keys¼á displa∙ theφ oε ì
  26.         thσ screen¼ anΣ automaticall∙ star⌠ thσ replacemen⌠ process« 
  27.  
  28.         SPECIFYIN╟ KEYS:
  29.  
  30.              Simplσ alpha-numeriπ key≤ arσ formeΣ b∙ simpl∙ typinτ iε thσ ì
  31.         letter≤ o≥ number≤ yo⌡ wisΦ t∩ finΣ anΣ replace« Space≤ anΣ othe≥ ì
  32.         character≤á tha⌠á appea≥ oε thσ keyboarΣ ma∙ als∩ bσá entereΣá iε ì
  33.         thi≤ fashion¼ witΦ thσ exceptioε oµ thσ characte≥ ^.
  34.  
  35.              ▐ ma∙ bσ useΣ t∩ ente≥ character≤ tha⌠ d∩ no⌠ appea≥ oεá thσ ì
  36.         keyboard¼á sucΦá a≤á contro∞ character≤ anΣ carriagσá returεá anΣ ì
  37.         line-feeΣ characters« It≤ usσ ma∙ takσ fou≥ forms.
  38.  
  39.         The∙ are:
  40.  
  41.         1⌐ ^▐ - represent≤ ß singlσ ▐ iε thσ ke∙ string.
  42.  
  43.         2⌐áá ^┴á  - wherσá ┴á i≤á an∙á lette≥á A-Z«áá I⌠á represent≤á thσ ì
  44.         correspondinτ control-characte≥ iε thσ ke∙ string.
  45.  
  46.         3⌐á ^(###⌐á - wherσá ##ú i≤ ß ▒ t∩ │á digi⌠á decima∞á number«á I⌠ ì
  47.         represent≤ characte≥ numbe≥ ##ú oµ thσ ASCI╔ sequencσ iε thσá ke∙ ì
  48.         string.
  49.  
  50.         4⌐á ^(##H⌐á - wherσ #ú i≤ ß ▒ o≥ ▓ digi⌠ hexadecima∞á number«á I⌠ ì
  51.         represent≤ characte≥ numbe≥ ##╚ oµ thσ ASCI╔ sequencσ iε thσá ke∙ ì
  52.         string.
  53.  
  54.         Usinτá thesσ form≤ al∞ ASCI╔ character≤ 0-25╡ ma∙ bσá representeΣ ì
  55.         iε eithe≥ thσ FIN─ o≥ REPLAC┼ keys.
  56.  
  57.              Thσá forma⌠ oµ key≤ i≤ thσ same¼á regardles≤ oµ whethe≥ the∙ ì
  58.         arσ entereΣ froφ thσ keyboarΣ o≥ froφ ß file.
  59. è
  60.  
  61.                                         1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.         PREPARIN╟ ┴ FIL┼ CONTAININ╟ KEYS
  72.  
  73.              ┴ filσ containinτ key≤ ma∙ bσ prepareΣ oε an∙ worΣ processo≥ ì
  74.         o≥á edito≥ tha⌠ use≤ ASCI╔ file≤ (WordSta≥ shoulΣ bσ useΣ iεá thσ ì
  75.         Non-Documen⌠ mode)«á Thσ filσ shoulΣ contaiε pair≤ oµá lines«á Oε ì
  76.         thσá firs⌠ linσ shoulΣ bσ thσ strinτ yo⌡ wan⌠ t∩ FIN─ anΣ oεá thσ ì
  77.         seconΣá linσá shoulΣ bσ thσ strinτ yo⌡ wan⌠ t∩ REPLAC┼á i⌠á with« ì
  78.         Pair≤á oµ ke∙ string≤ shoulΣ bσ separateΣ b∙ onσ blanδ line«á Ke∙ ì
  79.         string≤á ma∙á bσ u≡ t∩ 8░ iε lengtΦ anΣ therσ i≤ ßá limi⌠á oµá 3░ ì
  80.         pair≤ allowed.
  81.  
  82.         USIN╟ OPTIONS
  83.  
  84.              Tw∩á option≤ arσ provideΣ t∩ aiΣ iε thσ usσ oµ thσá program« ì
  85.         BotΦá appl∙á onl∙ t∩ thσ findinτ oµ matche≤ betweeε thσ finΣá ke∙ ì
  86.         anΣ thσ sourcσ text« The∙ d∩ no⌠ appl∙ t∩ thσ replacσ key«     
  87.  
  88.              Thσ firs⌠ optioε i≤ t∩ ignorσ thσ parity-bit≤ iε thσá sourcσ ì
  89.         file« Somσ background║ therσ arσ eigh⌠ bit≤ useΣ t∩ describσ  thσ ì
  90.         25╢ differen⌠ character≤ iε thσ ASCI╔ character-set«á Onl∙ ╖ bit≤ ì
  91.         arσ needeΣ t∩ specif∙ al∞ oµ thσ character≤ oε thσ keyboard¼ plu≤ ì
  92.         thσá contro∞ characters«á Thσ eightΦ bi⌠ (herσ calleΣ thσ parity-ì
  93.         bit⌐á i≤á no⌠ normall∙á used«á However¼á somσá programs¼á notabl∙ ì
  94.         WordStar¼á usσá thi≤á eightΦá bi⌠ t∩ marδ thσ enΣá oµá word≤á anΣ ì
  95.         differentiatσá betweeε "softó anΣ "hardóá carriagσá returns«á Thσ ì
  96.         defaul⌠á fo≥á thσá prograφá i≤ t∩ ignorσá thi≤á eightΦá bit«á Fo≥ ì
  97.         instance¼á thσá lette≥á "Eóá wil∞ matcΦ u≡á witΦá botΦá characte≥ ì
  98.         number≤ 6╣ anΣ 19╢ (=127+69⌐ (decimal⌐ iε thσ ASCI╔ sequence«á Iµ ì
  99.         thi≤ optioε i≤ turneΣ off¼á "Eó woulΣ onl∙ matcΦ characte≥ numbe≥ ì
  100.         69«á Thi≤ optioε doe≤ no⌠ affec⌠ matche≤ wherσ thσ eightΦ bi⌠ ha≤ ì
  101.         beeε se⌠ iε thσ finΣ key«á ^(196⌐ matche≤ onl∙ characte≥ 196¼á n∩ ì
  102.         matte≥ whicΦ optioε i≤ selected.
  103.  
  104.              Thσ seconΣ optioε direct≤ thσ prograφ t∩ ignorσá difference≤ ì
  105.         iεá casσ wheε searchinτ fo≥ thσ occurrencσ oµ ß ke∙ iε thσ sourcσ ì
  106.         file«á  Fo≥ instance¼á iµ thi≤ optioε i≤ selecteΣ "Eó wil∞á matcΦ ì
  107.         botΦ "Eó anΣ "e"«á Iµ thi≤ optioε i≤ no⌠ selected¼á i⌠ wil∞ matcΦ ì
  108.         onl∙ "E"« Thσ defaul⌠ settinτ fo≥ thσ prograφ i≤ t∩ pa∙ attentioε ì
  109.         t∩ difference≤ iε case.
  110.  
  111.         LIMITATIONS:
  112.  
  113.         1⌐á Thσ prograφ ma∙ ruε ou⌠ oµ memor∙ spacσ iµ thσ ke∙ string≤ t∩ ì
  114.         bσá replaceΣ arσ mucΦ large≥ thaε thσ key≤ t∩ bσ founΣ anΣá occu≥ ì
  115.         frequently«á Iµ thi≤ occurs¼ thσ prograφ wil∞ terminatσ witΦ run-ì
  116.         timσ erro≥ FF« T∩ ge⌠ arounΣ thi≤ problem¼ usσ fewe≥ set≤ oµ key≤ ì
  117.         a⌠ onσ time¼ o≥ makσ thσ replacσ key≤ shorter.
  118.  
  119.         2⌐á Iµá therσ i≤ no⌠ rooφ oε thσ disδ fo≥ thσá outpu⌠á file¼á I/╧ ì
  120.         error≤ F░ o≥ F▒ ma∙ occu≥ anΣ causσ prograφ termination« 
  121.  
  122.         3⌐á Thσ onl∙ characte≥ tha⌠ wil∞ no⌠ worδ a≤ ß finΣ ke∙á iεá thi≤ ì
  123.         prograφá i≤ ^┌ (control-Z¼á ASCI╔ 2╢ o≥ 1AH⌐ whicΦ i≤ useΣ a≤á aε ì
  124.         end-of-filσ marker.
  125. è
  126.  
  127.                                         2
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.         4⌐ Thσ prograφ i≤ designeΣ fo≥ mas≤ replacing«á I⌠ doe≤ no⌠ quer∙ ì
  138.         t∩á bσá surσ tha⌠ i⌠ onl∙ replace≤ wha⌠ yo⌡ wan⌠á replaced«á Makσ ì
  139.         surσá tha⌠ you≥ key≤ t∩ bσ founΣ anΣ replaceΣ arσá uniquσá enougΦ ì
  140.         tha⌠ onl∙ thσ correc⌠ substitution≤ arσ made.
  141.  
  142.         EXAMPLE
  143.  
  144.         Iε Sourcσ filσ ║ Thi≤ i≤ aε exameplσ oµ somσ Tex
  145.  
  146.             FinΣ Ke∙ ▒ ║ Tex
  147.  
  148.          Replacσ Ke∙ ▒ ║ TEXT
  149.  
  150.             FinΣ Ke∙ ▓ ║ me
  151.  
  152.          Replacσ Ke∙ ▓ ║ φ 
  153.  
  154.         Iε Outpu⌠ filσ ║ Thi≤ i≤ aε examplσ oµ soφ TEXT
  155.  
  156.         Notσá tha⌠ thσ los≤ oµ thσ lette≥ "eó froφ thσ worΣ "someóá woulΣ ì
  157.         no⌠ havσ occurreΣ iµ wσ haΣ useΣ thσ finΣ ke∙ "ameó (witΦ replacσ ì
  158.         ke∙ "amó insteaΣ oµ jus⌠ "m").
  159.  
  160.         5⌐ Replace≤ arσ donσ sequentially¼ iε thσ orde≥ iε whicΦ the∙ arσ ì
  161.         entered«á Thi≤ mean≤ tha⌠ iµ  ß replacσ ke∙ (o≥ ß portioε of⌐á i≤ ì
  162.         useΣá late≥ a≤ ß finΣ key¼á tha⌠ replacσ ke∙ (o≥ portioε of⌐ wil∞ ì
  163.         bσ itselµ replaced.
  164.  
  165.  
  166.         POTENTIA╠ USES
  167.  
  168.         1⌐á T∩á savσá keystroke≤á wheεá writing«á Usσá abbreviation≤á fo≥ ì
  169.         frequentl∙ useΣ word≤ o≥ phrases«á  Se⌠ u≡ ß filσ containinτá thσ ì
  170.         abbreviation≤á a≤á thσ finΣ key≤ anΣ thσ word≤ o≥ phrase≤ a≤á thσ ì
  171.         replacσ keys.
  172.  
  173.         2⌐á T∩á rapidl∙ inser⌠ prin⌠ control≤ whilσá usinτá WordStar«á Iµ ì
  174.         therσ i≤ ß worΣ o≥ phrasσ tha⌠ need≤ t∩ bσ alway≤ underlineΣ (fo≥ ì
  175.         examplσ ║ e⌠ al.⌐ usσ thσ worΣ a≤ ß finΣ ke∙ (e⌠ al.⌐ anΣ fo≥ thσ ì
  176.         replacσ key¼á usσ thσ worΣ plu≤ thσ requireΣ prin⌠ control≤ (^Se⌠ ì
  177.         al^S.)« 
  178.  
  179.         3⌐á T∩á conver⌠á file≤á froφ othe≥á word-processinτá program≤á t∩ ì
  180.         WordStar«á FinΣ ^═ anΣ replacσ i⌠ witΦ ^(140⌐ t∩ conver⌠ al∞á thσ ì
  181.         harΣ carriagσ return≤ t∩ sof⌠ ones.
  182.  
  183.  
  184.         WordSta≥ i≤ ß trademarδ oµ MicroPr∩ Internationa∞ Corp.
  185.  
  186.         Thσ REPLAC┼ prograφ i≤ freσ fo≥ publiπ distribution¼á bu⌠ ma∙ no⌠ ì
  187.         bσ solΣ withou⌠ thσ writteε authorizatioε oµ Johε Porter.
  188.  
  189.         Copyrigh⌠ (c⌐ 198╡ b∙ Johε Porter
  190.  
  191.  
  192.  
  193.                                         3
  194.  
  195.  
  196.  
  197.  
  198.  
  199.