2002-01-23 17:10:02 -05:00
|
|
|
\subsection{Help Files Format}\label{helpformat}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-08-05 18:05:15 -04:00
|
|
|
wxHTML library uses a reduced version of MS HTML Workshop format.
|
1999-11-01 15:36:43 -05:00
|
|
|
Tex2RTF can produce these files when generating HTML, if you set {\bf htmlWorkshopFiles} to {\bf true} in
|
|
|
|
your tex2rtf.ini file.
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
(See \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller} for help controller description.)
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
A {\bf book} consists of three files: header file, contents file and index file.
|
2000-03-18 15:11:10 -05:00
|
|
|
You can make a regular zip archive of these files, plus the HTML and any image files,
|
|
|
|
for wxHTML (or helpview) to read; and the .zip file can optionally be renamed to .htb.
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\wxheading{Header file (.hhp)}
|
|
|
|
|
|
|
|
Header file must contain these lines (and may contain additional lines which are ignored) :
|
|
|
|
|
|
|
|
\begin{verbatim}
|
2001-08-02 19:31:49 -04:00
|
|
|
Contents file=<filename.hhc>
|
|
|
|
Index file=<filename.hhk>
|
|
|
|
Title=<title of your book>
|
|
|
|
Default topic=<default page to be displayed.htm>
|
1999-07-10 17:17:24 -04:00
|
|
|
\end{verbatim}
|
|
|
|
|
2000-01-19 18:07:06 -05:00
|
|
|
All filenames (including the Default topic) are relative to the
|
|
|
|
location of .hhp file.
|
|
|
|
|
|
|
|
{\bf Localization note:} In addition, .hhp file may contain line
|
|
|
|
|
|
|
|
\begin{verbatim}
|
2001-08-02 19:31:49 -04:00
|
|
|
Charset=<rfc_charset>
|
2000-01-19 18:07:06 -05:00
|
|
|
\end{verbatim}
|
|
|
|
|
2000-02-07 05:14:56 -05:00
|
|
|
which specifies what charset (e.g. "iso8859\_1") was used in contents
|
2000-01-19 18:07:06 -05:00
|
|
|
and index files. Please note that this line is incompatible with
|
|
|
|
MS HTML Help Workshop and it would either silently remove it or complain
|
|
|
|
with some error. See also
|
2000-02-06 14:11:10 -05:00
|
|
|
\helpref{Writing non-English applications}{nonenglishoverview}.
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\wxheading{Contents file (.hhc)}
|
|
|
|
|
|
|
|
Contents file has HTML syntax and it can be parsed by regular HTML parser. It contains exactly one list
|
2001-05-24 12:03:25 -04:00
|
|
|
(\tt{<ul>}....\tt{</ul>} statement):
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
<ul>
|
|
|
|
|
2001-08-02 19:31:49 -04:00
|
|
|
<li> <object type="text/sitemap">
|
1999-07-10 17:17:24 -04:00
|
|
|
<param name="Name" value="@topic name@">
|
2001-08-02 19:31:49 -04:00
|
|
|
<param name="ID" value=@numeric_id@>
|
|
|
|
<param name="Local" value="@filename.htm@">
|
1999-07-10 17:17:24 -04:00
|
|
|
</object>
|
2001-08-02 19:31:49 -04:00
|
|
|
<li> <object type="text/sitemap">
|
1999-07-10 17:17:24 -04:00
|
|
|
<param name="Name" value="@topic name@">
|
2001-08-02 19:31:49 -04:00
|
|
|
<param name="ID" value=@numeric_id@>
|
|
|
|
<param name="Local" value="@filename.htm@">
|
1999-07-10 17:17:24 -04:00
|
|
|
</object>
|
|
|
|
...
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
You can modify value attributes of param tags. {\it topic name} is name of chapter/topic as is displayed in
|
1999-12-24 18:40:13 -05:00
|
|
|
contents, {\it filename.htm} is HTML page name (relative to .hhp file) and {\it numeric\_id} is optional
|
1999-07-10 17:17:24 -04:00
|
|
|
- it is used only when you use \helpref{wxHtmlHelpController::Display(int)}{wxhtmlhelpcontrollerdisplay}
|
|
|
|
|
2001-05-24 12:03:25 -04:00
|
|
|
Items in the list may be nested - one \tt{<li>} statement may contain a \tt{<ul>} sub-statement:
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
<ul>
|
|
|
|
|
2001-08-02 19:31:49 -04:00
|
|
|
<li> <object type="text/sitemap">
|
1999-07-10 17:17:24 -04:00
|
|
|
<param name="Name" value="Top node">
|
2001-08-02 19:31:49 -04:00
|
|
|
<param name="Local" value="top.htm">
|
1999-07-10 17:17:24 -04:00
|
|
|
</object>
|
|
|
|
<ul>
|
2001-08-02 19:31:49 -04:00
|
|
|
<li> <object type="text/sitemap">
|
|
|
|
<param name="Name" value="subnode in topnode">
|
|
|
|
<param name="Local" value="subnode1.htm">
|
1999-07-10 17:17:24 -04:00
|
|
|
</object>
|
2001-08-02 19:31:49 -04:00
|
|
|
...
|
1999-07-10 17:17:24 -04:00
|
|
|
</ul>
|
|
|
|
|
2001-08-02 19:31:49 -04:00
|
|
|
<li> <object type="text/sitemap">
|
1999-07-10 17:17:24 -04:00
|
|
|
<param name="Name" value="Another Top">
|
2001-08-02 19:31:49 -04:00
|
|
|
<param name="Local" value="top2.htm">
|
1999-07-10 17:17:24 -04:00
|
|
|
</object>
|
|
|
|
...
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
\wxheading{Index file (.hhk)}
|
|
|
|
|
|
|
|
Index files have same format as contents file except that ID params are ignored and sublists are {\bf not}
|
|
|
|
allowed.
|
|
|
|
|