home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / rtfipf.zip / rtf2ipf.sam < prev    next >
INI File  |  1994-05-19  |  16KB  |  766 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [recfile]
  12.     
  13.     *
  14.     1
  15.     1
  16.     3
  17.     8
  18.     0
  19.     0
  20. [prn]
  21.     HP DeskJet 500 Printer
  22. [lang]
  23.     1
  24. [desc]
  25.     
  26.     
  27.     
  28.     
  29.     
  30.     769317684
  31.     4
  32.     769036809
  33.     376
  34.     7
  35.     0
  36.     0
  37.     0
  38.     0
  39.     
  40.     
  41.     
  42.     
  43.     
  44.     
  45.     0
  46. [fopts]
  47.     0
  48.     1
  49.     0
  50.     0
  51. [lnopts]
  52.     2
  53.     Body Text
  54.     1
  55. [docopts]
  56.     5
  57.     2
  58. [tag]
  59.     Body Text
  60.     2
  61.     [fnt]
  62.         Times New Roman
  63.         200
  64.         0
  65.         49152
  66.     [algn]
  67.         1
  68.         1
  69.         1440
  70.         0
  71.         0
  72.     [spc]
  73.         33
  74.         244
  75.         1
  76.         0
  77.         72
  78.         1
  79.         100
  80.     [brk]
  81.         4
  82.     [line]
  83.         8
  84.         0
  85.         1
  86.         0
  87.         0
  88.         1
  89.         1
  90.         144
  91.         144
  92.         1
  93.     [spec]
  94.         0
  95.         0
  96.         
  97.         0
  98.         1
  99.         1
  100.         0
  101.         0
  102.         0
  103.         0
  104.     [nfmt]
  105.         280
  106.         1
  107.         2
  108.         .
  109.         ,
  110.         $
  111.     Body Text
  112.     0
  113.     0
  114. [tag]
  115.     example
  116.     4
  117.     [fnt]
  118.         Courier
  119.         200
  120.         0
  121.         32768
  122.     [algn]
  123.         1
  124.         1
  125.         1800
  126.         0
  127.         0
  128.     [spc]
  129.         33
  130.         0
  131.         1
  132.         0
  133.         0
  134.         1
  135.         100
  136.     [brk]
  137.         16
  138.     [line]
  139.         8
  140.         0
  141.         1
  142.         0
  143.         0
  144.         1
  145.         1
  146.         144
  147.         144
  148.         1
  149.     [spec]
  150.         0
  151.         0
  152.         
  153.         0
  154.         1
  155.         1
  156.         0
  157.         0
  158.         0
  159.         0
  160.     [nfmt]
  161.         280
  162.         1
  163.         2
  164.         .
  165.         ,
  166.         $
  167.     Body Text
  168.     0
  169.     0
  170. [tag]
  171.     Heading 1
  172.     5
  173.     [fnt]
  174.         Helv
  175.         360
  176.         0
  177.         16385
  178.     [algn]
  179.         1
  180.         1
  181.         0
  182.         0
  183.         0
  184.     [spc]
  185.         33
  186.         446
  187.         1
  188.         288
  189.         144
  190.         1
  191.         100
  192.     [brk]
  193.         81
  194.     [line]
  195.         9
  196.         0
  197.         1
  198.         0
  199.         0
  200.         3
  201.         1
  202.         40
  203.         139
  204.         1
  205.     [spec]
  206.         0
  207.         1
  208.         
  209.         0
  210.         1
  211.         1
  212.         0
  213.         0
  214.         0
  215.         0
  216.     [nfmt]
  217.         272
  218.         1
  219.         2
  220.         .
  221.         ,
  222.         $
  223.     Body Text
  224.     0
  225.     0
  226. [tag]
  227.     Heading 2
  228.     6
  229.     [fnt]
  230.         Helv
  231.         280
  232.         0
  233.         16385
  234.     [algn]
  235.         1
  236.         1
  237.         0
  238.         0
  239.         0
  240.     [spc]
  241.         33
  242.         360
  243.         1
  244.         0
  245.         144
  246.         1
  247.         100
  248.     [brk]
  249.         80
  250.     [line]
  251.         4
  252.         0
  253.         1
  254.         0
  255.         0
  256.         3
  257.         1
  258.         40
  259.         139
  260.         1
  261.     [spec]
  262.         0
  263.         2
  264.         
  265.         0
  266.         1
  267.         1
  268.         0
  269.         0
  270.         0
  271.         0
  272.     [nfmt]
  273.         272
  274.         1
  275.         2
  276.         .
  277.         ,
  278.         $
  279.     Body Text
  280.     0
  281.     0
  282. [tag]
  283.     Heading 3
  284.     7
  285.     [fnt]
  286.         Helv
  287.         280
  288.         0
  289.         16385
  290.     [algn]
  291.         1
  292.         1
  293.         720
  294.         0
  295.         0
  296.     [spc]
  297.         33
  298.         360
  299.         1
  300.         0
  301.         144
  302.         1
  303.         100
  304.     [brk]
  305.         80
  306.     [line]
  307.         8
  308.         0
  309.         1
  310.         0
  311.         0
  312.         1
  313.         1
  314.         144
  315.         144
  316.         1
  317.     [spec]
  318.         0
  319.         2
  320.         
  321.         0
  322.         1
  323.         1
  324.         0
  325.         0
  326.         0
  327.         0
  328.     [nfmt]
  329.         272
  330.         1
  331.         2
  332.         .
  333.         ,
  334.         $
  335.     Body Text
  336.     0
  337.     0
  338. [tag]
  339.     Subhead
  340.     8
  341.     [fnt]
  342.         Times New Roman
  343.         240
  344.         0
  345.         49153
  346.     [algn]
  347.         1
  348.         1
  349.         1440
  350.         0
  351.         0
  352.     [spc]
  353.         33
  354.         288
  355.         1
  356.         72
  357.         144
  358.         1
  359.         100
  360.     [brk]
  361.         80
  362.     [line]
  363.         8
  364.         0
  365.         1
  366.         0
  367.         0
  368.         1
  369.         1
  370.         144
  371.         144
  372.         1
  373.     [spec]
  374.         0
  375.         2
  376.         
  377.         0
  378.         1
  379.         1
  380.         0
  381.         0
  382.         0
  383.         0
  384.     [nfmt]
  385.         272
  386.         1
  387.         2
  388.         .
  389.         ,
  390.         $
  391.     Body Text
  392.     0
  393.     0
  394. [lay]
  395.     Standard
  396.     513
  397.     [rght]
  398.         15840
  399.         12240
  400.         1
  401.         1440
  402.         1440
  403.         1
  404.         1440
  405.         1440
  406.         0
  407.         1
  408.         0
  409.         1
  410.         0
  411.         2
  412.         1
  413.         1440
  414.         10800
  415.         12
  416.         1
  417.         720
  418.         1
  419.         1440
  420.         1
  421.         2160
  422.         1
  423.         2880
  424.         1
  425.         3600
  426.         1
  427.         4320
  428.         1
  429.         5040
  430.         1
  431.         5760
  432.         1
  433.         6480
  434.         1
  435.         7200
  436.         1
  437.         7920
  438.         1
  439.         8640
  440.     [frght]
  441.     [lyfrm]
  442.         0
  443.         13184
  444.         0
  445.         14400
  446.         12240
  447.         15840
  448.         0
  449.         1
  450.         1
  451.         0 0 0 0 0 0 0
  452.         0
  453.         16777215
  454.         2
  455.     [frmlay]
  456.         15840
  457.         12240
  458.         1
  459.         1440
  460.         792
  461.         1
  462.         14472
  463.         1440
  464.         0
  465.         1
  466.         0
  467.         0
  468.         0
  469.         0
  470.         1
  471.         1440
  472.         10800
  473.         2
  474.         2
  475.         4680
  476.         3
  477.         9360
  478.     [txt]
  479. >
  480.     [hrght]
  481.     [lyfrm]
  482.         0
  483.         11136
  484.         0
  485.         0
  486.         12240
  487.         1440
  488.         0
  489.         1
  490.         1
  491.         0 0 0 0 0 0 0
  492.         0
  493.         16777215
  494.         3
  495.     [frmlay]
  496.         1440
  497.         12240
  498.         1
  499.         1440
  500.         72
  501.         1
  502.         792
  503.         1440
  504.         0
  505.         1
  506.         0
  507.         0
  508.         0
  509.         0
  510.         1
  511.         1440
  512.         10800
  513.         2
  514.         2
  515.         4680
  516.         3
  517.         9360
  518.     [txt]
  519. >
  520. [elay]
  521. [l1]
  522.     0
  523. [pg]
  524.     7
  525.     9 483 99 512 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0
  526.     26 195 27 512 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0
  527.     55 0 99 32 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0
  528.     86 0 0 512 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0
  529.     91 188 9 512 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0
  530.     95 0 24 512 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0
  531.     106 186 9 1025 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0
  532. [edoc]
  533. @Heading 1@<:#481,9360>RTF2IPF Overview
  534.  
  535. <:#480,9360>This section describes some background information that may be useful when determining if RTF2IPF is the right utility for you.
  536.  
  537. @Heading 2@<:#360,9360>Purpose of RTF2IPF
  538.  
  539. <:#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
  540. 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
  541. le to integrate well to a development make file.  
  542.  
  543. <:#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.
  544.  
  545. @Heading 2@<:#360,9360>What you need to use RTF2IPF
  546.  
  547. <:#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
  548. 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 
  549. <+">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.
  550.  
  551. @Heading 2@<:s><:#360,9360>Disclaimers
  552.  
  553. 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 
  554. 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
  555. uggestion, please contact me and I will see what I can do to fix it.
  556.  
  557. @Heading 1@<:s><:#481,9360>Creating The Documentation in your Word Processor
  558.  
  559. <:s><:#240,9360>This section describes how to prepare you documentation in your favorite word processor.
  560.  
  561. @Heading 2@<:s><:#360,9360>Styles
  562.  
  563. <:#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
  564.  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
  565.  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.
  566.  
  567. <:#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:
  568.  
  569. @Subhead@<:s><:#284,9360>Heading 1
  570.  
  571. <:#480,9360>The top level headings in the document.  The 'paragraph' <+">Creating The Documentation in your Word Processor<-"> is a 
  572. <+">Heading 1<-"> style.  That style always gets tagged with the IPFC tags ':h1.'
  573.  
  574. @Subhead@<:s><:#284,9360>Heading 2
  575.  
  576. <:#480,9360>This is the second level heading in the document.  The 'paragraph' 
  577. <+">Styles<-"> is marked as a <+">Heading 2<-"> style.  That style always gets tagged with the IPFC tags ':h2.'
  578.  
  579. @Subhead@<:s><:#284,9360>Subhead
  580.  
  581. <: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 
  582. <+">Heading 1, Heading 2, <-">and <+">Subhead<-"> headings within the 
  583. <+">Styles<-"> heading.
  584.  
  585. @Heading 2@<:s><:#360,9360>Text attributes
  586.  
  587. <:#1205,9360>Where possible, RTF2IPF tries to emulate common text formatting characteristics within the constraints of IPFC.  Currently, the only attribute supported is 
  588. <+!>Bold<-!>.  In the near future I hope to have it supporting <+">italics<-">, 
  589. <+#>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.
  590.  
  591. @Heading 2@<:s><:#360,9360>Paragraph formatting
  592.  
  593. <:#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.
  594.  
  595. @Heading 2@<:s><:#360,9360>Tables
  596.  
  597. <:#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.
  598.  
  599. @Heading 1@<:#481,9360>RTF2IPF Project Files
  600.  
  601. <:#240,9360>This section describes the RTF2IPF project files. 
  602.  
  603. @Heading 2@<:s><:#360,9360>Overview
  604.  
  605. <:#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:
  606.  
  607. @example@<:#202,9360>Keyword=Value
  608.  
  609. @example@<:s><:#202,9360>Keyword=Value
  610.  
  611. @example@<:s><:#202,9360>
  612.  
  613. <:#240,9360>By convention the RTF2IPF project files have an .IPJ extension.
  614.  
  615. @Heading 2@<:#360,9360>Keywords
  616.  
  617. <:#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.
  618.  
  619. @Heading 3@<:#360,9360>ExampleStyle
  620.  
  621. @Subhead@<:s><:#284,9360>Purpose
  622.  
  623. <:#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.
  624.  
  625. @Subhead@<:s><:#284,9360>Syntax
  626.  
  627. @example@<:#202,9360>ExampleStyle=<<stylename<;>
  628.  
  629. @example@<:s><:#202,9360>
  630.  
  631. @Subhead@<:s><:#284,9360>Parameters
  632.  
  633. <:#245,9360><+!>stylename<-!> - The name of the style to be tagged as ':xmp.' in the IPF file.
  634.  
  635. @Heading 3@<:#360,9360>HeadingNStyle
  636.  
  637. @Subhead@<:s><:#284,9360>Purpose
  638.  
  639. <:#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.
  640.  
  641. @Subhead@<:s><:#284,9360>Syntax
  642.  
  643. @example@<:#202,9360>HeadingNStyle=<<stylename<;>
  644.  
  645. @example@<:s><:#202,9360>
  646.  
  647. @Subhead@<:s><:#284,9360>Parameters
  648.  
  649. <:#245,9360><+!>stylename<-!> - The name of the style to use for the heading level N in the .IPF file.
  650.  
  651. @Heading 3@<:#360,9360>IpfFile
  652.  
  653. @Subhead@<:s><:#284,9360>Purpose
  654.  
  655. <:#240,9360>The IpfFile keyword is used to define the IPF output file to be created.  This keyword is required.
  656.  
  657. @Subhead@<:s><:#284,9360>Syntax
  658.  
  659. @example@<:#202,9360>IpfFile=<<filename<;>
  660.  
  661. @example@<:s><:#202,9360>
  662.  
  663. @Subhead@<:s><:#284,9360>Parameters
  664.  
  665. <:#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.
  666.  
  667. @Heading 3@<:#360,9360>IpfTitle
  668.  
  669. @Subhead@<:s><:#284,9360>Purpose
  670.  
  671. <:#480,9360>The IpfTitle keyword is used to define the title for the .INF file to be created.  This keyword is required.
  672.  
  673. @Subhead@<:s><:#284,9360>Syntax
  674.  
  675. @example@<:#202,9360>IpfTitle=<<title<;>
  676.  
  677. @example@<:s><:#202,9360>
  678.  
  679. @Subhead@<:s><:#284,9360>Parameters
  680.  
  681. <:#245,9360><+!>title<-!> - The title for the .INF file to be created.
  682.  
  683. @Heading 3@<:#360,9360>RtfFile
  684.  
  685. @Subhead@<:s><:#284,9360>Purpose
  686.  
  687. <:#240,9360>The RtfFile keyword is used to define the RTF input file.  This keyword is required.
  688.  
  689. @Subhead@<:s><:#284,9360>Syntax
  690.  
  691. @example@<:#202,9360>RtfFile<<filename<;>
  692.  
  693. @example@<:s><:#202,9360>
  694.  
  695. @Subhead@<:s><:#284,9360>Parameters
  696.  
  697. <:#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.
  698.  
  699. @Heading 2@<:#360,9360>Example .IPJ file
  700.  
  701. <:#240,9360>The following is the .IPF file used to create this document.
  702.  
  703. @example@<:#202,9360>RtfFile=rtf2ipf.rtf
  704.  
  705. @example@<:#202,9360>IpfFile=rtf2ipf.ipf 
  706.  
  707. @example@<:#202,9360>IpfTitle=RTF2IPF Reference 
  708.  
  709. @example@<:#202,9360>Heading1Style=Heading 1 
  710.  
  711. @example@<:#202,9360>Heading2Style=Heading 2 
  712.  
  713. @example@<:#202,9360>Heading3Style=Heading 3 
  714.  
  715. @example@<:#202,9360>ExampleStyle=example
  716.  
  717. <:s><:#240,9360>
  718.  
  719. @Heading 1@<:#481,9360>Running RTF2IPF
  720.  
  721. <:#480,9360>Running RTF2IPF is very simple.  The program is invoked from the DOS (or OS/2) command line as follows:
  722.  
  723. @example@<:#202,9360>RTF2IPF <<project file<;>
  724.  
  725. @example@<:s><:#202,9360>
  726.  
  727. 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.
  728.  
  729. @Heading 1@<:s><:#481,9360>Obtaining support
  730.  
  731. <:#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:
  732.  
  733. <:#240,9360>Mark Ault
  734.  
  735. <:s>74101,413 (Comp-U-Serve)
  736.  
  737. @Heading 1@<:s><:#481,9360>Planned Enhancements
  738.  
  739. @Subhead@<:s><:#284,9360>Character Formatting
  740.  
  741. <: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.  
  742. <+">Italics<-"> and <+#>underline<-#> will be added along with the various combinations.<+#><-#><+"><-">
  743.  
  744. @Subhead@<:s><:#284,9360>Tables
  745.  
  746. <:s><:#480,9360>Currently this utility is un-tested with tables.  Table support is planned for the next version I will post.
  747.  
  748. @Subhead@<:s><:#284,9360>Hyper-Links
  749.  
  750. <:#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
  751.  processor please let me know.
  752.  
  753. @Subhead@<:#284,9360>Multiple RTF input files
  754.  
  755. 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 
  756. RTF files for each of the pieces of the original document.
  757.  
  758. @Subhead@<:#284,9360>Re-work the .IPJ project files
  759.  
  760. <:#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.
  761.  
  762. >
  763.  
  764. [Embedded]
  765. 00015542
  766.