dtdtfile.sgm 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <!-- $XConsortium: dtdtfile.sgm /main/7 1996/09/08 20:17:38 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <RefEntry Id="CDEMX.MAN93.rsml.1">
  10. <RefMeta>
  11. <RefEntryTitle>dtdtfile</RefEntryTitle>
  12. <ManVolNum>special file</ManVolNum>
  13. </RefMeta>
  14. <RefNameDiv>
  15. <RefName><Filename>dtdtfile</Filename></RefName>
  16. <RefPurpose>define the format and location of actions and data type database files
  17. </RefPurpose>
  18. </RefNameDiv>
  19. <!-- CDE Common Source Format, Version 1.0.0-->
  20. <!-- *************************************************************************-->
  21. <!-- ** (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  22. <!-- ** (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  23. <!-- ** (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  24. <!-- ** (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  25. <!-- *************************************************************************-->
  26. <RefSynopsisDiv>
  27. <Synopsis>See
  28. &cdeman.dtactionfile; and
  29. &cdeman.dtdtsfile;.</Synopsis>
  30. </RefSynopsisDiv>
  31. <RefSect1>
  32. <Title>DESCRIPTION</Title>
  33. <Para>The actions and data types database provides definitions for the actions
  34. and data types &str-XZ; clients recognize.
  35. Files containing actions and data type definitions must end
  36. with the
  37. <Filename>.dt</Filename> suffix.
  38. The database is constructed by reading
  39. all files ending in the
  40. <Filename>.dt</Filename> suffix that are found in the search path
  41. specified by the
  42. <SystemItem Class="EnvironVar">DTDATABASESEARCHPATH</SystemItem> environment variable.
  43. </Para>
  44. <Para>The
  45. &cdeman.dttypes; utility is the tool that allows users to examine and debug their database.
  46. </Para>
  47. <Para>The
  48. <SystemItem Class="EnvironVar">DTDATABASESEARCHPATH</SystemItem> environment variable contains a comma-separated
  49. list of directories specified in <Literal>[</Literal><Symbol Role="Variable">host</Symbol><Literal>:]/</Literal><Emphasis>path</Emphasis> format.
  50. The
  51. <Symbol Role="Variable">host</Symbol>: portion is optional, but if specified,
  52. <Emphasis>/path</Emphasis> is interpreted relative to
  53. <Symbol Role="Variable">host</Symbol>. In addition,
  54. <Symbol Role="Variable">host</Symbol> defines the
  55. <Emphasis>DatabaseHost</Emphasis> for records defined by files in the
  56. <Emphasis>/path</Emphasis> directory.
  57. Otherwise, the
  58. <Emphasis>DatabaseHost</Emphasis> is the same as the
  59. <Emphasis>LocalHost</Emphasis>. To allow for localized action definitions, the data base
  60. search path supports the string
  61. <Literal>%L</Literal> within the pathname string.
  62. The logic that parses
  63. <SystemItem Class="EnvironVar">DTDATABASESEARCHPATH</SystemItem> substitutes the
  64. value of the current locale as stored in the
  65. <SystemItem Class="EnvironVar">LANG</SystemItem> environment variable for the string
  66. <Literal>%L</Literal> (or no characters if
  67. <SystemItem Class="EnvironVar">LANG</SystemItem> is not set).
  68. Other uses of % within the
  69. <SystemItem Class="EnvironVar">DTDATABASESEARCHPATH</SystemItem> pathnames produce unspecified results.
  70. Directories can be set up for various locales.
  71. Each directory contains localized action definitions for a
  72. single locale.
  73. For examples, see the default search path shown below.
  74. The local system administrator or the user
  75. (in
  76. <Filename>$HOME/.dtprofile</Filename>) can modify the actual value of the search path.
  77. The default search path includes the following directories,
  78. searched in the following sequence:
  79. </Para>
  80. <VariableList>
  81. <VarListEntry>
  82. <Term><Filename>$HOME/.dt/types/</Filename></Term>
  83. <ListItem>
  84. <Para>personal user-defined database files
  85. </Para>
  86. </ListItem>
  87. </VarListEntry>
  88. <VarListEntry>
  89. <Term><Literal>/etc/dt/appconfig/types/%L</Literal></Term>
  90. <ListItem>
  91. <Para>locally defined language-specific database files
  92. </Para>
  93. </ListItem>
  94. </VarListEntry>
  95. <VarListEntry>
  96. <Term><Filename>/etc/dt/appconfig/types/C</Filename></Term>
  97. <ListItem>
  98. <Para>locally defined default database files
  99. </Para>
  100. </ListItem>
  101. </VarListEntry>
  102. <VarListEntry>
  103. <Term><Literal>/usr/dt/appconfig/types/%L</Literal></Term>
  104. <ListItem>
  105. <Para>language-specific database files
  106. </Para>
  107. </ListItem>
  108. </VarListEntry>
  109. <VarListEntry>
  110. <Term><Filename>/usr/dt/appconfig/types/C</Filename></Term>
  111. <ListItem>
  112. <Para>implementation-default database files
  113. </Para>
  114. </ListItem>
  115. </VarListEntry>
  116. </VariableList>
  117. <RefSect2>
  118. <Title>File Format</Title>
  119. <Para>In addition to the version information, comments and variable references
  120. described under other headings in this document, these files may contain action
  121. and data type records, as described in
  122. &cdeman.dtactionfile; and
  123. &cdeman.dtdtsfile;.</Para>
  124. </RefSect2>
  125. <RefSect2>
  126. <Title>Comments</Title>
  127. <Para>Any line whose first non-space character is # is treated as a
  128. comment line, and is ignored during the reading of the database file.
  129. </Para>
  130. </RefSect2>
  131. <RefSect2>
  132. <Title>Database Version</Title>
  133. <Para>The database loader supports a version number, which indicates
  134. the version of the database syntax used by a particular database file.
  135. If a database version number is not specified, then the database
  136. loader assumes that the file uses the version 1.0 syntax, described here.
  137. If a database file specifies a version number, then it
  138. must be the first non-blank, non-comment line in the database file;
  139. if the version is specified anywhere else in the file, then an error
  140. message is generated, and the remainder of that database file is ignored.
  141. The database version number is specified using the following syntax:
  142. </Para>
  143. <InformalExample Remap="indent">
  144. <ProgramListing>set DtDbVersion=<Emphasis>version_number</Emphasis>
  145. </ProgramListing>
  146. </InformalExample>
  147. </RefSect2>
  148. <RefSect2>
  149. <Title>String Variables</Title>
  150. <Para>Database entries can reference string variables that can be set
  151. within the database file.
  152. The scope of a string variable is restricted
  153. to only those record definitions within the database file defining the
  154. string variable.
  155. A string variable is defined using the following syntax:
  156. </Para>
  157. <InformalExample Remap="indent">
  158. <ProgramListing>set <Emphasis>VariableName</Emphasis>=<Emphasis>variable_value</Emphasis>
  159. </ProgramListing>
  160. </InformalExample>
  161. <Para>String variables are referenced using either of the standard shell
  162. variable referencing syntaxes:
  163. $<Emphasis>variable_name</Emphasis> or ${<Emphasis>variable_name</Emphasis>}.
  164. A variable name can be made up of any of the alphanumeric characters
  165. and the underscore.
  166. </Para>
  167. </RefSect2>
  168. <RefSect2>
  169. <Title>Environment Variables</Title>
  170. <Para>Database records may refer to environment variables, using either
  171. of the standard shell variable referencing syntaxes:
  172. $<Emphasis>environment_variable</Emphasis>
  173. or ${<Emphasis>environment_variable</Emphasis>}.
  174. If the environment variable name conflicts
  175. with a string variable name, the string variable takes precedence.
  176. </Para>
  177. </RefSect2>
  178. <RefSect2>
  179. <Title>Line Continuation</Title>
  180. <Para>Any field within a record can be continued onto another line by
  181. ending the line with a &bsol; character.
  182. The &bsol; and any
  183. <KeySym>blank</KeySym>s following the &bsol; and preceding the newline are discarded;
  184. leading
  185. <KeySym>blank</KeySym>s on the following line are preserved in the continued field.
  186. </Para>
  187. </RefSect2>
  188. </RefSect1>
  189. <RefSect1>
  190. <Title>SEE ALSO</Title>
  191. <Para>&cdeman.dtactionfile;, &cdeman.dtdtsfile;, &cdeman.dttypes;.</Para>
  192. </RefSect1>
  193. </RefEntry>
  194. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 01:31:55-->