Browse Prior Art Database

Single Source for Bookmaster and IPF Messages

IP.com Disclosure Number: IPCOM000121857D
Original Publication Date: 1991-Oct-01
Included in the Prior Art Database: 2005-Apr-03
Document File: 3 page(s) / 100K

Publishing Venue

IBM

Related People

Corbin, ML: AUTHOR [+2]

Abstract

BookMaster* and BookManager* support the same message tags. Those Message tags are not recognized by the Information Presentation Facility (IPF) compiler. With each environment requiring a different set of tags, the problem of maintaining two different source files arose.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Single Source for Bookmaster and IPF Messages

      BookMaster* and BookManager* support the same message
tags. Those Message tags are not recognized by the Information
Presentation Facility (IPF) compiler.  With each environment
requiring a different set of tags, the problem of maintaining two
different source files arose.

      To use a single source for the hardcopy and hypertext created
by the BookManager program and the IPF compiler, a program was
written that converts the BookManager message tags and the message
text into a form acceptable for the IPF compiler.  The program
creates a list of messages and a hypertext link from each message
number to that message's Explanation, Problem Determination, User
Response, Programmer Response, System Programmer Response, Operator
Response, and System Action text.
The Conversion Algorithm

      The algorithm expects the input file to have a message list tag
(:msgl.).
1.   Create a definition list of messages.
       .   Change the message list tag (:msgl.) to a definition list
tag (:dl.).
       .   Insert an end definition list tag (:edl.) after the
definition list tag (:dl.).
2.   Do the following for each message in the message list until the
end message list tag (:emsgl.) is found:
       .   Save the message number following the message number tag
(:msgno.).
       .   Save the message text following the message tag (:msg.).
       .   Insert a line and add the definition term tag (:dt.)
before the end definition tag (:edl.).
       .   Store the link specification tags (":link reftype=hd
refid=") after the definition term tag (:dt.).
       .   Store the message number after "refid=" tag.
       .   Store the ending link specification tag (:elink.) after
the message number.
       .   Store the message number after the ending link
specification tag (:elink.).
       .   Insert a line and add the definition description tag
(:dd.)  before the end definition tag (:edl.).
       .   Store the message text after the definition description
tag (:dd.).
       .   Change the message number tag (:msgno.) to a second level
heading tag (:h2 id=).
       .   Store the message number after the second level heading id
tag ("id=").
       .   Store a period after the message number.
       .   Store the message text after the period.
       .   Delete the line with the message tag (:msg.).
       .   Change each explanation tag (:expl.) to
:hp2.Explanation:ehp2..
       .   Change...