fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Limit image size, fixes #4464.
[librarian.git]
/
src
/
librarian
/
elements
/
__init__.py
diff --git
a/src/librarian/elements/__init__.py
b/src/librarian/elements/__init__.py
index
c934299
..
b08c3e1
100644
(file)
--- a/
src/librarian/elements/__init__.py
+++ b/
src/librarian/elements/__init__.py
@@
-1,9
+1,14
@@
+# 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,
from lxml import etree
from . import (blocks, comments, drama, figures, footnotes, front, headers,
- masters, paragraphs, poetry, ref, root, separators, styles, themes)
+ masters, paragraphs, poetry, ref, root, separators, styles, themes,
+ tools, base)
WL_ELEMENTS = {
WL_ELEMENTS = {
+ 'snippet': base.Snippet,
'meta': etree.ElementBase,
'coverClass': etree.ElementBase,
"developmentStage": etree.ElementBase,
'meta': etree.ElementBase,
'coverClass': etree.ElementBase,
"developmentStage": etree.ElementBase,
@@
-22,6
+27,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,
@@
-66,6
+73,7
@@
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,
"pa": footnotes.PA,
"pe": footnotes.PE,
@@
-81,7
+89,7
@@
WL_ELEMENTS = {
"nota": blocks.Nota,
"nota_red": comments.NotaRed,
"nota": blocks.Nota,
"nota_red": comments.NotaRed,
- "extra": comments.
Abstrakt
,
+ "extra": comments.
Uwaga
,
"abstrakt": comments.Abstrakt,
"naglowek_czesc": headers.NaglowekCzesc,
"abstrakt": comments.Abstrakt,
"naglowek_czesc": headers.NaglowekCzesc,
@@
-115,6
+123,10
@@
WL_ELEMENTS = {
"animacja": figures.Animacja,
"ilustr": figures.Ilustr,
"animacja": figures.Animacja,
"ilustr": figures.Ilustr,
+ "numeracja": tools.Numeracja,
+ "rownolegle": tools.Rownolegle,
+ "tab": tools.Tab,
+
# Section
"wywiad_pyt": blocks.WywiadPyt,
"wywiad_odp": blocks.WywiadOdp,
# Section
"wywiad_pyt": blocks.WywiadPyt,
"wywiad_odp": blocks.WywiadOdp,