Training and User Support Services Publish Paper Manuals No More!: An Introduction to Creating HTML Documentation Michael Davis, Bassett Consulting Services, Inc., North Haven, Connecticut Charles Patridge, The Hartford, Hartford, Connecticut Abstract Depending upon the means used, the cost of generating a black and white printed page ranges So are you still printing paper documentation for from about one cent per page to several cents. A your SAS applications while everyone else is surfing color page can easily cost as much as a dollar to the web? Well you don't need to know how to brew reproduce. Multiplied by the many pages often a JAVA application to publish user manuals that can contained in a software manual, reproducing a be read using any common web browser. Further, manual in paper format can be a very expensive HTML (Hyper Text Mark-up Language) allows proposition! authors to easily incorporate color pictures of application screens, something that can be costly Paper manuals developed for intra-organization use when documentation is delivered via print. Last, can often be distributed by hand or intra- HTML allows authors to create manuals that allow organization mail at little additional cost. However, readers to jump to the relevant section at the click of if the manual must be deliveried by the postal a mouse button. This presentation will cover the carrier or document delivery service, the cost for following topics: distributing each copy can easily be several dollars. • introducing HTML and electronic publishing In the best circumstances, manuals distributed by a • contrasting HTML documents with paper postal carrier or document delivery service can be publishing transmitted to their recipients overnight. Under • software that makes it easier to create HTML other circumstances, receipt can take place several documents days later. If a software user needs the information • how to capture and convert screens into GIF contained in the manual immediately, the notion that and JPEG files the manual is in the mail is a cold comfort. • design tips for effective HTML documentation • distributing documentation by disk, file servers, Perhaps the most insidious cost of paper and web servers documentation is that even after a developer has changed an application and updated the While the presenters cannot guarantee that users documentation, the users may still rely on obsolete will read HTML documentation more carefully than paper copies of the manuals. If only they could be they read the paper version, chances are that using assured that their copy of the manual were the HTML will save money. Further, it will be harder for current version! users to say, "I don't know where I put the manual." Last when a paper manual becomes obsolete, it Introduction must be discarded. All too often, inventories of virgin manuals, representing many dollars of printing and distribution costs, must be discarded One of our modern ironies is that while most along with copies of the manual put into use. While documents, including this paper, are prepared paper is easily recycled, plastic binders, spines, and electronically, they are usually transmitted and read tables may need to be discarded as trash. in printed paper format. This paper's authors would not dispute the proposition that it is more convenient Contrast the distribution of paper manuals with to read a paper document, especially while electronic versions. Reproduction by disk or traveling. However, publishing in paper format has CD-ROM is much more economical except for the certain inherent disadvantages that we seek to briefest of manuals. Distribution requires no more avoid. than a single postage stamp and disk mailer. • cost of reproduction • When immediate distribution is required, electronic cost of distribution formats can be quickly distributed by e-mail, web • delays in distribution servers, FTP, or file servers. Obsolete versions can • purging obsolete versions be sent to the "bit bucket" with no impact on the • disposal of obsolete versions neighborhood landfill. 1 Training and User Support Services In addition to distributing manuals electronically via • create links within and between other HTML documents, several other formats are used documents as vehicles. They include: • mark-up existing text with tags to describe how a browser should format it and behave • word processor files • hand non-text files, such as graphic images, to • Postscript files helper applications for processing. • Adobe Acrobat (PDF) files While a connection to the Internet is not required to Word processing files can be a good distribution put HTML to work, access to a browser, such as format and the authors do use them to create and Microsoft Internet Explorer or Netscape Navigator is forward documentation. However, some users may required. For the purposes of this paper, it does not not have access to the version of word processing make much difference which browser you and your software used by the author to create the manual documentation readers care to use. document, or be able to read the document file. However, for demonstration purposes, we are going The Postscript document format can be to assume that the reader of this paper has access characterized as universal format. However there to a personal computer with MS Windows 95 and are different flavors of Postscript, which can cause MS Internet Explorer 4.0. IE4.0 is available for free problems for the intended readers. Also, while there from Microsoft and comes bundled with MS are some programs in the public domain that FrontPage Express, which we will use to handle translate Postscript files into a format that can be some formatting tasks. viewed or printed, many potential readers have difficulty handling Postscript files. While there are many exciting "multimedia" features to HTML, such as the ability to embed sound and Adobe Acrobat (PDF) files are a good distribution video, the authors are going to focus on how to tap format in that reader software for several computer the HTML features required to create software platforms is available from Adobe at no cost. SUGI documentation such: and regional SAS conference proceedings are now distributed in Acrobat format on CD-ROM. Also, • turning existing text into HTML Acrobat may allow greater control over the • editing HTML documents appearance of documents than HTML. • inserting lines and symbols • embedding screen images However, many potential readers may not have • creating internal document links obtained the the Acrobat reader. By contrast, most • linking to other files computers acquired recently probably have a web • creating a table of contents browser. Also, one must purchase a license for Acrobat Distiller to create manuals in PDF format. This paper avoids coverage of some of more exotic HTML topics that are usually used only to jazz up a For these reasons, the authors have concluded that web site. With this restriction of scope, the at this moment, the most universally accessible techniques that are essential to preparing HTML format for electronic documentation are HTML files. documentation can be covered within a short paper A brief description of HTML follows. such as this one. Let's begin by seeing how we might convert some existing text to HTML. What is HTML? Creating HTML Because of the interest in the Internet and the World Wide Web, HTML (Hyper Text Mark-up Language) The "simplest" way to create HTML is to open a text has enjoyed recent widespread interest. If there is a file into the Notepad application and type in the drawback to HTML's new popularity, it is that some necessary tags. For example, we might have a erroneously believe that an Internet (TCP/IP) piece of text such as: connection is required to put HTML to work. This is not true! "This is my first HTML document." HTML is a way of taking plain text files with control information (tags) to: 2 Training and User Support Services After we insert the necessary tags, the complete code, consider removing the paragraph tags, <P> HTML document might look like: and </P> separating each line of code. Instead, enclose program code as "pre-formatted" text <HTML><HEAD> between <PRE> and </PRE> tags as shown in the <TITLE>This is my first HTML document</TITLE> following example. </HEAD><BODY> <P>This is my first HTML document.</P> <PRE> </BODY></HTML> proc print data=mydata ; var a b c d ; Mark-up tags used in HTML consist of a starting tag run ; enclosed by angled brackets (<>) and in most </PRE> cases, a closing tag. The closing tag matches the opening tag except that it is prefixed by a forward The following SAS program can be used to save slash (/). Some HTML tags, such the line break output from a report to an HTML file <BR> tag, do not require a closing tag. The <HTML> tag at the beginning of the document proc printto file="sashtml.htm" new; run; and the ending </HTML> tag at the end identifies /* put HTML tags at beginning of file */ the text between them as a HTML document. The data _null_; <HEAD> and </HEAD> tags block out the file print noprint notitles; document's head section. put " <HTML>" / " <B>" / " <PRE>" ; run; Within the head section is the document title, /***** place your SAS reports here ****/ marked by the <TITLE> and </TITLE> tags. The title is the information displayed in the banner /* put closing tags at end of file */ data _null_; section at the top of the browser window. file print noprint notitles; put / " </PRE>" / " </B>" / " </HTML>" ; The content of the document is contained in the run; body section, marked by the <BODY> and proc printto; </BODY> tags. The paragraph tags, <P> and </P> run; break the text into sections. If no extra spacing between lines is desired, use the <BR> tag to break line within a paragraph.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages9 Page
-
File Size-