wip change fb2 api
[librarian.git] / src / librarian / elements / poetry / wers.py
index 127d5bd..c188845 100644 (file)
@@ -9,12 +9,11 @@ class Wers(WLElement):
 
     TXT_TOP_MARGIN = 1
     TXT_BOTTOM_MARGIN = 1
 
     TXT_TOP_MARGIN = 1
     TXT_BOTTOM_MARGIN = 1
-    TXT_LEGACY_TOP_MARGIN = 1
-    TXT_LEGACY_BOTTOM_MARGIN = 0
 
     EPUB_TAG = HTML_TAG = 'div'
     EPUB_CLASS = 'verse'
     HTML_CLASS = 'wl verse'
 
     EPUB_TAG = HTML_TAG = 'div'
     EPUB_CLASS = 'verse'
     HTML_CLASS = 'wl verse'
+    FB2_TAG = 'v'
 
     NUMBERING = 'main'
 
 
     NUMBERING = 'main'
 
@@ -24,8 +23,8 @@ class Wers(WLElement):
             return self.stanza.meta
         return super(Wers, self).meta
 
             return self.stanza.meta
         return super(Wers, self).meta
 
-    def _epub_build_inner(self, builder):
-        super()._epub_build_inner(builder)
+    def epub_build_inner(self, builder):
+        super().epub_build_inner(builder)
         builder.push_text('''\u00a0''')
 
     @property
         builder.push_text('''\u00a0''')
 
     @property
@@ -46,9 +45,9 @@ class Wers(WLElement):
             attr['class'] += ' verse-stretched'
         return attr
 
             attr['class'] += ' verse-stretched'
         return attr
 
-    def _html_build_inner(self, builder):
+    def html_build_inner(self, builder):
         if self.is_stretched:
             builder.start_element('span')
         if self.is_stretched:
             builder.start_element('span')
-        super()._html_build_inner(builder)
+        super().html_build_inner(builder)
         if self.is_stretched:
             builder.end_element()
         if self.is_stretched:
             builder.end_element()