<:#480,9360>This section describes some background information that may be useful when determining if RTF2IPF is the right utility for you.
@Heading 2@<:#360,9360>Purpose of RTF2IPF
<:#1440,9360>This utility has been created as the result of my desire to maintain both printed and on-line documentation for an internally developed utility at work from a single document. The general goal of the RTF2IPF.EXE program is to take a word processing documen
t saved as <+">Rich Text Format<-"> and re-tag the file with the IPFC compiler tags to allow the creation of an OS/2 .INF file. RTF2IPF is currently a command line DOS program (sorry but I run DOS/Windows at home where this was developed) that should be ab
le to integrate well to a development make file.
<:#720,9360>Although this utility is being distributed as 'Freeware' I would like to know what you think of it. After trying it please send me a note to my CIS ID (74101,413) and let me know what you think. I hope my efforts will be useful for you too.
@Heading 2@<:#360,9360>What you need to use RTF2IPF
<:#1680,9360>All you need to use RTF2IPF is a word processor capable of saving its document (styles included) in Rich Text Format (RTF). All of my testing has been with Ami Pro v2.0 for Windows and Ami Pro v3.0 for OS/2. The document you are receiving was created usin
g Ami Pro v2.0 for Windows. Any word processor that can save it's documents in RTF format should work. If you use a different word processor and develop a style sheet that you find useful please send it to me (see the section
<+">Obtaining support<-"> for how to reach me) and I will include it in the next version to be uploaded. To compile your on-line document you will need the OS/2 IPFC help compiler.
@Heading 2@<:s><:#360,9360>Disclaimers
RTF2IPF is really still a work in process. As you read through here you will see several places where I mention that a feature is planned or where I will even solicit your ideas about how a feature should be implemented. As a result of this utility still
evolving, the current version uploaded here still has some debug code compiled in. As such it is possible that you may run into an assertion or other bugs. Although I believe everything to be correct I cannot guarantee it. If you do have a problem or a s
uggestion, please contact me and I will see what I can do to fix it.
@Heading 1@<:s><:#481,9360>Creating The Documentation in your Word Processor
<:s><:#240,9360>This section describes how to prepare you documentation in your favorite word processor.
@Heading 2@<:s><:#360,9360>Styles
<:#1920,9360>RTF2IPF is dependent upon your word processor correctly identifying style information in the RTF file when you save your document. The styles are used to identify how the text in your document should be tagged for the IPFC compiler. The most important use
of styles is to identify which 'paragraphs' in your document are intended to be used as headings in the .INF file. Since the IPFC compiler requires that you make an orderly progression through the heading levels it is imperative that you are very diligent
in setting up a style sheet that mimics the progression of styles that the IPFC compiler will accept. You must always keep in mind how the styles will affect your on-line document.
<:#480,9360>For example, this document was created using the Ami Pro style sheet supplied with RTF2IPF. Some of the styles present in the document and their uses are as follows:
@Subhead@<:s><:#284,9360>Heading 1
<:#480,9360>The top level headings in the document. The 'paragraph' <+">Creating The Documentation in your Word Processor<-"> is a
<+">Heading 1<-"> style. That style always gets tagged with the IPFC tags ':h1.'
@Subhead@<:s><:#284,9360>Heading 2
<:#480,9360>This is the second level heading in the document. The 'paragraph'
<+">Styles<-"> is marked as a <+">Heading 2<-"> style. That style always gets tagged with the IPFC tags ':h2.'
@Subhead@<:s><:#284,9360>Subhead
<:s><:#960,9360>The Subhead style is used how a style is traditionally used in a word processing document. It is simply used to re-use common formatting attributes, in this case bold text and a larger point size. The Subhead style was used for the
<+">Heading 1, Heading 2, <-">and <+">Subhead<-"> headings within the
<+">Styles<-"> heading.
@Heading 2@<:s><:#360,9360>Text attributes
<:#1205,9360>Where possible, RTF2IPF tries to emulate common text formatting characteristics within the constraints of IPFC. Currently, the only attribute supported is
<+!>Bold<-!>. In the near future I hope to have it supporting <+">italics<-">,
<+#>underline<-#>, as well as all of the combinations of these attributes.<-"> Please try not to use different colors for your text as my current thoughts are to use the RTF color tags in defining hyper-links to other topics.
@Heading 2@<:s><:#360,9360>Paragraph formatting
<:#720,9360>The current version of RTF2IPF does not provide any paragraph formatting beyond the standard word wrap capabilities provided by IPFC. Although IPFC does allow for some formatting it is beyond the scope of the current version of RTF2IPF.
@Heading 2@<:s><:#360,9360>Tables
<:#720,9360>Tables are currently unsupported by RTF2IPF but are currently very high on the list for planned enhancements (I need them too!). The 'results are unpredictable' for what will happen if you give RTF2IPF a table to process.
@Heading 1@<:#481,9360>RTF2IPF Project Files
<:#240,9360>This section describes the RTF2IPF project files.
@Heading 2@<:s><:#360,9360>Overview
<:#480,9360>The RTF2IPF project files contain information for RTF2IPF to use when converting the RTF tagged file to an IPF tagged file. The file is an ASCII text file that take the format of:
@example@<:#202,9360>Keyword=Value
@example@<:s><:#202,9360>Keyword=Value
@example@<:s><:#202,9360>
<:#240,9360>By convention the RTF2IPF project files have an .IPJ extension.
@Heading 2@<:#360,9360>Keywords
<:#480,9360>Each of the valid keywords are described in their own section below. Although the keywords are shown in mixed case they are processed in a case insensitive manner.
@Heading 3@<:#360,9360>ExampleStyle
@Subhead@<:s><:#284,9360>Purpose
<:#720,9360>The ExampleStyle keyword is used to define the style to be interpreted as example tagged information. The ExampleStyle keyword is required if you need the ':xmp.' tag to be created in the .IPF file.
@Subhead@<:s><:#284,9360>Syntax
@example@<:#202,9360>ExampleStyle=<<stylename<;>
@example@<:s><:#202,9360>
@Subhead@<:s><:#284,9360>Parameters
<:#245,9360><+!>stylename<-!> - The name of the style to be tagged as ':xmp.' in the IPF file.
@Heading 3@<:#360,9360>HeadingNStyle
@Subhead@<:s><:#284,9360>Purpose
<:#480,9360>The HeadingNStyle keyword is used to define the style to be interpreted as heading level N. Currently N can take the value of 1 - 3. At least the Heading1Style keyword is required.
@Subhead@<:s><:#284,9360>Syntax
@example@<:#202,9360>HeadingNStyle=<<stylename<;>
@example@<:s><:#202,9360>
@Subhead@<:s><:#284,9360>Parameters
<:#245,9360><+!>stylename<-!> - The name of the style to use for the heading level N in the .IPF file.
@Heading 3@<:#360,9360>IpfFile
@Subhead@<:s><:#284,9360>Purpose
<:#240,9360>The IpfFile keyword is used to define the IPF output file to be created. This keyword is required.
@Subhead@<:s><:#284,9360>Syntax
@example@<:#202,9360>IpfFile=<<filename<;>
@example@<:s><:#202,9360>
@Subhead@<:s><:#284,9360>Parameters
<:#725,9360><+!>filename<-!> - The name of the file to be created containing the IPF tagged source for the help file. The file name follows standard naming rules that allow the name to be a fully qualified or relative path name.
@Heading 3@<:#360,9360>IpfTitle
@Subhead@<:s><:#284,9360>Purpose
<:#480,9360>The IpfTitle keyword is used to define the title for the .INF file to be created. This keyword is required.
@Subhead@<:s><:#284,9360>Syntax
@example@<:#202,9360>IpfTitle=<<title<;>
@example@<:s><:#202,9360>
@Subhead@<:s><:#284,9360>Parameters
<:#245,9360><+!>title<-!> - The title for the .INF file to be created.
@Heading 3@<:#360,9360>RtfFile
@Subhead@<:s><:#284,9360>Purpose
<:#240,9360>The RtfFile keyword is used to define the RTF input file. This keyword is required.
@Subhead@<:s><:#284,9360>Syntax
@example@<:#202,9360>RtfFile<<filename<;>
@example@<:s><:#202,9360>
@Subhead@<:s><:#284,9360>Parameters
<:#485,9360><+!>filename<-!> - The name of the file containing the RTF source for the help file. The file name follows standard naming rules that allow the name to be a fully qualified or relative path name.
@Heading 2@<:#360,9360>Example .IPJ file
<:#240,9360>The following is the .IPF file used to create this document.
@example@<:#202,9360>RtfFile=rtf2ipf.rtf
@example@<:#202,9360>IpfFile=rtf2ipf.ipf
@example@<:#202,9360>IpfTitle=RTF2IPF Reference
@example@<:#202,9360>Heading1Style=Heading 1
@example@<:#202,9360>Heading2Style=Heading 2
@example@<:#202,9360>Heading3Style=Heading 3
@example@<:#202,9360>ExampleStyle=example
<:s><:#240,9360>
@Heading 1@<:#481,9360>Running RTF2IPF
<:#480,9360>Running RTF2IPF is very simple. The program is invoked from the DOS (or OS/2) command line as follows:
@example@<:#202,9360>RTF2IPF <<project file<;>
@example@<:s><:#202,9360>
There are no options just a project file on the command line. RTF2IPF will print a banner line and print a progress '.' at approximately every 500 characters added to the .IPF file until complete.
@Heading 1@<:s><:#481,9360>Obtaining support
<:#480,9360>If you have a suggestion or problem please send a description along with the .IPJ and .RTF files and the date on the RTF2IPF.EXE file to:
<:#240,9360>Mark Ault
<:s>74101,413 (Comp-U-Serve)
@Heading 1@<:s><:#481,9360>Planned Enhancements
@Subhead@<:s><:#284,9360>Character Formatting
<:s><:#720,9360>As mentioned earlier, one of the first enhancements on tap for this utility is the ability to use text properties other than normal and bold.
<+">Italics<-"> and <+#>underline<-#> will be added along with the various combinations.<+#><-#><+"><-">
@Subhead@<:s><:#284,9360>Tables
<:s><:#480,9360>Currently this utility is un-tested with tables. Table support is planned for the next version I will post.
@Subhead@<:s><:#284,9360>Hyper-Links
<:#720,9360>The ability to create hyper-links from one of the .INF panels to another panel in the same document. Currently I am planning on using a color tag to identify where the hyper-links occur. If you have any suggestions of a different way to tag it in the word
processor please let me know.
@Subhead@<:#284,9360>Multiple RTF input files
As some documents get larger it can be convenient to break them into several smaller documents. When this is done it requires you to combine the documents as one and save the one RTF file for Rtf2Ipf to process. It would be more convenient to use several
RTF files for each of the pieces of the original document.
@Subhead@<:#284,9360>Re-work the .IPJ project files
<:#720,9360>Possible enhancements include adding comments, an include directive, getting file names from the command line instead, and getting the title from the document information section of the RTF file.