DTHELPTAG(1)
π NAME π
okay so this is DTHELPTAG(1), aka dthelptag(user cmd) in the header β and the command is dthelptag, the CDE Help System compiler bestie who translates HelpTag source markup into the online distribution format suitable for runtime display. slay π
β¨ SYNOPSIS β¨
dthelptag [options] [file] [parser-options]
πΈ DESCRIPTION πΈ
Note: This utility has been superseded by the dtdocbook utility, which converts source documents that conform to the DocBook 2.2.1 DTD (Document Type Definition) subelement PART to documents that conform to the SDL 1.2 DTD. The converted DocBook documents are readable by the DtHelp viewer.
The dthelptag utility is the CDE Help System compiler for translating HelpTag source markup into the online distribution format suitable for runtime display. See the CDE Help System Author's and Programmer's Guide for a description of the HelpTag markup language. See dthelpview(1) for more information on previewing compiled Help volumes.
The dthelptag utility accepts a single file name as an argument. If the file name contains a period (.), any characters after the last period are considered to be the extension. The dthelptag utility removes all characters after the last period and uses the resulting name as the base name for all intermediate files and for the final output files.
If the file argument has no periods, dthelptag uses the argument as the base name for intermediate and output files and assumes an extension of .htg, .ctg or .sdl for the input file. The .ctg extension is assumed when the -formal option described below is used. The .sdl extension is assumed when the -compress or -decompress option (described later in this document) is used.
Several options to dthelptag may precede the file name. Several arguments directing the parsing phase of the dthelptag process may follow the file name.
The output file is: file.sdl - the compiled help volume file.
π OPTIONS π
The following options are available:
-verboseβ will causedthelptagto generate and display parser messages during processing.-formalβ causesdthelptagto accept a subset of the HelpTag language that is strictly compliant to canonical SGML. (See the CDE Help System Author's and Programmer's Guide.) When this option is given, the default extension of the input file becomes.ctg.-nooptimizeβ eliminates certain optimizations that normally take place during translation of HelpTag markup to the runtime format. Using this option speeds the translation process.-cleanβ causesdthelptagto simply remove any intermediate files from the current directory. No translation takes place.-debugβ causesdthelptagto leave all intermediate files in the current directory. The-debugoption also blocks the compression step ofdthelptag, leaving the resulting.sdloutput file in a human-readable form.-filesβ causes a list of files referenced in the translation process to be emitted to the standard output. No translation takes place.-helpβ causesdthelptagto emit a synopsis of thedthelptagcommand line and a list of options to the standard output.-decompressβ causesdthelptagto decompress a previously created.sdlfile. When this option is specified, the default input extension is.sdl.-compressβ causesdthelptagto compress a.sdlfile that either was created by translating a.htgor.ctgfile using the-debugoption or was previously decompressed using the-decompressoption. When this option is specified, the default input extension is.sdl.
π Parser Options π
Any parser options follow the file argument on the command line and take the form option=value for those options taking an argument and simply option for those options not taking an argument. Parser options may also be set in the environment variable DTTAGOPT, in a helptag.opt file or in a file named file.opt in the current directory. The helptag.opt file may reside in the current directory or in the directory in which dthelptag is placed.
The order of precedence of the option settings is:
- The file
helptag.optin thedthelptaginstallation directory. This directory defaults to/nix/store/6waxpwr8lzfzc9ka48gl7yh60rqvlkdb-cde-2.5.3/bin. - The environment variable
DTTAGOPT. - The file
helptag.optin the current directory. - The file
file.optin the current directory. - The command line.
Parser options set later in the list override options set earlier.
The parser options supported by dthelptag are:
onerror=goβ cause errors to be non-fatal. That is, parsing continues and later phases of thedthelptagprocess are run even if syntax errors were encountered.onerror=stopβ this is the default setting of theonerror=option. It causes thedthelptagprocess to stop upon completion of the parser phase if syntax errors were encountered during the parse.charset=nameβ the default character set used by the help system isISO8859-1. A different character set may be specified, for example, name, using thecharset=option. The character set may also be set in thehelplang.entfile described in the CDE Help System Author's and Programmer's Guide.search=pathβ specifies one or more directory path(s) to be searched when executingdthelptag. Bothdthelptaginput files and/or additional graphics or entity declaration files referenced within the HelpTag markup can be made accessible by setting this option. Thesearch=option may be specified more than once and the list of directories to search is accumulated.clearsearchβ clears the list of directories searched for file and image entities.memoβ causes authors' comments to be included in the output.nomemoβ specifies the inverse of thememooption. Bothmemoandnomemomay be specified, but the last entry will override any previous setting.shortfilesβ neither theshortfilesparser-option nor any of its synonyms should be used. Rather, the-shortfilesoption should be given as an option todthelptag. Thedthelptagdriver needs to know whether the user has requested short file names sincedthelptagmust know the names of the intermediate files.shortfileβ this is a synonym forshortfiles.shortβ this is a synonym forshortfiles.longfilesβ this option and any of its synonyms should not be used for the same reason that theshortfilesoption should not be used.longfilesβ long, untruncated file names are the default.longfileβ this is a synonym forlongfiles.longβ this is a synonym forlongfiles.
and yes, longfiles really shows up twice in the original list β I'm not gaslighting you, bestie π
π¦ ENVIRONMENT VARIABLES π¦
LANG determines the language in which the input file is interpreted. The LANG environment variable can be overridden in the helplang.ent file described in the CDE Help System Author's and Programmer's Guide.
DTTAGOPT may be used to set parser options.
π§ International Code Set Support π§
Single- and multi-byte character code sets are supported.
π INPUT FILES π
Following are the input files used by the dthelptag parser:
file.htgβ default input file.file.ctgβ default input file when the-formaloption has been specified.file.stβ status file and log.helplang.entβ character set information and localizable replacement text.helptag.optβ option file.
π OUTPUT FILES π
Following are the input files used by the dthelptag parser:
yes, the original really says "input files" here under OUTPUT FILES β I'm just the messenger, bestie π
file.sdlβ runtime help volume.file.errβ run log and error listing.
π₯ EXTENDED DESCRIPTION π₯
The dthelptag utility is a driver program that executes two phases of the compilation process. The first phase translates the source markup into the distribution format. The second phase enhances the distribution file by precomputing information such as a list of identifiers in the file and their locations. These precomputations, along with several optimizations, enable rapid runtime display of the file. The second phase of the translation process also compresses the distribution file to reduce file system space required to store the file.
β EXIT STATUS β
The following exit values are returned:
0β successful completion.1β an error was detected in the source file.2β an invocation error was detected.
π CONSEQUENCES OF ERRORS π
Default.
π EXAMPLES π
dthelptag -clean myFile.htgβ remove all files previously generated by processing a source file ofmyFile.htg.dthelptag myFile.htg onerror=goβ process the filemyFile.htg, not stopping even if there are syntax errors.dthelptag myFile.htgβ process the filemyFile.htg.
π«Ά SEE ALSO π«Ά
dthelpview(1)- CDE Help System Author's and Programmer's Guide.
okay that's the whole page, bestie! footer vibes: it's literally dthelptag(user cmd) β no extra source/version/date line hiding down here, so consider this your cute sign-off πβ¨π«Ά
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms