X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/295a1350b069ee750d2f7430e779e5ac6f23a673..23d025c8875cca1404f274aca7170c9db5e980e7:/src/librarian/elements/__init__.py diff --git a/src/librarian/elements/__init__.py b/src/librarian/elements/__init__.py index ff4eb43..0191ae5 100644 --- a/src/librarian/elements/__init__.py +++ b/src/librarian/elements/__init__.py @@ -1,3 +1,6 @@ +# 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, ref, root, separators, styles, themes, @@ -86,7 +89,7 @@ WL_ELEMENTS = { "nota": blocks.Nota, "nota_red": comments.NotaRed, - "extra": comments.Abstrakt, + "extra": comments.Uwaga, "abstrakt": comments.Abstrakt, "naglowek_czesc": headers.NaglowekCzesc, @@ -129,11 +132,11 @@ WL_ELEMENTS = { "wywiad_odp": blocks.WywiadOdp, # Inline MathML, should really be namespaced. - "mrow": etree.ElementBase, - "mi": etree.ElementBase, - "mo": etree.ElementBase, - "msup": etree.ElementBase, - "mn": etree.ElementBase, - "mfrac": etree.ElementBase, - "mfenced": etree.ElementBase, + "mrow": styles.MRow, + "mi": styles.M, + "mo": styles.M, + "msup": styles.MSup, + "mn": styles.M, + "mfrac": styles.MFrac, + "mfenced": styles.MFenced, }