fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New epub.
[librarian.git]
/
src
/
librarian
/
builders
/
__init__.py
diff --git
a/src/librarian/builders/__init__.py
b/src/librarian/builders/__init__.py
index
fcd9194
..
e359cd6
100644
(file)
--- a/
src/librarian/builders/__init__.py
+++ b/
src/librarian/builders/__init__.py
@@
-1,14
+1,20
@@
+from collections import OrderedDict
from .txt import TxtBuilder
from .txt import TxtBuilder
-from .html import HtmlBuilder
+from .html import HtmlBuilder
, StandaloneHtmlBuilder, DaisyHtmlBuilder
from .sanitize import Sanitizer
from .sanitize import Sanitizer
+from .daisy import DaisyBuilder
+from .epub import EpubBuilder
+from .pdf import PdfBuilder
-builders = [
- TxtBuilder,
- HtmlBuilder,
- Sanitizer,
-]
+builders = OrderedDict([
+ ("txt", TxtBuilder),
+ ("html", HtmlBuilder),
+ ("html-standalone", StandaloneHtmlBuilder),
+ ("html-daisy", DaisyHtmlBuilder),
+ ("daisy", DaisyBuilder),
+ ("sanitizer", Sanitizer),
-
-def get_builder_class(builder_id):
-
return next(b for b in builders if b.identifier == builder_id
)
+ ("epub", EpubBuilder),
+ ("pdf", PdfBuilder),
+
]
)