def __init__(self, parser, configure, user_agent=None):
        """
        Initializes a new object that manipulate the display for screen readers
        of parser.

        :param parser: The HTML parser.
        :type parser: hatemile.util.html.htmldomparser.HTMLDOMParser
        :param configure: The configuration of HaTeMiLe.
        :type configure: hatemile.util.configure.Configure
        :param user_agent: The user agent of the user.
        :type user_agent: str
        """

        helper.require_not_none(parser, configure)
        helper.require_valid_type(parser, HTMLDOMParser)
        helper.require_valid_type(configure, Configure)
        helper.require_valid_type(user_agent, str)

        self.parser = parser
        self.configure = configure
        self.id_generator = IDGenerator('display')
        self.shortcut_prefix = self._get_shortcut_prefix(
            user_agent,
            configure.get_parameter('attribute-accesskey-default')
        )
        self.attribute_accesskey_before = configure.get_parameter(
            'attribute-accesskey-before'
        )
        self.attribute_accesskey_after = configure.get_parameter(
            'attribute-accesskey-after'
        )
        self.attribute_accesskey_prefix_before = configure.get_parameter(
            'attribute-accesskey-prefix-before'
        )
        self.attribute_accesskey_suffix_before = configure.get_parameter(
            'attribute-accesskey-suffix-before'
        )
        self.attribute_accesskey_prefix_after = configure.get_parameter(
            'attribute-accesskey-prefix-after'
        )
        self.attribute_accesskey_suffix_after = configure.get_parameter(
            'attribute-accesskey-suffix-after'
        )
        self.attribute_download_before = configure.get_parameter(
            'attribute-download-before'
        )
        self.attribute_download_after = configure.get_parameter(
            'attribute-download-after'
        )
        self.attribute_headers_prefix_before = configure.get_parameter(
            'attribute-headers-prefix-before'
        )
        self.attribute_headers_suffix_before = configure.get_parameter(
            'attribute-headers-suffix-before'
        )
        self.attribute_headers_prefix_after = configure.get_parameter(
            'attribute-headers-prefix-after'
        )
        self.attribute_headers_suffix_after = configure.get_parameter(
            'attribute-headers-suffix-after'
        )
        self.attribute_language_prefix_before = configure.get_parameter(
            'attribute-language-prefix-before'
        )
        self.attribute_language_suffix_before = configure.get_parameter(
            'attribute-language-suffix-before'
        )
        self.attribute_language_prefix_after = configure.get_parameter(
            'attribute-language-prefix-after'
        )
        self.attribute_language_suffix_after = configure.get_parameter(
            'attribute-language-suffix-after'
        )
        self.attribute_role_prefix_before = configure.get_parameter(
            'attribute-role-prefix-before'
        )
        self.attribute_role_suffix_before = configure.get_parameter(
            'attribute-role-suffix-before'
        )
        self.attribute_role_prefix_after = configure.get_parameter(
            'attribute-role-prefix-after'
        )
        self.attribute_role_suffix_after = configure.get_parameter(
            'attribute-role-suffix-after'
        )
        self.attribute_target_blank_before = configure.get_parameter(
            'attribute-target-blank-before'
        )
        self.attribute_target_blank_after = configure.get_parameter(
            'attribute-target-blank-after'
        )
        self.attribute_title_prefix_before = configure.get_parameter(
            'attribute-title-prefix-before'
        )
        self.attribute_title_suffix_before = configure.get_parameter(
            'attribute-title-suffix-before'
        )
        self.attribute_title_prefix_after = configure.get_parameter(
            'attribute-title-prefix-after'
        )
        self.attribute_title_suffix_after = configure.get_parameter(
            'attribute-title-suffix-after'
        )
        self.aria_autocomplete_both_before = configure.get_parameter(
            'aria-autocomplete-both-before'
        )
        self.aria_autocomplete_both_after = configure.get_parameter(
            'aria-autocomplete-both-after'
        )
        self.aria_autocomplete_inline_before = configure.get_parameter(
            'aria-autocomplete-inline-before'
        )
        self.aria_autocomplete_inline_after = configure.get_parameter(
            'aria-autocomplete-inline-after'
        )
        self.aria_autocomplete_list_before = configure.get_parameter(
            'aria-autocomplete-list-before'
        )
        self.aria_autocomplete_list_after = configure.get_parameter(
            'aria-autocomplete-list-after'
        )
        self.aria_busy_true_before = configure.get_parameter(
            'aria-busy-true-before'
        )
        self.aria_busy_true_after = configure.get_parameter(
            'aria-busy-true-after'
        )
        self.aria_checked_false_before = configure.get_parameter(
            'aria-checked-false-before'
        )
        self.aria_checked_false_after = configure.get_parameter(
            'aria-checked-false-after'
        )
        self.aria_checked_mixed_before = configure.get_parameter(
            'aria-checked-mixed-before'
        )
        self.aria_checked_mixed_after = configure.get_parameter(
            'aria-checked-mixed-after'
        )
        self.aria_checked_true_before = configure.get_parameter(
            'aria-checked-true-before'
        )
        self.aria_checked_true_after = configure.get_parameter(
            'aria-checked-true-after'
        )
        self.aria_dropeffect_copy_before = configure.get_parameter(
            'aria-dropeffect-copy-before'
        )
        self.aria_dropeffect_copy_after = configure.get_parameter(
            'aria-dropeffect-copy-after'
        )
        self.aria_dropeffect_execute_before = configure.get_parameter(
            'aria-dropeffect-execute-before'
        )
        self.aria_dropeffect_execute_after = configure.get_parameter(
            'aria-dropeffect-execute-after'
        )
        self.aria_dropeffect_link_before = configure.get_parameter(
            'aria-dropeffect-link-before'
        )
        self.aria_dropeffect_link_after = configure.get_parameter(
            'aria-dropeffect-link-after'
        )
        self.aria_dropeffect_move_before = configure.get_parameter(
            'aria-dropeffect-move-before'
        )
        self.aria_dropeffect_move_after = configure.get_parameter(
            'aria-dropeffect-move-after'
        )
        self.aria_dropeffect_popup_before = configure.get_parameter(
            'aria-dropeffect-popup-before'
        )
        self.aria_dropeffect_popup_after = configure.get_parameter(
            'aria-dropeffect-popup-after'
        )
        self.aria_expanded_false_before = configure.get_parameter(
            'aria-expanded-false-before'
        )
        self.aria_expanded_false_after = configure.get_parameter(
            'aria-expanded-false-after'
        )
        self.aria_expanded_true_before = configure.get_parameter(
            'aria-expanded-true-before'
        )
        self.aria_expanded_true_after = configure.get_parameter(
            'aria-expanded-true-after'
        )
        self.aria_grabbed_false_before = configure.get_parameter(
            'aria-grabbed-false-before'
        )
        self.aria_grabbed_false_after = configure.get_parameter(
            'aria-grabbed-false-after'
        )
        self.aria_grabbed_true_before = configure.get_parameter(
            'aria-grabbed-true-before'
        )
        self.aria_grabbed_true_after = configure.get_parameter(
            'aria-grabbed-true-after'
        )
        self.aria_haspopup_true_before = configure.get_parameter(
            'aria-haspopup-true-before'
        )
        self.aria_haspopup_true_after = configure.get_parameter(
            'aria-haspopup-true-after'
        )
        self.aria_level_prefix_before = configure.get_parameter(
            'aria-level-prefix-before'
        )
        self.aria_level_suffix_before = configure.get_parameter(
            'aria-level-suffix-before'
        )
        self.aria_level_prefix_after = configure.get_parameter(
            'aria-level-prefix-after'
        )
        self.aria_level_suffix_after = configure.get_parameter(
            'aria-level-suffix-after'
        )
        self.aria_value_maximum_prefix_before = configure.get_parameter(
            'aria-value-maximum-prefix-before'
        )
        self.aria_value_maximum_suffix_before = configure.get_parameter(
            'aria-value-maximum-suffix-before'
        )
        self.aria_value_maximum_prefix_after = configure.get_parameter(
            'aria-value-maximum-prefix-after'
        )
        self.aria_value_maximum_suffix_after = configure.get_parameter(
            'aria-value-maximum-suffix-after'
        )
        self.aria_value_minimum_prefix_before = configure.get_parameter(
            'aria-value-minimum-prefix-before'
        )
        self.aria_value_minimum_suffix_before = configure.get_parameter(
            'aria-value-minimum-suffix-before'
        )
        self.aria_value_minimum_prefix_after = configure.get_parameter(
            'aria-value-minimum-prefix-after'
        )
        self.aria_value_minimum_suffix_after = configure.get_parameter(
            'aria-value-minimum-suffix-after'
        )
        self.aria_orientation_horizontal_before = configure.get_parameter(
            'aria-orientation-horizontal-before'
        )
        self.aria_orientation_horizontal_after = configure.get_parameter(
            'aria-orientation-horizontal-after'
        )
        self.aria_orientation_vertical_before = configure.get_parameter(
            'aria-orientation-vertical-before'
        )
        self.aria_orientation_vertical_after = configure.get_parameter(
            'aria-orientation-vertical-after'
        )
        self.aria_pressed_false_before = configure.get_parameter(
            'aria-pressed-false-before'
        )
        self.aria_pressed_false_after = configure.get_parameter(
            'aria-pressed-false-after'
        )
        self.aria_pressed_mixed_before = configure.get_parameter(
            'aria-pressed-mixed-before'
        )
        self.aria_pressed_mixed_after = configure.get_parameter(
            'aria-pressed-mixed-after'
        )
        self.aria_pressed_true_before = configure.get_parameter(
            'aria-pressed-true-before'
        )
        self.aria_pressed_true_after = configure.get_parameter(
            'aria-pressed-true-after'
        )
        self.aria_required_true_before = configure.get_parameter(
            'aria-required-true-before'
        )
        self.aria_required_true_after = configure.get_parameter(
            'aria-required-true-after'
        )
        self.aria_selected_false_before = configure.get_parameter(
            'aria-selected-false-before'
        )
        self.aria_selected_false_after = configure.get_parameter(
            'aria-selected-false-after'
        )
        self.aria_selected_true_before = configure.get_parameter(
            'aria-selected-true-before'
        )
        self.aria_selected_true_after = configure.get_parameter(
            'aria-selected-true-after'
        )
        self.aria_sort_ascending_before = configure.get_parameter(
            'aria-sort-ascending-before'
        )
        self.aria_sort_ascending_after = configure.get_parameter(
            'aria-sort-ascending-after'
        )
        self.aria_sort_descending_before = configure.get_parameter(
            'aria-sort-descending-before'
        )
        self.aria_sort_descending_after = configure.get_parameter(
            'aria-sort-descending-after'
        )
        self.aria_sort_other_before = configure.get_parameter(
            'aria-sort-other-before'
        )
        self.aria_sort_other_after = configure.get_parameter(
            'aria-sort-other-after'
        )
        self.list_shortcuts_added = False
        self.list_shortcuts_before = None
        self.list_shortcuts_after = None
def __init__ ( self , parser , configure , user_agent = None ) : helper . require_not_none ( parser , configure ) helper . require_valid_type ( parser , HTMLDOMParser ) helper . require_valid_type ( configure , Configure ) helper . require_valid_type ( user_agent , str ) self . parser = parser self . configure = configure self . id_generator = IDGenerator ( 'display' ) self . shortcut_prefix = self . _get_shortcut_prefix ( user_agent , configure . get_parameter ( 'attribute-accesskey-default' ) ) self . attribute_accesskey_before = configure . get_parameter ( 'attribute-accesskey-before' ) self . attribute_accesskey_after = configure . get_parameter ( 'attribute-accesskey-after' ) self . attribute_accesskey_prefix_before = configure . get_parameter ( 'attribute-accesskey-prefix-before' ) self . attribute_accesskey_suffix_before = configure . get_parameter ( 'attribute-accesskey-suffix-before' ) self . attribute_accesskey_prefix_after = configure . get_parameter ( 'attribute-accesskey-prefix-after' ) self . attribute_accesskey_suffix_after = configure . get_parameter ( 'attribute-accesskey-suffix-after' ) self . attribute_download_before = configure . get_parameter ( 'attribute-download-before' ) self . attribute_download_after = configure . get_parameter ( 'attribute-download-after' ) self . attribute_headers_prefix_before = configure . get_parameter ( 'attribute-headers-prefix-before' ) self . attribute_headers_suffix_before = configure . get_parameter ( 'attribute-headers-suffix-before' ) self . attribute_headers_prefix_after = configure . get_parameter ( 'attribute-headers-prefix-after' ) self . attribute_headers_suffix_after = configure . get_parameter ( 'attribute-headers-suffix-after' ) self . attribute_language_prefix_before = configure . get_parameter ( 'attribute-language-prefix-before' ) self . attribute_language_suffix_before = configure . get_parameter ( 'attribute-language-suffix-before' ) self . attribute_language_prefix_after = configure . get_parameter ( 'attribute-language-prefix-after' ) self . attribute_language_suffix_after = configure . get_parameter ( 'attribute-language-suffix-after' ) self . attribute_role_prefix_before = configure . get_parameter ( 'attribute-role-prefix-before' ) self . attribute_role_suffix_before = configure . get_parameter ( 'attribute-role-suffix-before' ) self . attribute_role_prefix_after = configure . get_parameter ( 'attribute-role-prefix-after' ) self . attribute_role_suffix_after = configure . get_parameter ( 'attribute-role-suffix-after' ) self . attribute_target_blank_before = configure . get_parameter ( 'attribute-target-blank-before' ) self . attribute_target_blank_after = configure . get_parameter ( 'attribute-target-blank-after' ) self . attribute_title_prefix_before = configure . get_parameter ( 'attribute-title-prefix-before' ) self . attribute_title_suffix_before = configure . get_parameter ( 'attribute-title-suffix-before' ) self . attribute_title_prefix_after = configure . get_parameter ( 'attribute-title-prefix-after' ) self . attribute_title_suffix_after = configure . get_parameter ( 'attribute-title-suffix-after' ) self . aria_autocomplete_both_before = configure . get_parameter ( 'aria-autocomplete-both-before' ) self . aria_autocomplete_both_after = configure . get_parameter ( 'aria-autocomplete-both-after' ) self . aria_autocomplete_inline_before = configure . get_parameter ( 'aria-autocomplete-inline-before' ) self . aria_autocomplete_inline_after = configure . get_parameter ( 'aria-autocomplete-inline-after' ) self . aria_autocomplete_list_before = configure . get_parameter ( 'aria-autocomplete-list-before' ) self . aria_autocomplete_list_after = configure . get_parameter ( 'aria-autocomplete-list-after' ) self . aria_busy_true_before = configure . get_parameter ( 'aria-busy-true-before' ) self . aria_busy_true_after = configure . get_parameter ( 'aria-busy-true-after' ) self . aria_checked_false_before = configure . get_parameter ( 'aria-checked-false-before' ) self . aria_checked_false_after = configure . get_parameter ( 'aria-checked-false-after' ) self . aria_checked_mixed_before = configure . get_parameter ( 'aria-checked-mixed-before' ) self . aria_checked_mixed_after = configure . get_parameter ( 'aria-checked-mixed-after' ) self . aria_checked_true_before = configure . get_parameter ( 'aria-checked-true-before' ) self . aria_checked_true_after = configure . get_parameter ( 'aria-checked-true-after' ) self . aria_dropeffect_copy_before = configure . get_parameter ( 'aria-dropeffect-copy-before' ) self . aria_dropeffect_copy_after = configure . get_parameter ( 'aria-dropeffect-copy-after' ) self . aria_dropeffect_execute_before = configure . get_parameter ( 'aria-dropeffect-execute-before' ) self . aria_dropeffect_execute_after = configure . get_parameter ( 'aria-dropeffect-execute-after' ) self . aria_dropeffect_link_before = configure . get_parameter ( 'aria-dropeffect-link-before' ) self . aria_dropeffect_link_after = configure . get_parameter ( 'aria-dropeffect-link-after' ) self . aria_dropeffect_move_before = configure . get_parameter ( 'aria-dropeffect-move-before' ) self . aria_dropeffect_move_after = configure . get_parameter ( 'aria-dropeffect-move-after' ) self . aria_dropeffect_popup_before = configure . get_parameter ( 'aria-dropeffect-popup-before' ) self . aria_dropeffect_popup_after = configure . get_parameter ( 'aria-dropeffect-popup-after' ) self . aria_expanded_false_before = configure . get_parameter ( 'aria-expanded-false-before' ) self . aria_expanded_false_after = configure . get_parameter ( 'aria-expanded-false-after' ) self . aria_expanded_true_before = configure . get_parameter ( 'aria-expanded-true-before' ) self . aria_expanded_true_after = configure . get_parameter ( 'aria-expanded-true-after' ) self . aria_grabbed_false_before = configure . get_parameter ( 'aria-grabbed-false-before' ) self . aria_grabbed_false_after = configure . get_parameter ( 'aria-grabbed-false-after' ) self . aria_grabbed_true_before = configure . get_parameter ( 'aria-grabbed-true-before' ) self . aria_grabbed_true_after = configure . get_parameter ( 'aria-grabbed-true-after' ) self . aria_haspopup_true_before = configure . get_parameter ( 'aria-haspopup-true-before' ) self . aria_haspopup_true_after = configure . get_parameter ( 'aria-haspopup-true-after' ) self . aria_level_prefix_before = configure . get_parameter ( 'aria-level-prefix-before' ) self . aria_level_suffix_before = configure . get_parameter ( 'aria-level-suffix-before' ) self . aria_level_prefix_after = configure . get_parameter ( 'aria-level-prefix-after' ) self . aria_level_suffix_after = configure . get_parameter ( 'aria-level-suffix-after' ) self . aria_value_maximum_prefix_before = configure . get_parameter ( 'aria-value-maximum-prefix-before' ) self . aria_value_maximum_suffix_before = configure . get_parameter ( 'aria-value-maximum-suffix-before' ) self . aria_value_maximum_prefix_after = configure . get_parameter ( 'aria-value-maximum-prefix-after' ) self . aria_value_maximum_suffix_after = configure . get_parameter ( 'aria-value-maximum-suffix-after' ) self . aria_value_minimum_prefix_before = configure . get_parameter ( 'aria-value-minimum-prefix-before' ) self . aria_value_minimum_suffix_before = configure . get_parameter ( 'aria-value-minimum-suffix-before' ) self . aria_value_minimum_prefix_after = configure . get_parameter ( 'aria-value-minimum-prefix-after' ) self . aria_value_minimum_suffix_after = configure . get_parameter ( 'aria-value-minimum-suffix-after' ) self . aria_orientation_horizontal_before = configure . get_parameter ( 'aria-orientation-horizontal-before' ) self . aria_orientation_horizontal_after = configure . get_parameter ( 'aria-orientation-horizontal-after' ) self . aria_orientation_vertical_before = configure . get_parameter ( 'aria-orientation-vertical-before' ) self . aria_orientation_vertical_after = configure . get_parameter ( 'aria-orientation-vertical-after' ) self . aria_pressed_false_before = configure . get_parameter ( 'aria-pressed-false-before' ) self . aria_pressed_false_after = configure . get_parameter ( 'aria-pressed-false-after' ) self . aria_pressed_mixed_before = configure . get_parameter ( 'aria-pressed-mixed-before' ) self . aria_pressed_mixed_after = configure . get_parameter ( 'aria-pressed-mixed-after' ) self . aria_pressed_true_before = configure . get_parameter ( 'aria-pressed-true-before' ) self . aria_pressed_true_after = configure . get_parameter ( 'aria-pressed-true-after' ) self . aria_required_true_before = configure . get_parameter ( 'aria-required-true-before' ) self . aria_required_true_after = configure . get_parameter ( 'aria-required-true-after' ) self . aria_selected_false_before = configure . get_parameter ( 'aria-selected-false-before' ) self . aria_selected_false_after = configure . get_parameter ( 'aria-selected-false-after' ) self . aria_selected_true_before = configure . get_parameter ( 'aria-selected-true-before' ) self . aria_selected_true_after = configure . get_parameter ( 'aria-selected-true-after' ) self . aria_sort_ascending_before = configure . get_parameter ( 'aria-sort-ascending-before' ) self . aria_sort_ascending_after = configure . get_parameter ( 'aria-sort-ascending-after' ) self . aria_sort_descending_before = configure . get_parameter ( 'aria-sort-descending-before' ) self . aria_sort_descending_after = configure . get_parameter ( 'aria-sort-descending-after' ) self . aria_sort_other_before = configure . get_parameter ( 'aria-sort-other-before' ) self . aria_sort_other_after = configure . get_parameter ( 'aria-sort-other-after' ) self . list_shortcuts_added = False self . list_shortcuts_before = None self . list_shortcuts_after = None
Initializes a new object that manipulate the display for screen readers
        of parser.

        :param parser: The HTML parser.
        :type parser: hatemile.util.html.htmldomparser.HTMLDOMParser
        :param configure: The configuration of HaTeMiLe.
        :type configure: hatemile.util.configure.Configure
        :param user_agent: The user agent of the user.
        :type user_agent: str