bin.nlmmanipulate
¶
Module Contents¶
-
class
bin.nlmmanipulate.
NlmManipulate
(gv)[source]¶ Bases:
manipulate.Manipulate
-
static
handle_nested_elements
(iter_node, move_node, node, node_parent, outer_node, tag_name, tail_stack, tail_stack_objects)[source]¶
-
static
search_and_copy
(last_node, move_node, nested_sibling, new_element, node, node_parent)[source]¶
-
close_and_open_tag_not_styled
(self, search_xpath, tag_name)[source]¶ Opens and closes an XML tag within a document. This is primarily useful when we have a marker such as meTypeset:br in comments which corresponds to no JATS/NLM equivalent. We use this function in certain behavioural modes to close the preceding paragraph and open the next.
This variant only performs this action when the subsequent text does not look like a heading.
@param search_xpath: the node that serves as a marker @param tag_name: the tag name that will be open and closed
-
close_and_open_tag
(self, search_xpath, tag_name)[source]¶ Opens and closes an XML tag within a document. This is primarily useful when we have a marker such as meTypeset:br in comments which corresponds to no JATS/NLM equivalent. We use this function in certain behavioural modes to close the preceding paragraph and open the next.
@param search_xpath: the node that serves as a marker @param tag_name: the tag name that will be open and closed
-
insert_break
(self, search_xpath, tag_name)[source]¶ Opens and closes an XML tag within a document. This is primarily useful when we have a marker such as meTypeset:br in comments which corresponds to no JATS/NLM equivalent. We use this function in certain behavioural modes to close the preceding paragraph and open the next.
@param search_xpath: the node that serves as a marker @param tag_name: the tag name that will be open and closed
-
static