1 # -*- coding: utf-8 -*-
3 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
7 from librarian import SSTNS
8 from .meta import Metadata
11 class TextElement(etree.ElementBase):
14 m = self.find(SSTNS('metadata'))
16 return Metadata.about(self)
20 class Span(TextElement):
24 class Div(TextElement):
28 class Section(TextElement):
32 class Header(TextElement):
36 class Aside(TextElement):