Files
makronix/docs/guide/chapters/dtinfo.xml
T
lotherk a3df74a5b3 docs: screenshots in the desktop chapters, page numbers and outline in the PDF
The MCDE chapter gets the desktop, System Settings, file manager and
terminal figures; the Information Manager chapter gets its book list.
The system HTML embeds the PNGs as data URIs, the website form points to
www/img/, the manual pages keep the caption and the dtinfo book keeps
the caption (the CDE DTD could carry TIFFs, but the library stays text).

The PDF gets a page-number overlay (gs + qpdf) and a chapter outline
(mutool); mutool clean normalises the file so qpdf and readers see the
outline.  docs/guide/check.sh checks outline and page numbers when the
tools are installed; tools/test-tools.sh copies www/img for the site
check and stays at 33 ok.
2026-11-16 10:22:20 +00:00

128 lines
5.4 KiB
XML

<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
<chapter id="dtinfo">
<title>The Information Manager</title>
<para><citerefentry><refentrytitle>dtinfo</refentrytitle><manvolnum>1</manvolnum></citerefentry>
is MCDE's Information Manager. It reads <firstterm>information
libraries</firstterm>: directories of books, each with a table of contents
and a full-text index. This guide is the book that is installed in this
release. The MCDE programs' own help pages are not part of the release:
the cross build turns the MCDE documentation off, so the Information
Manager has no program help books. The guide is what is there.</para>
<figure id="dtinfo-fig">
<title>The Information Manager with the Makronix Guide</title>
<mediaobject>
<imageobject>
<imagedata fileref="@WWWIMG@/shot-dtinfo.png" format="PNG"/>
</imageobject>
</mediaobject>
</figure>
<sect1 id="dtinfo-open">
<title>Opening the guide</title>
<para>The Makronix Guide is the default library of the Information
Manager, so <command>dtinfo</command> opens it directly. From a
terminal:</para>
<screen>$ dtinfo
$ dtinfo -l makronix</screen>
<para>The first command opens the default library; the second names the
library explicitly. The library is installed as
<filename>/etc/dt/infolib/en_US.UTF-8/makronix.dti</filename>. The
session script
<filename>/etc/dt/config/Xsession.d/0000makronix</filename> sets
<envar>DTINFOLIBDEFAULT</envar> to <literal>makronix</literal>, which is
why the plain command works.</para>
</sect1>
<sect1 id="dtinfo-use">
<title>Reading and searching</title>
<para>The window has a list of the books in the library and the table of
contents of the selected book. A click on a chapter opens it; the
navigation buttons go back and forward in the history, and the table of
contents stays available while you read. The search field searches the
whole library, not only the open chapter; the results are shown with the
book and section they come from, and a click opens the result in
place.</para>
<para>The guide is one book with a chapter for every part of the system.
The chapters are the same text as the manual pages and the PDF; the
Information Manager adds the search and the links between them.</para>
</sect1>
<sect1 id="dtinfo-format">
<title>What an information library is</title>
<para>An information library is a directory whose name ends in
<filename>.dti</filename>. It contains a
<filename>bookcase.map</filename> that names the library and its
bookcases, one directory per bookcase with the compiled books, and a
<filename>dtsearch</filename> directory with the full-text index. The
books are written in DocBook, the SGML dialect that CDE's documentation
uses, and compiled with <command>dtdocbook2infolib</command>.</para>
<para>The Makronix Guide is built from
<filename>docs/guide/book.xml</filename> in the source tree. The same
source produces the manual pages, the PDF, the HTML file and this
library; <xref linkend="building"/> explains the build. If you change
the guide, rebuild it with:</para>
<screen>$ cd /usr/src
$ sh docs/guide/build.sh all
$ sh docs/guide/build.sh install</screen>
<para>The first command builds all five forms in
<filename>docs/guide/out</filename>; the second copies them to the
places the system reads: <filename>/usr/share/doc/makronix</filename>,
<filename>/usr/share/man/man7</filename> and
<filename>/etc/dt/infolib</filename>.</para>
</sect1>
<sect1 id="dtinfo-add">
<title>Adding another library</title>
<para>A library that someone gives you is a directory ending in
<filename>.dti</filename>. Put it under the locale directory of the
system library and name it on the command line:</para>
<screen># cp -R example.dti /etc/dt/infolib/en_US.UTF-8/
$ dtinfo -l example</screen>
<para>The library's own <filename>bookcase.map</filename> names its
bookcases; <command>dtinfo</command> reads that file, so the directory
name and the short name in the map are what matter. A library for one
user can live in <filename>~/.dt/infolib</filename>; the search path
finds it there as well.</para>
</sect1>
<sect1 id="dtinfo-trouble">
<title>When the Information Manager is empty</title>
<para>If <command>dtinfo</command> starts but shows no books, the
library was not found. Check the three things it depends on:</para>
<itemizedlist>
<listitem><para><filename>/etc/dt/infolib/en_US.UTF-8/makronix.dti/bookcase.map</filename>
exists and is readable.</para></listitem>
<listitem><para><envar>DTINFOLIBDEFAULT</envar> is
<literal>makronix</literal> in the session
(<command>echo $DTINFOLIBDEFAULT</command>).</para></listitem>
<listitem><para><envar>DTINFOLIBSEARCHPATH</envar> contains
<filename>/etc/dt/infolib/%L/%I.dti</filename>. The command
<command>dtsearchpath</command> prints the assembled path; run it in
the session that has the problem.</para></listitem>
</itemizedlist>
<para>A library that was copied from another machine can have a stale
search index. Rebuilding it with <command>dtdocbook2infolib</command>
is described in the DocBook chapter of the CDE documentation; for the
Makronix Guide, <command>docs/guide/build.sh infolib</command> does
it.</para>
</sect1>
</chapter>