X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/d04e61819290fc8d6d71b1932c55a774014c1f05..18db48c927f52d497aea34b5d0daf855902367a3:/src/librarian/elements/__init__.py diff --git a/src/librarian/elements/__init__.py b/src/librarian/elements/__init__.py index f3a8521..b08c3e1 100644 --- a/src/librarian/elements/__init__.py +++ b/src/librarian/elements/__init__.py @@ -1,16 +1,23 @@ +# This file is part of Librarian, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. +# from lxml import etree from . import (blocks, comments, drama, figures, footnotes, front, headers, - masters, paragraphs, poetry, root, separators, styles, themes) + masters, paragraphs, poetry, ref, root, separators, styles, themes, + tools, base) WL_ELEMENTS = { + 'snippet': base.Snippet, 'meta': etree.ElementBase, 'coverClass': etree.ElementBase, "developmentStage": etree.ElementBase, "coverBarColor": etree.ElementBase, "coverBoxPosition": etree.ElementBase, "coverLogoUrl": etree.ElementBase, - + "contentWarning": etree.ElementBase, + "endnotes": etree.ElementBase, + "utwor": root.Utwor, "dramat_wierszowany_l": masters.Master, "dramat_wierszowany_lp": masters.Master, @@ -20,6 +27,8 @@ WL_ELEMENTS = { "opowiadanie": masters.Master, "powiesc": masters.Master, + "blok": tools.WLElement, + "autor_utworu": front.AutorUtworu, "dzielo_nadrzedne": front.DzieloNadrzedne, "nazwa_utworu": front.NazwaUtworu, @@ -64,12 +73,15 @@ WL_ELEMENTS = { "wers_akap": poetry.WersAkap, "zastepnik_wersu": poetry.ZastepnikWersu, "wers_do_prawej": poetry.WersDoPrawej, + "wers_srodek": poetry.WersSrodek, "pa": footnotes.PA, "pe": footnotes.PE, "pr": footnotes.PR, "pt": footnotes.PT, + "ref": ref.Ref, + "begin": themes.Begin, "end": themes.End, "motyw": themes.Motyw, @@ -77,12 +89,12 @@ WL_ELEMENTS = { "nota": blocks.Nota, "nota_red": comments.NotaRed, - "extra": comments.Abstrakt, + "extra": comments.Uwaga, "abstrakt": comments.Abstrakt, "naglowek_czesc": headers.NaglowekCzesc, "naglowek_akt": headers.NaglowekCzesc, - "naglowek_scena": headers.NaglowekRozdzial, + "naglowek_scena": headers.NaglowekScena, "naglowek_rozdzial": headers.NaglowekRozdzial, "naglowek_podrozdzial": headers.NaglowekPodrozdzial, "srodtytul": headers.NaglowekCzesc, @@ -111,6 +123,14 @@ WL_ELEMENTS = { "animacja": figures.Animacja, "ilustr": figures.Ilustr, + "numeracja": tools.Numeracja, + "rownolegle": tools.Rownolegle, + "tab": tools.Tab, + + # Section + "wywiad_pyt": blocks.WywiadPyt, + "wywiad_odp": blocks.WywiadOdp, + # Inline MathML, should really be namespaced. "mrow": etree.ElementBase, "mi": etree.ElementBase,