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 other formats, whiche are more subtable for presentation.
32 In the future, we plan to support:
40 * extract DublinCore meta-data from documents;
41 * extract marked "themes" from documents.
47 * [lxml] (http://codespeak.net/lxml/) >= 2.2
53 Librarian uses standard Python distutils for packaging. After installing all the dependencies just run:
55 python setup.py install
61 To convert a series of file to XHTML:
63 book2html file1.xml [file2.xml ...]
65 To convert a series of file to plain text:
67 book2txt file1.xml [file2.xml ...]
69 To extract book fragments marked as "theme":
71 bookfragments file1.xml [file2.xml ...]
76 Originally written by Marek Stępniowski <marek@stepniowski>
79 Łukasz Rekucki <lrekucki@gmail.com>