![]() |
![]()
| ![]() |
![]()
NAMEdtinfo — browse on-line information SYNOPSISdtinfo [-help] [-l infolib] [-sect section
DESCRIPTIONThe dtinfo command starts the desktop on-line information browser, also known as the CDE Information Manager. On-line information is typically packaged into an information library (infolib), which is a hierarchy of bookcases containing SGML books (see the dtdocbook2infolib(1) command). The browser offers an ability to view, search, and print on-line information with a high degree of control. Bookmarks and annotations may be attached at desired points for later recall. Generalized Locator FormatThe generalized locator format is used as an identifier for target information. The following format shows the fully specified case, although it is usually not required to uniquely identify sections: mmdb:INFOLIB=ilib_path&&BOOKCASE=bc_name&&LOCATOR=locator where ilib_path is the infolib's path on disk; bc_name is the name of the bookcase (an MMDB); and locator is the MMDB locator value. The locator itself must be a unique reference across document collections by the time an infolib's build process is complete. If just INFOLIB is present, the collection corresponding to the infolib is returned. To display at the beginning of a known bookcase, use the form: mmdb:INFOLIB=ilib_path&&BOOKCASE=bc_name Note, however, that bookcase names are less protected from change than locators, and should not be relied upon for other than dynamically verifiable bookcase targets. If a locator is not expected to be in the desktop default infolib, identify its infolib by including the full file path name for the information library (ilib_path). The most common form of reference is then either: mmdb:INFOLIB=ilib_path&&LOCATOR=locator or: mmdb:LOCATOR=locator If INFOLIB and BOOKCASE are omitted, a locator is looked up in all loaded information libraries. If no information libraries are currently loaded, the locator is looked up in the default information library(s) specified by DTINFOLIBDEFAULT. For the -sect argument, the value(s) "locator" alone is sufficient to reach the desired section, if it occurs in the default infolib, or those indicated by -l arguments. Persistent User SettingsA few characteristics are saved across browser sessions. These are bookmarks, annotations, named search scopes, and certain user preferences. All of these are saved on a locale-specific basis. Query history and browse history lists are provided, but are not persistent across sessions. OPTIONSThe following options are available:
Print Control OptionsThese options are valid only if the -print option is also specified.
PRINT FEATURESThis section describes the features that affect printing with dtinfo. Page NumbersPages are numbered relative to the print job. For example, if a section spans over four printed pages, the pages are numbered 1-4. To get page numbers starting relative to the front of the book, it is necessary to print the entire contents of the book. When printing more than one book (a bookcase, for example) the page numbering is reset to page 1 at the start of each book. A section is determined to be a book if it is a Table of Contents. When specifying "what to print" all references are given in logical terms. You cannot specify a page range since this number has no real meaning until the document is rendered to a given page size. "What to print" is specified as a section or list of sections in generalized locator format. It is also possible to specify a range of sections. Table of ContentsThe table of contents can be printed as part of a book or as a separate section. When printed as part of a book, it is always printed last to allow the page number references to be calculated while the document is printing. When printed separately, the page numbers are not calculated. Image ScalingDtinfo supports a number of graphic file formats: Tiff, XPM, XWD, GIF, JPEG, and CGM. Of all these formats, only CGM is a natural "scalable" format made of vectors and independent coordinates, much like PostScript. All the other graphic formats are specified in Dots Per Inch (DPI) and designed for a given resolution. Since most displays have a resolution of between 90/100 DPI and printers commonly have resolutions of 300/600 DPI, printed documents can end up with graphics 3 or 6 times smaller than their screen counterparts, especially when the surrounding fonts are scaled to match the screen size. To address this problem, dtinfo automatically scales a graphic according to the following formula: printed_image_size= image_size * (resolution / 100 DPI)
During scaling it is important that the image not be scaled in excess of the hard page boundary. See "Hard Page Boundaries" for more detail. Hard Page BoundariesOn-line documentation is often developed with little or no consideration for printability. As a result, on-line documents often have graphics or tables that exceed the hard-page boundaries of the printed media. The dtinfo command attempts to correct these problems during the layout-for-print process by a combination of page break insertions, rotation (landscape/portrait), and scalable objects. Graphic objects that are too wide for the page are scaled down to the page width. Graphic objects that are too tall for the remaining page height are started on the next page. If a graphic object is too tall for a single page it is scaled down to the page height. Table objects that are too wide for the page are started on the next page and rotated for landscape printing. If a table is still too large, it is scaled to the page height. Once the table has been printed, an additional page break is performed and the remainder of the printing resumes in the default page orientation. Space left in the current page layout is filled by flow-up of subsequent text. Hard Copy Page Style Renderingdtinfo hard copy page-style rendering, with addition of headers and footers, page breaks, and numbering. For these characteristics, it is necessary to use print-specific style sheet features. Background Printingdtinfo allows simultaneous browsing and multiple print requests to be active in parallel. RESOURCESXRM ResourcesThe XRM resources understood by dtinfo are as follows:
Display Color ResourcesThe following resources set colors for various dtinfo display features:
Print-Related ResourcesFor print-related resources, see "Descendants" and "Resources" in DtPrintSetupBox(3). STDINNot used. ENVIRONMENT VARIABLESThe following environment variables affect the execution of dtinfo:
ACTIONS/MESSAGESdtinfo registers with ToolTalk to handle the following ToolTalk requests:
Desktop actions invoking the browser are:
Use of any default desktop representations to start dtinfo from its icon or the icon of an infolib causes dtinfo to be invoked via the desktop action mechanism. STDOUTNot used. STDERRNot used. INPUT FILESFor input, dtinfo accepts the file path, relative or absolute, for one or more information libraries. OUTPUT FILESFor output, dtinfo produces a file to hold print-ready output, if the -outputFile and the -print options are specified. EXTENDED DESCRIPTIONNone. RETURN VALUEA non-zero return value for dtinfo implies an error condition on start-up. ERRORS/WARNINGSWarning Messages
Error Messages
EXAMPLESStart the browser and display the default information library: % dtinfo
Start the browser with a library located at /cdrom/encyclopedia.dti: % dtinfo -l /cdrom/encyclopedia.dti
Start the browser with a library from the search path: % dtinfo -l encyclopedia
Start the browser with a specific section to display: % dtinfo -sect mmdb:INFOLIB=encyclopedia&&LOCATOR=home_topic
or: % dtinfo -sect INFOUG.SEARCH.DIV.5,INFOUG.SEARCH.DIV.22
An alternate form of the previous command: % dtinfo -l /cdrom/encyclopedia.dti -sect mmdb:LOCATOR=home_topic
Print a specific section without starting dtinfo: % dtinfo -print -sect INFOUG.NAVIGATE.DIV.3
Printing of an entire infolib is not supported from the command line: % dtinfo -print -l /cdrom/encyclopedia.dti *** Error *** Examples for the use of dtinfo directly: % dtaction DtLoadInfoLib /usr/local/dt/infolib/C/cde.dti
% dtaction DtShowInfoAtLoc /usr/local/dt/infolib/C/cde.dti GI.RGFBE.1698OL
If the infolib path environment variable is defined: % dtaction DtShowInfoAtLoc cde INFOUG.GSTART.DIV.3
FILESCommand line start-up recognizes an infolib directory path (see DtMmdbInfoLibInfo(5)). The name of the directory and its contained files is used to ascertain whether it is a valid infolib. User-specific files for bookmarks and annotations are internally managed under the locale-specific directory $HOME/.dt/dtinfo/%L/marks/. User preferences, set via the Preferences dialog in an instance of dtinfo, and user-defined search scopes are saved in the generated file $HOME/.dt/dtinfo/%L/preferences. Application specific resources are defined in /usr/local/dt/app-defaults/%L/Dtinfo. Utility files and supporting data for dtinfo are found in the system location /usr/local/dt/infolib. SEE ALSOGeneralized Locator Format(4), dtdocbook2infolib(1), DtPrintSetupBox(3), DtInfo_LoadInfoLib(4), DtInfo_ShowInfoAtLoc(4), DtInfo_PrintInfoAtLoc(4), dtinfoaction(5), DtMmdbInfoLibInfo(5)
|