4 Copyright © 2008,2009,2010 Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org.pl>
6 For full list of contributors see AUTHORS section at the end.
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Affero General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU Affero General Public License for more details.
18 You should have received a copy of the GNU Affero General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
25 Librarian converts XML-based markup language used by FNP for writing books to
26 other formats, which are more suitable for presentation.
33 In the future, we plan to support:
41 * extract DublinCore meta-data from documents;
42 * extract marked "themes" from documents.
48 * [lxml] (http://codespeak.net/lxml/) >= 2.2
54 Librarian uses standard Python distutils for packaging. After installing all the dependencies just run:
56 python setup.py install
62 To convert a series of file to XHTML:
64 book2html file1.xml [file2.xml ...]
66 To convert a series of file to plain text:
68 book2txt file1.xml [file2.xml ...]
70 To extract book fragments marked as "theme":
72 bookfragments file1.xml [file2.xml ...]
77 Originally written by Marek Stępniowski <marek@stepniowski.com>
81 * Łukasz Rekucki <lrekucki@gmail.com>