Lines Matching refs:footnotes
95 self.footnotes = OrderedDict()
141 self.footnotes[id] = text
164 if not list(self.footnotes.keys()):
173 for index, id in enumerate(self.footnotes.keys(), start=1):
179 self.parser.parseChunk(surrogate_parent, self.footnotes[id])
208 def __init__(self, footnotes): argument
209 super().__init__(footnotes.parser)
210 self.footnotes = footnotes
241 self.footnotes.setFootnote(id, footnote.rstrip())
294 def __init__(self, pattern, footnotes): argument
296 self.footnotes = footnotes
300 if id in self.footnotes.footnotes.keys():
303 sup.set('id', self.footnotes.makeFootnoteRefId(id, found=True))
304 a.set('href', '#' + self.footnotes.makeFootnoteId(id))
306 a.text = str(list(self.footnotes.footnotes.keys()).index(id) + 1)
315 def __init__(self, footnotes): argument
316 self.footnotes = footnotes
323 ref, rest = link.attrib['href'].split(self.footnotes.get_separator(), 1)
329 … sib_link.attrib['href'] = '%s%d%s%s' % (ref, index, self.footnotes.get_separator(), rest)
340 fn, rest = li.attrib.get('id', '').split(self.footnotes.get_separator(), 1)
341 link_id = '{}ref{}{}'.format(fn, self.footnotes.get_separator(), rest)
342 return self.footnotes.found_refs.get(link_id, 0)
368 def __init__(self, footnotes): argument
369 self.footnotes = footnotes
372 footnotesDiv = self.footnotes.makeFootnotesDiv(root)
374 result = self.footnotes.findFootnotesPlaceholder(root)
390 def __init__(self, footnotes): argument
391 self.footnotes = footnotes
395 FN_BACKLINK_TEXT, self.footnotes.getConfig("BACKLINK_TEXT")