home *** CD-ROM | disk | FTP | other *** search
- .op
- WordStar file utility -- 9-21-85 Ver 1.0P
- Copyright 1985 by Dean A. Fields
-
- Thi≤á prograφá i≤ releaseΣ t∩ thσ Publiπ Domaiε anΣá ma∙á bσ ì
- freel∙á distributeΣá anΣ copied¼á bu⌠ ma∙ no⌠ bσ solΣ withou⌠áthσ ì
- author≤ writteε permission.
-
- All Rights Reserved
-
-
- Written in TURBO PASCAL Ver. 3.0
- on a COMPAQ
-
- Tested on a:
- COMPAQ MsDos 3.1
- KAYPRO 4-84 CP/M 2.2
-
- T∩ usσ thi≤ prograφ, typσ thσ prograφ name¼áTBLCTENT¼ a⌠ thσ ì
- DO╙á prompt¼á anΣ pres≤ thσ returε key«á Thσ prograφ wil∞á firs⌠ ì
- announcσá itself¼á anΣ theε promp⌠ fo≥ thσ namσ oµ thσ filσá tha⌠ ì
- the table of content is to be created from.
-
- Thi≤á prograφá create≤ ß Tablσ oµ Content≤á fo≥á ßá WordSta≥ ì
- documen⌠á file«á TBLCTEN╘á look≤ fo≥ contro∞á codes¼á anΣá take≤ ì
- whateve≥á i≤ betweeε theφ anΣ place≤ i⌠ iε thσ tablσ oµá content≤ ì
- file« Thσ contro∞ code≤ are¼ ^╥ t∩ star⌠ anΣ sto≡ inclusioε int∩ ì
- thσá tablσá oµá content≤ file«á The∙ arσ placeΣ iε thσá filσá b∙ ì
- enterinτá ßá ^P^╥ a⌠ thσ beginninτ anΣ enΣ oµ thσá tex⌠á yo⌡áwan⌠ ì
- includeΣ int∩ thσ tablσ oµ content≤ file«á Thσ ^R'≤ shoulΣ neve≥ ì
- havσá WordSta≥ do⌠ command≤ betweeε them«á Thσ namσ oµ thσ tablσ ì
- oµá content≤ filσ i≤ thσ samσ a≤ thσ inpu⌠ document¼á excep⌠á thσ ì
- filσá typσá whicΦ i≤ ".TBC"«á Thσ maximuφ numbe≥á oµá character≤ ì
- alloweΣá iεá ßá Tablσ oµ Conten⌠ entr∙ i≤ 55¼á iµá morσá theεá 5╡ ì
- character≤á appea≥ betweeε thσ ^R's¼á theε thσ Tablσá oµá Conten⌠ ì
- entr∙ i≤ truncateΣ t∩ 5╡ characters.
-
- Afte≥á yo⌡ ente≥ thσ filσ namσ tha⌠ thσ tablσ oµ conten⌠á i≤ ì
- t∩á bσá createΣá from¼á TBLCTEN╘ wil∞ tr∙ t∩ opeε tha⌠á filσá fo≥ ì
- input«á Iµ thσ filσ caε no⌠ bσ openeΣ (ie« becausσ i⌠ caε no⌠ bσ ì
- founΣá o≥á something⌐á thσá conditioε i≤á reporteΣá anΣá yo⌡á arσ ì
- reprompteΣ fo≥ aε inpu⌠ filσ name«á Thi≤ prograφ caε bσá aborteΣ ì
- a⌠á anytimσ b∙ ß ^C«á Iµ thσ inpu⌠ filσ namσ i≤ found¼á theε thσ ì
- outpu⌠á filσá (Tablσ oµ Conten⌠ file⌐ i≤á checkeΣá for«á Iµá thσ ì
- outpu⌠á filσá alread∙ exist¼á yo⌡ arσ giveε thσ optioε oµá eithe≥ ì
- deletinτ i⌠ (overwrittinτ i⌠ )¼ o≥ cancelinτ thσ program« Iµ yo⌡ ì
- deletσá it¼á theε processinτ continue≤ a≤ iµ thσ filσá haΣá neve≥ ì
- existed.
-
- Durinτá processing¼á TBLCTEN╘á report≤á page≤á tha⌠á i⌠á ha≤ ì
- scanneΣáá fo≥á tablσá oµá conten⌠á entries╗áá s∩á yo⌡á caεáá tel∞ ì
- approximatel∙á ho≈á fa≥á yo⌡ arσ iε thσá inpu⌠á document«á Page≤ ì
- covereΣ b∙ ß .O╨ command arσ no⌠ counted«
- .paè Thσ followinτ describe≤ ho≈ thσ WordSta≥ .OP¼ .PA¼ anΣ .P╬ ε ì
- commands are treated by TBLCTENT:
-
- ááááááááá.OPááácause≤á thσá prograφ t∩ sto≡ searchinτá fo≥á Tablσì
- áááááááááááááááoµ Conten⌠ information¼ becausσ .O╨ turn≤ ofµ pagσì
- ááááááááááááááánumbe≥á anΣá thereforσ therσ i≤ n∩ pagσ numbe≥á t∩ì
- áááááááááááááááassociatσ t∩ thσ Tablσ oµ Conten⌠ entry¼á anΣ thu≤ì
- ááááááááááááááán∩á reasoεá t∩á repor⌠ ß Tablσ oµá Conten⌠á entry« ì
- áááááááááááááááTablσá oµ Conten⌠ searchinτ resume≤ witΦ thσá nex⌠ ì
- ááááááááááááááá.PN n command encountered.
-
- ááááááááá.PAááácause≤ thσ pagσ numbe≥ variablσ t∩ bσ incremented
-
- ááááááááá.PN náácause≤á thσá pagσá numbe≥ variablσ t∩á bσá se⌠át∩ ì
- ááááááááááááááánumbe≥á εá oµ thσ .P╬ ε command«á εá caεá no⌠á bσ ì
- ááááááááááááááálarge≥ thaε 9999¼ unles≤ provision≤ arσ madσ t∩ d∩ ì
- áááááááááááááááthe following:
- áááááááááááááááááááá1⌐á - MaxNuφá iεá thσ CONS╘á sectioεá a⌠á thσ ì
- áááááááááááááááááááábeginninτá oµ thσ prograφ mus⌠ bσ changeΣá t∩ ì
- ááááááááááááááááááááaccommodate the new size
-
- áááááááááááááááááááá2⌐áá - thσáá "CAS┼á pnd°á ofóá structurσáá iε ì
- ááááááááááááááááááááProcedurσ test_linσ mus⌠ bσ changeΣ t∩ handlσ ì
- ááááááááááááááááááááthe larger page numbers
-
- áááááááááááááááááááá3⌐áá - Procedurσáá translate_linσáá mus⌠áá bσ ì
- áááááááááááááááááááámodifieΣá t∩áaccommodatσá thσá ne≈á TB├áálinσ ì
- ááááááááááááááááááááformat¼ááá whicΦáá include≤áá balancinτáá anΣ ì
- áááááááááááááááááááácentering of the TBC entry.
-
- Oncσá thσ Tablσ oµ Conten⌠ filσ ha≤ beeε created¼á i⌠ caε bσ ì
- editeΣá witΦá WordSta≥ t∩ adΣ iε printe≥ contro∞ code≤á fo≥á you≥ ì
- specifiπ typσ oµ printer«á Oε somσ machine≤ thσ Tablσ oµ Conten⌠ ì
- filσ wil∞ contaiε ß fe≈ ^@'≤ a⌠ thσ enΣ oµ thσ file╗á Thσ ^@'≤ d∩ ì
- no⌠á print«á Yo⌡á caεá ignorσ theφ o≥ deletσ theφá i⌠á make≤á n∩ ì
- difference.