'Requires:
field_name --first name in the string.
name -- the changed name according to the dictionary.
line -- the string to parse.
Returns:
A string .
Logic:'

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

    the_string = name
    num_format = self.__parse_num_format(line)
    if num_format:
        the_string += ('<number-format>%s' % num_format)
    num_type = self.__parse_num_type(line)
    if num_type:
        the_string += ('<number-type>%s' % num_type)
    line = re.sub(self.__merge_format_exp, '', line)
    words = line.split()
    words = words[1:]
    for word in words:
        if (word[0:1] != '\\'):
            the_string += ('<bookmark>%s' % word)
    index = line.find('\\h')
    if (index > (-1)):
        the_string += '<hyperlink>true'
    index = line.find('\\p')
    if (index > (-1)):
        the_string += '<paragraph-relative-position>true'
    return [None, None, the_string]
