X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/215503e15ca9d6d1e8a053f7bfa359af1af102f3..01e9eecd54a34ddfc82f4092377f7b6cdcfadc31:/README.md diff --git a/README.md b/README.md index e80922c..a84d45f 100755 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ -Licence -======= +License +------- + + ![AGPL Logo](http://www.gnu.org/graphics/agplv3-155x51.png) Copyright © 2008,2009,2010 Fundacja Nowoczesna Polska - For full list of contibutors see AUTHORS section at the end. + For full list of contributors see AUTHORS section at the end. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -19,63 +21,63 @@ Licence along with this program. If not, see . -Librarian -========= +About +------ -Librarian (*ang. bibliotekarz*) to biblioteka służąca do konwersji języka składu książek opartego na XML opracowanego przez Fundację Nowoczesna Polska na inne formaty. +Librarian converts XML-based markup language used by FNP for writing books to +other formats, which are more suitable for presentation. -Obecnie obsługiwane są formaty: +Currently we support: - * XML - * TXT + * HTML4, XHTML 1.0 + * Plain text -Biblioteka librarian potrafi również parsować metadane opisane przez DublinCore oraz wyciągać fragmenty motywów z lektur. +In the future, we plan to support: + * EPUB (XHTML based) + * print-ready PDF -Wymagania ---------- - * [lxml 2.2](http://codespeak.net/lxml/) +Other features: - -Instalacja ----------- -Zainstaluj biblioteki z sekcji *Wymagania* powyżej. Następnie rozpakuj archiwum z biblioteką librarian, przejdź w terminalu do rozpakowanego katalogu i wpisz: + * extract DublinCore meta-data from documents; + * extract marked "themes" from documents. -
python setup.py install
-Na Linuxie i OSX mogą być wymagane uprawnienia administratora. W takim wypadku wpisz: +Dependencies +------------ -
sudo python setup.py install
+ * lxml , version 2.2 or later -Alternatywnie możesz zainstalować bibliotekę librarian w wybranym przez siebie katalogu. W takim wypadku należy użyć argumentu *prefix* do *setup.py*: -
python setup.py install --prefix=ŚCIEŻKA_DO_WYBRANEGO_KATALOGU
+Installation +------------ -W takim wypadku będzie jednak potrzebne własnoręczne edytowanie zmiennych systemowych *PATH* i *PYTHONPATH*. +Librarian uses standard Python distutils for packaging. After installing all the dependencies just run: + + python setup.py install + +Usage +------ -Sposób użycia -------------- -Konwersja plików lektur do XHTML: +To convert a series of file to XHTML: -
book2html LEKTURA1 LEKTURA2...
+ book2html file1.xml [file2.xml ...] -Konwersja plików lektur do TXT: +To convert a series of file to plain text: -
book2txt LEKTURA1 LEKTURA2...
+ book2txt file1.xml [file2.xml ...] -Wyciągnięcie wszystkich fragmentów motywów z wygenerowanych plików XHTML: +To extract book fragments marked as "theme": + + bookfragments file1.xml [file2.xml ...] -
bookfragments PLIK1 PLIK2...
Authors ------- -Originally written by Marek Stępniowski ; +Originally written by Marek Stępniowski Later contributions: - Łukasz Rekucki - - - + * Łukasz Rekucki \ No newline at end of file