'Requires:
field_name --the name of the first word in the string.
name --the changed name according to the dictionary.
line -- the string to parse.
Returns:
A string with a value for the type and label attributes
Logic:'

def __index_func(self, field_name, name, line):

    the_string = name
    match_group = re.search(self.__index_insert_blank_line_exp, line)
    if match_group:
        the_string += '<insert-blank-line>true'
    else:
        match_group = re.search(self.__index_insert_letter_exp, line)
        if match_group:
            insert_letter = match_group.group(1)
            the_string += ('<insert-letter>%s' % insert_letter)
    match_group = re.search(self.__index_columns_exp, line)
    if match_group:
        columns = match_group.group(1)
        the_string += ('<number-of-columns>%s' % columns)
    match_group = re.search(self.__bookmark_exp, line)
    if match_group:
        bookmark = match_group.group(1)
        the_string += ('<use-bookmark>%s' % bookmark)
    match_group = re.search(self.__d_separator, line)
    if match_group:
        separator = match_group.group(1)
        separator = separator.replace('"', '&quot;')
        the_string += ('<sequence-separator>%s' % separator)
    match_group = re.search(self.__e_separator, line)
    if match_group:
        separator = match_group.group(1)
        separator = separator.replace('"', '&quot;')
        the_string += ('<page-separator>%s' % separator)
    match_group = re.search(self.__index_sequence, line)
    if match_group:
        sequence = match_group.group(1)
        separator = separator.replace('"', '&quot;')
        the_string += ('<use-sequence>%s' % sequence)
    match_group = re.search(self.__index_entry_typ_exp, line)
    if match_group:
        entry_type = match_group.group(1)
        the_string += ('<entry-type>%s' % entry_type)
    match_group = re.search(self.__p_separator, line)
    if match_group:
        limit = match_group.group(1)
        the_string += ('<limit-to-letters>%s' % limit)
    match_group = re.search(self.__l_separator, line)
    if match_group:
        separator = match_group.group(1)
        separator = separator.replace('"', '&quot;')
        the_string += ('<multi-page-separator>%s' % separator)
    index = line.find('\\a')
    if (index > (-1)):
        the_string += '<accented>true'
    index = line.find('\\r')
    if (index > (-1)):
        the_string += '<sub-entry-on-same-line>true'
    index = line.find('\\t')
    if (index > (-1)):
        the_string += '<enable-yomi-text>true'
    return [None, None, the_string]
