When you encode a file—that is, when you build a help database—you must specify the /E option. HELPMAKE also accepts other options to control encoding. The encoding options are listed below:
/Ac |
Specifies c as an application-specific control character for the help database file. The character marks a line that contains special information for internal use by the application. For example, the Microsoft Advisor uses the colon (:). |
|
/C |
Makes context strings for this help file case sensitive. |
|
/E[[n]] |
Creates (encodes) a help database from a specified text file. The n specifies the type(s) of compression. If n is omitted, HELPMAKE compresses the file as much as possible (about 50%). The value of n is in the range 0–15. It is the sum of successive integral powers of 2 representing various compression techniques: |
|
|
Value |
Technique |
|
0 |
No compression |
|
1 |
Run-length compression |
|
2 |
Keyword compression |
|
4 |
Extended keyword compression |
|
8 |
Huffman compression |
|
Add values to combine compression techniques. For example, use /E3 to get run-length and keyword compres-sion. Use /E0 in the testing stages of help database creation where you need to create the database quickly and are not yet concerned with size. |
|
/Kfilename |
Optimizes keyword compression by supplying a list of characters that act as word separators. The filename is a file containing your list of separator characters. |
|
|
The /E2 and /E3 options tell HELPMAKE to identify “keywords”—words occurring often enough to justify replacing them with shorter character sequences. A word is any series of characters that do not appear in the separator list. The default separator list includes all ASCII characters from 0 to 32, ASCII character 127, and the following characters: |
|
|
!"#&`'()*+–,/:;<=>?@[\]^_{|}~ |
|
|
You can improve keyword compression by designing a separator list tailored to a specific help file. If your help file contains #include directives, #include is encoded (by default) as include. To encode #include as a keyword, create a separator list that omits the #: |
|
|
! "&`'()*+–,/:;<=>?@[\]^_{|}~ |
|
|
Characters in the range 0–31 are always separators, so you need not include them. A customized list must include all other separators, however, including the space (which follows ! in the list above). If you omit the space, HELPMAKE encodes sequences of words as keywords. |
|
/L |
Locks the generated file so that it cannot later be decoded. |
|
/NOLOGO |
Suppresses the HELPMAKE copyright message. |
|
/Ooutfile |
Specifies outfile as the name of the help database. |
|
/Sn |
Specifies the type of input file, according to the following n values: |
|
|
Option |
File Type |
|
/S1 |
Rich Text Format (RTF) |
|
/S2 |
QuickHelp (default) |
|
/S3 |
Minimally formatted ASCII |
/T |
Translates dot commands into internal format. If your help file contains dot commands other than .context and .comment, you must supply this option when encoding it. Dot commands are described in Section 11.6.1,“QuickHelp Format,” and in later sections. The /T option causes the option /A: to be assumed. |
|
/V[[n]] |
Controls verbosity of diagnostic and informational output. Larger values of n add more information. Omitting n produces a full listing. The values of n are listed below: |
|
|
Option |
Output |
|
/V |
Maximum diagnostic output |
|
/V0 |
No diagnostic output and no banner |
|
/V1 |
HELPMAKE banner only |
|
/V2 |
Pass names |
|
/V3 |
Contexts on first pass |
|
/V4 |
Contexts on each pass |
|
/V5 |
Any intermediate steps within each pass |
|
/V6 |
Statistics on help file and compression |
/Wwidth |
Indicates the fixed width of the resulting help text in number of characters. The value of width can range from 11 to 255. If the /W option is omitted, the default is 76. When encoding an RTF source (/S1), HELPMAKE automatically formats the text to width. When encoding QuickHelp (/S2) or minimally formatted ASCII (/S3) files, HELPMAKE truncates lines to this width. |
|