fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[wolnelektury.git]
/
src
/
catalogue
/
api
/
tojson.py
diff --git
a/src/catalogue/api/tojson.py
b/src/catalogue/api/tojson.py
index
2fddda9
..
3ff257a
100644
(file)
--- a/
src/catalogue/api/tojson.py
+++ b/
src/catalogue/api/tojson.py
@@
-89,6
+89,11
@@
tags = {
'pr': ('a', True, {'class': 'footnote footnote-pr'}, None, False),
'pt': ('a', True, {'class': 'footnote footnote-pt'}, None, False),
'ptrad': ('a', True, {'class': 'footnote footnote-ptrad'}, None, False),
'pr': ('a', True, {'class': 'footnote footnote-pr'}, None, False),
'pt': ('a', True, {'class': 'footnote footnote-pt'}, None, False),
'ptrad': ('a', True, {'class': 'footnote footnote-ptrad'}, None, False),
+
+ 'werset': ('p', True, {'class': 'werset'}, None, True),
+ 'br': ('br', False, None, None, None),
+ 'indeks_dolny': ('em', True, {'class': 'indeks_dolny'}, None, False),
+ 'mat': ('span', True, {'class': 'mat'}, None, False),
}
id_prefixes = {
}
id_prefixes = {
@@
-121,7
+126,7
@@
front2 = set(['autor_utworu'])
def norm(text):
def norm(text):
- text = text.replace('---', '—').replace('--', '–').replace('...', '…').replace(',,', '„').replace('"', '”')
+ text = text.replace('---', '—').replace('--', '–').replace('...', '…').replace(',,', '„').replace('"', '”')
.replace('\n', ' ')
return text
return text