.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "s1kd-index" "1" "2021-04-16" "" "s1kd-tools" .hy .SH NAME .PP s1kd-index - Flag index keywords in a data module .SH SYNOPSIS .IP .nf \f[C] s1kd-index -h? s1kd-index [-I ] [-filqv] [...] s1kd-index -D [-filqv] [...] \f[R] .fi .SH DESCRIPTION .PP The \f[I]s1kd-index\f[R] tool adds index flags to a data module based on a user-defined set of keywords. .SH OPTIONS .TP -D, --delete Remove the current index flags from a data module. .TP -f, --overwrite Overwrite input module(s). .TP -h, -?, --help Show help/usage message. .TP -I, --indexflags Flag the terms in the specified XML file instead of the default \f[C].indexflags\f[R] file. .TP -i, --ignore-case Ignore case when flagging terms. .TP -l, --list Treat input (stdin or arguments) as lists of filenames of data modules to add index flags to, rather than data modules themselves. .TP -q, --quiet Quiet mode. Errors are not printed. .TP -v, --verbose Verbose output. .TP --version Show version information. .PP In addition, the following options allow configuration of the XML parser: .TP --dtdload Load the external DTD. .TP --huge Remove any internal arbitrary parser limits. .TP --net Allow network access to load external DTD and entities. .TP --noent Resolve entities. .TP --parser-errors Emit errors from parser. .TP --parser-warnings Emit warnings from parser. .TP --xinclude Do XInclude processing. .TP --xml-catalog Use an XML catalog when resolving entities. Multiple catalogs may be loaded by specifying this option multiple times. .SS \f[C].indexflags\f[R] file .PP This file specifies the list of indexable keywords for the project and their level. By default, the program will search for a file named \f[C].indexflags\f[R] in the current directory or parent directories, but any file can be specified using the -I option. .PP Exmaple of \f[C].indexflags\f[R] file format: .IP .nf \f[C] \f[R] .fi .SH EXAMPLE .PP Given the following in a data module: .IP .nf \f[C] General The s1kd-tools are a set of small tools for manipulating S1000D XML data. \f[R] .fi .PP And the following \f[C].indexflags\f[R] file: .IP .nf \f[C] \f[R] .fi .PP Then the s1kd-index command: .IP .nf \f[C] $ s1kd-index .XML \f[R] .fi .PP Would result in the following: .IP .nf \f[C] General The s1kd-tools are a set of small tools for manipulating S1000D XML data. \f[R] .fi .SH AUTHORS khzae.net.