fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Basic biblical tools.
[librarian.git]
/
src
/
librarian
/
elements
/
__init__.py
diff --git
a/src/librarian/elements/__init__.py
b/src/librarian/elements/__init__.py
index
c715e3a
..
affcb9e
100644
(file)
--- a/
src/librarian/elements/__init__.py
+++ b/
src/librarian/elements/__init__.py
@@
-1,10
+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,
masters, paragraphs, poetry, ref, root, separators, styles, themes,
from lxml import etree
from . import (blocks, comments, drama, figures, footnotes, front, headers,
masters, paragraphs, poetry, ref, root, separators, styles, themes,
- tools)
+ 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,
@@
-75,6
+79,7
@@
WL_ELEMENTS = {
"pe": footnotes.PE,
"pr": footnotes.PR,
"pt": footnotes.PT,
"pe": footnotes.PE,
"pr": footnotes.PR,
"pt": footnotes.PT,
+ "ptrad": footnotes.PTrad,
"ref": ref.Ref,
"ref": ref.Ref,
@@
-85,7
+90,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,
@@
-123,16
+128,20
@@
WL_ELEMENTS = {
"rownolegle": tools.Rownolegle,
"tab": tools.Tab,
"rownolegle": tools.Rownolegle,
"tab": tools.Tab,
- # Section
"wywiad_pyt": blocks.WywiadPyt,
"wywiad_odp": blocks.WywiadOdp,
"wywiad_pyt": blocks.WywiadPyt,
"wywiad_odp": blocks.WywiadOdp,
+ # Biblical
+ "werset": bible.Werset,
+ "sekcja_petucha": bible.Petucha,
+ "sekcja_stuma": bible.Stuma,
+
# Inline MathML, should really be namespaced.
# 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
,
}
}