Blame lib/dbtexmf/dblatex/grubber/makeidx.py

Packit Service 76cb02
# This file is part of Rubber and thus covered by the GPL
Packit Service 76cb02
# (c) Emmanuel Beffara, 2002--2006
Packit Service 76cb02
"""
Packit Service 76cb02
Indexing support with package 'makeidx'.
Packit Service 76cb02
Packit Service 76cb02
This module handles the processing of the document's index using makeindex.
Packit Service 76cb02
It stores an MD5 sum of the .idx file between two runs, in order to detect
Packit Service 76cb02
modifications.
Packit Service 76cb02
Packit Service 76cb02
The following directives are provided to specify options for makeindex:
Packit Service 76cb02
Packit Service 76cb02
  order <ordering> =
Packit Service 76cb02
    Modify the ordering to be used. The argument must be a space separated
Packit Service 76cb02
    list of:
Packit Service 76cb02
    - standard = use default ordering (no options, this is the default)
Packit Service 76cb02
    - german = use German ordering (option "-g")
Packit Service 76cb02
    - letter = use letter instead of word ordering (option "-l")
Packit Service 76cb02
Packit Service 76cb02
  path <directory> =
Packit Service 76cb02
    Add the specified directory to the search path for styles.
Packit Service 76cb02
Packit Service 76cb02
  style <name> =
Packit Service 76cb02
    Use the specified style file.
Packit Service 76cb02
"""
Packit Service 76cb02
import sys
Packit Service 76cb02
Packit Service cd7d79
from dbtexmf.dblatex.grubber.index import Index
Packit Service 76cb02
Packit Service 76cb02
class Module (Index):
Packit Service 76cb02
    def __init__ (self, doc, dict):
Packit Service 76cb02
        """
Packit Service 76cb02
        Initialize the module, checking if there is already an index.
Packit Service 76cb02
        """
Packit Service 76cb02
        Index.__init__(self, doc, "idx", "ind", "ilg")