1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
5 from ..base import WLElement
11 def html_build(self, builder):
14 e.attrib['xmlns'] = 'http://www.w3.org/1998/Math/MathML'
15 builder.cursor.append(e)
17 def epub_build(self, builder):
18 builder.start_element('img', {"src": builder.mathml(self)})
39 def txt_after_child(self, builder, child_count):
41 builder.push_text(') / (')
45 def txt_after_child(self, builder, child_count):
47 builder.push_text(' ^ ')