/ .. / / -> download
s1kd-index(1)                     s1kd-tools                     s1kd-index(1)

NAME
       s1kd-index - Flag index keywords in a data module

SYNOPSIS
              s1kd-index -h?
              s1kd-index [-I <index>] [-filqv] [<module>...]
              s1kd-index -D [-filqv] [<module>...]

DESCRIPTION
       The  s1kd-index tool adds index flags to a data module based on a user-
       defined set of keywords.

OPTIONS
       -D, --delete
              Remove the current index flags from a data module.

       -f, --overwrite
              Overwrite input module(s).

       -h, -?, --help
              Show help/usage message.

       -I, --indexflags <index>
              Flag the terms in the specified <index> XML file instead of  the
              default .indexflags file.

       -i, --ignore-case
              Ignore case when flagging terms.

       -l, --list
              Treat  input  (stdin or arguments) as lists of filenames of data
              modules to add index flags to, rather than  data  modules  them‐
              selves.

       -q, --quiet
              Quiet mode.  Errors are not printed.

       -v, --verbose
              Verbose output.

       --version
              Show version information.

       In addition, the following options allow configuration of the XML pars‐
       er:

       --dtdload
              Load the external DTD.

       --huge Remove any internal arbitrary parser limits.

       --net  Allow network access to load external DTD and entities.

       --noent
              Resolve entities.

       --parser-errors
              Emit errors from parser.

       --parser-warnings
              Emit warnings from parser.

       --xinclude
              Do XInclude processing.

       --xml-catalog <file>
              Use an XML catalog when resolving entities.   Multiple  catalogs
              may be loaded by specifying this option multiple times.

   .indexflags file
       This  file specifies the list of indexable keywords for the project and
       their level.  By default, the program will search for a file named .in‐
       dexflags  in  the current directory or parent directories, but any file
       can be specified using the -I option.

       Exmaple of .indexflags file format:

              <indexFlags>
              <indexFlag indexLevelOne="bicycle"/>
              <indexFlag indexLevelOne="bicycle" indexLevelTwo="brake system"/>
              </indexFlags>

EXAMPLE
       Given the following in a data module:

              <levelledPara>
              <title>General</title>
              <para>
              The s1kd-tools are a set of small tools for manipulating S1000D XML
              data.
              </para>
              </levelledPara>

       And the following .indexflags file:

              <indexFlags>
              <indexFlag indexLevelOne="S1000D"/>
              <indexFlag indexLevelTwo="S10000D" indexLevelTwo="s1kd-tools"/>
              <indexFlag indexLevelOne="data"/>
              <indexFlag indexLevelOne="data" indexLevelTwo="XML"/>
              </indexFlags>

       Then the s1kd-index command:

              $ s1kd-index <DM>.XML

       Would result in the following:

              <levelledPara>
              <title>General</title>
              <para>
              The s1kd-tools<indexFlag indexLevelOne="S1000D"
              indexLevelTwo="s1kd-tools"/> are a set of small tools for
              manipulating S1000D<indexFlag indexLevelOne="S1000D"/>
              XML<indexFlag indexLevelOne="data" indexLevelTwo="XML"/>
              data<indexFlag indexLevelOne="data"/>.
              </para>
              </levelledPara>

AUTHORS
       khzae.net.

                                  2021-04-16                     s1kd-index(1)


/ gopher://khzae.net/0/s1000d/s1kd-tools/docs/publishing/s1kd-index.txt
Styles: Light Dark Classic