SCRIPT (markup)

From HandWiki
Short description: Markup language for IBM computers

SCRIPT,[1] any of a series of text markup languages starting with Script[2][3] under Control Program-67/Cambridge Monitor System (CP-67/CMS) and Script/370[4] under Virtual Machine Facility/370 (VM/370) and the Time Sharing Option (TSO) of OS/VS2; the current version, SCRIPT/VS,[5][6][7] is part of IBM's Document Composition Facility (DCF)[8] for IBM z/VM and z/OS systems. SCRIPT was developed for CP-67/CMS by Stuart Madnick[1][9] at MIT, succeeding CTSS RUNOFF.

SCRIPT is a procedural markup language. Inline commands called control words, indicated by a period in the first column of a logical line, describe the desired appearance of the formatted text. SCRIPT originally provided a 2PASS option to allow text to refer to variables defined later in the text, but subsequent versions allowed more than two passes.

History

In 1968 "IBM contracted Stuart Madnick of MIT to write a simple document preparation ..."[10][1] to run on CP/67.[11] He modeled it on MIT's CTSS RUNOFF.[12][13] In 1974, William Dwyer at Yale University ported the CP-67 version of Script to the Time Sharing Option (TSO) of OS/360 under the name NSCRIPT.[14] The University of Waterloo rewrote and extended NSCRIPT as Waterloo SCRIPT,[15] also in 1974, making it available for free to CMS and TSO users for several releases before eventually charging for new releases.

By 1978, IBM's Script/370, running on VM/CMS, had evolved into Document Composition Facility (DCF),[16] supporting SCRIPT/VS on CMS, DOS/VS, OS/VS1 and OS/VS2, and supported the IBM 3800.[10] In addition, there was a PC/MS-DOS version called SCRIPT/PC.[17]

Native SCRIPT control words

Native Script control begin with a period and have a space prior to operands. They normally begin in column 1, but you may code multiple control words, separated by semicolons, on a single line.

The description and table below refer to selected control words in DCF; older versions are similar.

SCRIPT allows space units in control words to be specified in a number of units including inches, centimeters, millimeters, picas, ciceros, m-spaces, or device units (pels at the current device resolution). Vertical space units are assumed to be lines unless otherwise specified.

control word function example
.sp Inserts blank vertical space .sp 1 Inserts one blank line
.ce Centers following lines .ce 2 Centers the following two lines on the current page or column
.ez Controls EasyScript .ez P foo bar Starts paragraph with text foo bar; equivalent to &P.foo bar after .ez on
.im Imbeds a file at the current location .im BLRPLT Inserts the file 'BLRPLT SCRIPT'
.ju Turn on/off justify mode .ju on Requests that subsequent lines be justified
until .ju off is encountered
.rh Specify running head information .rh Identify following lines as running head
until .rh off is encountered
.df Define a named font .df examp type('Century Schoolbook' 10 light) Specifies attributes for font named 'examp'.
.bf Specify font for following text .bf title 'title' is the name of a font identified by a .df control word.
.se Assigns a value to a variable symbol .se month = January Assigns a value to the variable &month that will replace every subsequent occurrence of &month in the input text until &month is redefined.

SCRIPT macros

Script includes a facility for user-defined macros and for automatically reading a profile containing macro definitions and other commands. Several packages for semantic tagging, including GML and EasyScript, are built on top of this facility.

Generalized Markup Language

IBM's Generalized Markup Language (GML) is a descriptive markup layer describing the logical structure of a document. Both SCRIPT/VS and the GML Starter Set are part of IBM's Document Composition Facility (DCF), used in the System/370 platform and successors. The tag sets of the BookMaster[18][19] and BookManager BUILD/MVS[20] products are built on a foundation of the GML Starter Set syntax and implementation.

The Standard Generalized Markup Language (SGML) is a descendant of GML. While DCF does not directly handle SGML, there is an SGML translator available as a separate product.

EasyScript

EasyScript is a set of macro definitions and profiles included with Script/370[21] Version 3[22][23][24] that implements a primitive version of GML. Tags are variables whose values have been set to control words, allowing multiple tags in a single line.

.ez on
&P.This is a paragraph.
&N1.First item
&N2.First subitem
&N2.Second subitem
&N1.Second item

is roughly equivalent to

This is a paragraph

  1. First item
    1. First subitem
    2. Second subitem
  2. Second item

GML Starter Set (GMLSS)

The GML Starter Set (GMLSS)[25][26] is a set of macro definitions and profiles that implements[27] a set of tags that has more of a semantic orientation than the raw Script/VS control words. Tags begin with a colon and end with a period, and may contain attributes between the name and the closing period; a line may contain multiple tags.

BookMaster

Bookmaster is an IBM product, "designed for high-volume in-house publishing applications", that extends the GML Starter Set of DCF. It consists of "a rich set of GML vocabulary for creating complex document layouts." Bookmaster runs under the z/VM and z/OS operating systems.[18]

BookManager

BookManager is a family of products for producing and reading online books. BookManager BUILD/MVS and BookManager BUILD/VM are layered on top of SCRIPT and BookMaster and can run on z/VM and z/OS.[28] Other BookManager BUILD products for generating text run on Linux, Windows or OS/2 and convert files produced by various word processors to BookManager format. BookManager Read products for viewing text run on a variety of systems. BookManager BookServer is a multi-platform system to "serve your electronic books to HTML browsers."[29]

BookManager electronic documents typically have filenames ending with the extension .BOO. IBM offers several no charge tools to work with and read BookManager documents including a reader/viewer called IBM Softcopy Reader.[30] An independent developer, Ken Bowling, created and released software that uses IBM's BookManager code libraries to convert BookManager documents to PDF.[31]

See also

References

  1. 1.0 1.1 1.2 Stuart E. Madnick and Allen G. Moulton (1968) "SCRIPT, An Online Manuscript Processing System". http://web.mit.edu/smadnick/www/papers/J002.pdf. Retrieved 2012-09-12.  IEEE Transactions on Engineering Writing and Speech, Vol. EWS-11, No. 2, pp. 92-100.
  2. CMS SCRIPT User's Manual. IBM. GH20-0860. 
  3. "SCRIPT". Control Program-67/Cambridge Monitor System (CP-67/CMS) Version 3 Program Number 3600-05.2.005 User's Guide. IBM. October 1970. pp. 143[127]–177[163]. GH20-0859-0. http://bitsavers.org/pdf/ibm/360/cp67/GH20-0859-0_CP-67_Version_3_Users_Guide_Oct1970.pdf. 
  4. SCRIPT/370 Text Processing Facility Under Virtual Machine Facility/370 (VM/370) Program Description/Operations Manual Program Number 5796-PAF. IBM. November 1972. SH20-1114-0. http://bitsavers.org/pdf/ibm/370/CMS/SH20-1114-0_SCRIPT_370_Text_Processing_Facility_Nov72.pdf. 
  5. DCF V1R4.0: SCRIPT/VS User's Guide. IBM. May 1999. S544-3191-02. http://publibfp.dhe.ibm.com/cgi-bin/bookmgr/BOOKS/dsmu2m00/CCONTENTS. 
  6. DCF: SCRIPT/VS Language Reference. IBM. September 1998. SH35-0070-07. http://publibfp.dhe.ibm.com/cgi-bin/bookmgr/BOOKS/dsml7m00/EDITION?DT=19990324064833. 
  7. DCF V1R4.0: SCRIPT/VS Text Programmer's Guide. IBM. August 1999. SH35-0069-07. http://publibfp.dhe.ibm.com/cgi-bin/bookmgr/BOOKS/dsmp7m00/CCONTENTS. 
  8. Document Composition Facility and Document Library Facility General Information Program Numbers 5748-XX9 5748-XXE. IBM. January 1991. GH20-9158-10. http://publibfp.dhe.ibm.com/cgi-bin/bookmgr/BOOKS/DSM02M00/CCONTENTS?SHELF=dsm0pa01&DN=GH20-9158-10&DT=19910521163021. 
  9. Charles F. Goldfarb (1996). "The Roots of SGML - A Personal Recollection". http://www.sgmlsource.com/history/roots.htm. Retrieved 2012-02-26. 
  10. 10.0 10.1 Hannotte, Dean (March 19, 1985). "Put Your Text In Top Form". PC Magazine (Ziff-Davis) 4 (6): 209–211, 213, 221. https://books.google.com/books?id=mI2TxlvjaksC&dq=PC+Magazine+March+1985+Script%2FPC&pg=PA211. 
  11. Madnick, Stuart E.; Moulton, Allen (1968). "SCRIPT, An On-Line Manuscript Processing System". IEEE Transactions on Engineering Writing and Speech 11 (2): 92–100. doi:10.1109/TEWS.1968.4322339. 
  12. "What does sCrIPT mean?". https://www.definitions.net/definition/sCrIPT. "SCRIPT was developed for CP-67/CMS by Stuart Madnick at MIT, succeeding CTSS RUNOFF." 
  13. "History of UNIX Manpages". https://manpages.bsd.lv/history.html. "1967: SCRIPT (Stuart Madnick). In 1967, Madnick ported the RUNOFF code to the IBM CP67/CMS at IBM as SCRIPT. The documentation of SCRIPT explicitly ..." 
  14. User's Guide and Catalog of Programs. SHARE PROGRAM LIBRARY AGENCY. 1977. p. 24. 360D-03.5.008. http://bitsavers.org/pdf/ibm/share/SHARE_PgmCatalog_Jan77.pdf. 
  15. Introduction to SCRIPT. University of Waterloo Computing Centre. November 29, 1978. 
  16. Document Composition Facility: User's Guide Program Number S748-XX9 (first ed.). July 1978. SH20-9161-0. http://bitsavers.org/pdf/ibm/370/DCF/SH20-9161-0_Document_Composition_Facility_Users_Guide_Jul78.pdf. 
  17. SCRIPT/PC. Personal Computer Productivity Series. Book 1 How to Use (First ed.). January 1984. 1502414. 
  18. 18.0 18.1 "5688-015 IBM Host Publishing Systems BookMaster R4". IBM United States Sales Manual. IBM. 5 August 2008. http://www.ibm.com/common/ssi/cgi-bin/ssialias?infotype=dd&subtype=sm&htmlfid=897/ENUS5688-015. 
  19. "BookMaster V1R4.0 Bookshelf product on Printing and Publishing CD". IBM. http://publibfp.dhe.ibm.com/cgi-bin/bookmgr/Shelves/edf01a02. [|permanent dead link|dead link}}]
  20. "BookManager READ/MVS and BUILD/MVS V1R3.0 Bookshelf". IBM. http://publibfp.dhe.ibm.com/cgi-bin/bookmgr/Shelves/eoxeoy07. [|permanent dead link|dead link}}]
  21. IBM (November 1972). SCRIPT/370 Text Processing Facility Under Virtual Machine Facility/370 (VM/370) Program Description/Operations Manual Program Number 5796-PAF. IBM. SH20-1114-0. http://bitsavers.org/pdf/ibm/370/CMS/SH20-1114-0_SCRIPT_370_Text_Processing_Facility_Nov72.pdf. 
  22. IBM (September 1976). SCRIPT/370 Version 3 User's Guide Program Number: 5796úPHL. IBM. SH20-1857-0. http://bitsavers.org/pdf/ibm/370/CMS/SH20-1857-0_SCRIPT_370_Version_3_Users_Guide_Sep76.pdf. 
  23. SCRIPT/370 Text Processing Facility Under Virtual Machine Facility/370 (VM/370) Systems Guide Program Number 5796-PAF. IBM. LY20-0762-0. http://bitsavers.org/pdf/ibm/370/CMS/LY20-0762-0_SCRIPT_370_Text_Processing_Facility_Systems_Guide_Nov72.pdf. 
  24. For compatibility, DCF also includes EasyScript.
  25. IBM Document Composition Facility: Generalized Markup Language Starter Set User's Guide (Eighth ed.). IBM. January 1991. SH20-9186-07. 
  26. IBM Document Composition Facility: Generalized Markup Language Starter Set Reference (Seventh ed.). IBM. January 1991. SH20-9187-06. 
  27. Document Composition Facility Generalized Markup Language Implementation Guide (Third ed.). IBM. March 1985. SH35-0050-02. http://bitsavers.org/pdf/ibm/370/DCF/SH35-0050-2_Document_Composition_Facility_Generalized_Markup_Language_Implementation_Guide_Rel_3_Mar85.pdf. 
  28. IBM Corporation (2011). "z/OS V1R10.0-V1R12.0 Library Server Getting Started". http://publib.boulder.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.bkma900%2Fw3bib.htm. Retrieved 2012-02-27. 
  29. "IBM BookManager BookServer for Windows V2.3, IBM BookManager BookServer for AIX and Linux V2.3, and IBM BookManager Build for Windows V2.3 Increases Ease of Use". Announcement Letters. IBM Corporation. 2001. http://www.ibm.com/common/ssi/cgi-bin/ssialias?subtype=ca&infotype=an&appname=iSource&supplier=897&letternum=ENUS201-273. Retrieved 2012-02-27. 
  30. "Downloadable free BookManager tools and components" (in en). 2019-04-17. https://www.ibm.com/support/pages/downloadable-free-bookmanager-tools-and-components. 
  31. Bowling, Kevin (2020-12-17), boo2pdf, https://github.com/kev009/boo2pdf, retrieved 2021-10-04 

External links