'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 __ta_func(self, field_name, name, line):

    the_string = name
    match_group = re.search(self.__ta_short_field_exp, line)
    if match_group:
        short_name = match_group.group(1)
        the_string += ('<short-field>%s' % short_name)
    match_group = re.search(self.__ta_long_field_exp, line)
    if match_group:
        long_name = match_group.group(1)
        the_string += ('<long-field>%s' % long_name)
    match_group = re.search(self.__ta_category_exp, line)
    if match_group:
        category = match_group.group(1)
        the_string += ('<category>%s' % category)
    index = line.find('\\b')
    if (index > (-1)):
        the_string += '<bold>true'
    index = line.find('\\i')
    if (index > (-1)):
        the_string += '<italics>true'
    return [None, None, the_string]
