fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Thema
[librarian.git]
/
src
/
librarian
/
elements
/
__init__.py
diff --git
a/src/librarian/elements/__init__.py
b/src/librarian/elements/__init__.py
index
549d0cb
..
c715e3a
100644
(file)
--- a/
src/librarian/elements/__init__.py
+++ b/
src/librarian/elements/__init__.py
@@
-1,6
+1,7
@@
from lxml import etree
from . import (blocks, comments, drama, figures, footnotes, front, headers,
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)
WL_ELEMENTS = {
WL_ELEMENTS = {
@@
-11,6
+12,7
@@
WL_ELEMENTS = {
"coverBoxPosition": etree.ElementBase,
"coverLogoUrl": etree.ElementBase,
"contentWarning": etree.ElementBase,
"coverBoxPosition": etree.ElementBase,
"coverLogoUrl": etree.ElementBase,
"contentWarning": etree.ElementBase,
+ "endnotes": etree.ElementBase,
"utwor": root.Utwor,
"dramat_wierszowany_l": masters.Master,
"utwor": root.Utwor,
"dramat_wierszowany_l": masters.Master,
@@
-21,6
+23,8
@@
WL_ELEMENTS = {
"opowiadanie": masters.Master,
"powiesc": masters.Master,
"opowiadanie": masters.Master,
"powiesc": masters.Master,
+ "blok": tools.WLElement,
+
"autor_utworu": front.AutorUtworu,
"dzielo_nadrzedne": front.DzieloNadrzedne,
"nazwa_utworu": front.NazwaUtworu,
"autor_utworu": front.AutorUtworu,
"dzielo_nadrzedne": front.DzieloNadrzedne,
"nazwa_utworu": front.NazwaUtworu,
@@
-65,12
+69,15
@@
WL_ELEMENTS = {
"wers_akap": poetry.WersAkap,
"zastepnik_wersu": poetry.ZastepnikWersu,
"wers_do_prawej": poetry.WersDoPrawej,
"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,
"pa": footnotes.PA,
"pe": footnotes.PE,
"pr": footnotes.PR,
"pt": footnotes.PT,
+ "ref": ref.Ref,
+
"begin": themes.Begin,
"end": themes.End,
"motyw": themes.Motyw,
"begin": themes.Begin,
"end": themes.End,
"motyw": themes.Motyw,
@@
-112,7
+119,13
@@
WL_ELEMENTS = {
"animacja": figures.Animacja,
"ilustr": figures.Ilustr,
"animacja": figures.Animacja,
"ilustr": figures.Ilustr,
- "ref": etree.ElementBase,
+ "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,
# Inline MathML, should really be namespaced.
"mrow": etree.ElementBase,