本文整理匯總了Python中nlmmanipulate.NlmManipulate.find_reference_list方法的典型用法代碼示例。如果您正苦於以下問題:Python NlmManipulate.find_reference_list方法的具體用法?Python NlmManipulate.find_reference_list怎麽用?Python NlmManipulate.find_reference_list使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類nlmmanipulate.NlmManipulate
的用法示例。
在下文中一共展示了NlmManipulate.find_reference_list方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: run_quirks
# 需要導入模塊: from nlmmanipulate import NlmManipulate [as 別名]
# 或者: from nlmmanipulate.NlmManipulate import find_reference_list [as 別名]
def run_quirks(self, process_ref_lists):
manipulate = NlmManipulate(self.gv)
if self.gv.setting('linebreaks-as-comments') == 'False':
# we need to convert every instance of <!--meTypeset:br--> to a new paragraph
manipulate.close_and_open_tag('comment()[. = "meTypeset:br"]', 'p')
# we will replace inside table cells and titles regardless because these are real JATS break tags
manipulate.insert_break('comment()[. = "meTypeset:br"]', 'td')
manipulate.insert_break('comment()[. = "meTypeset:br"]', 'title')
manipulate.remove_empty_elements('//sec//p')
manipulate.tag_inline_refs()
if process_ref_lists:
self.debug.print_debug(self, 'Finding potential reference lists')
manipulate.find_reference_list()
manipulate.tag_bibliography_refs()
manipulate.remove_empty_elements('//sec/list')
manipulate.remove_empty_elements('//sec/disp-quote')