22
33** Penelope** is a multi-tool for creating, editing and converting dictionaries, especially for eReader devices.
44
5- * Version: 3.0.0
5+ * Version: 3.0.1
66* Date: 2015-11-22
77* Developer: [ Alberto Pettarin] ( http://www.albertopettarin.it/ )
88* License: the MIT License (MIT)
@@ -29,12 +29,32 @@ With the current version you can:
2929
3030### Important updates
3131
32+ * 2015-11-24 Penelope is now available on [ PyPI] ( https://pypi.python.org/pypi/penelope/ ) , bumped version to ** 3.0.1**
3233* 2015-11-22 ** The command line interface has changed with v3.0.0** , as I performed a huge code refactoring.
3334* 2014-06-30 I moved Penelope to GitHub, and released it under the MIT License, with the version code v2.0.0.
3435
3536
3637## Installation
3738
39+ ### Using pip
40+
41+ 1 . Open a console and type:
42+
43+ ``` bash
44+ $ [sudo] pip install penelope
45+ ```
46+
47+ 2. That' s it! Just run without arguments (or with `-h` or `--help`) to get the manual:
48+
49+ ```bash
50+ $ penelope
51+ ```
52+
53+ This procedure will install `lxml` and `marisa-trie`.
54+ You might need to install `dictzip` (StarDict output) and `kindlegen` (MOBI output) separately, see below.
55+
56+ ### From source code
57+
38581. Get the source code:
3959
4060 * clone this repo with `git`:
@@ -46,7 +66,7 @@ With the current version you can:
4666 * or download the [latest release](https://github.com/pettarin/penelope/releases) and uncompress it somewhere,
4767 * or download the [current master ZIP](https://github.com/pettarin/penelope/archive/master.zip) and uncompress it somewhere.
4868
49- 2. Open a console and enter the ` penelope` directory:
69+ 2. Open a console and enter the `penelope` (cloned) directory:
5070
5171 ```bash
5272 $ cd /path/to/penelope
@@ -55,9 +75,11 @@ With the current version you can:
55753. That' s it! Just run without arguments (or with ` -h` or ` --help` ) to get the manual:
5676
5777 ` ` ` bash
58- $ python penelope.py
78+ $ python -m penelope
5979 ` ` `
6080
81+ This procedure will not any dependencies, see below.
82+
6183
6284# ## Dependencies
6385
@@ -68,10 +90,10 @@ With the current version you can:
6890 $ [sudo] apt-get install dictzip
6991 ` ` `
7092
71- * to read/write Kobo dictionaries: the Python module `marisa_trie `
93+ * to read/write Kobo dictionaries: the Python module ` marisa-trie `
7294
7395 ` ` ` bash
74- $ [sudo] pip install marisa_trie
96+ $ [sudo] pip install marisa-trie
7597 ` ` `
7698
7799 or [` MARISA` ](https://code.google.com/p/marisa-trie/) executables available in your ` $PATH ` or specified with ` --marisa-bin-path`
@@ -87,9 +109,9 @@ With the current version you can:
87109
88110```
89111usage:
90- $ python penelope.py -h
91- $ python penelope.py -i INPUT_FILE -j INPUT_FORMAT -f LANGUAGE_FROM -t LANGUAGE_TO -p OUTPUT_FORMAT -o OUTPUT_FILE [OPTIONS]
92- $ python penelope.py -i IN1,IN2[,IN3...] -j INPUT_FORMAT -f LANGUAGE_FROM -t LANGUAGE_TO -p OUTPUT_FORMAT -o OUTPUT_FILE [OPTIONS]
112+ $ penelope.py -h
113+ $ penelope.py -i INPUT_FILE -j INPUT_FORMAT -f LANGUAGE_FROM -t LANGUAGE_TO -p OUTPUT_FORMAT -o OUTPUT_FILE [ OPTIONS]
114+ $ penelope.py -i IN1,IN2[ ,IN3...] -j INPUT_FORMAT -f LANGUAGE_FROM -t LANGUAGE_TO -p OUTPUT_FORMAT -o OUTPUT_FILE [ OPTIONS]
93115
94116description:
95117 Convert dictionary file(s) with file name prefix INPUT_FILE from format INPUT_FORMAT to format OUTPUT_FORMAT, saving it as OUTPUT_FILE.
@@ -190,43 +212,43 @@ optional arguments:
190212
191213examples:
192214
193- $ python penelope.py -i dict.csv -j csv -f en -t it -p stardict -o output.zip
215+ $ penelope.py -i dict.csv -j csv -f en -t it -p stardict -o output.zip
194216 Convert en->it dictionary dict.csv (in CSV format) into output.zip (in StarDict format)
195217
196- $ python penelope.py -i dict.csv -j csv -f en -t it -p stardict -o output.zip --merge-definitions
218+ $ penelope.py -i dict.csv -j csv -f en -t it -p stardict -o output.zip --merge-definitions
197219 As above, but also merge definitions
198220
199- $ python penelope.py -i d1,d2,d3 -j csv -f en -t it -p csv -o output.csv --sort-after --sort-by-headword
221+ $ penelope.py -i d1,d2,d3 -j csv -f en -t it -p csv -o output.csv --sort-after --sort-by-headword
200222 Merge CSV dictionaries d1, d2, and d3 into output.csv, sorting by headword
201223
202- $ python penelope.py -i d1,d2,d3 -j csv -f en -t it -p csv -o output.csv --sort-after --sort-by-headword --sort-ignore-case
224+ $ penelope.py -i d1,d2,d3 -j csv -f en -t it -p csv -o output.csv --sort-after --sort-by-headword --sort-ignore-case
203225 As above, but ignore case for sorting
204226
205- $ python penelope.py -i d1,d2,d3 -j csv -f en -t it -p csv -o output.csv --sort-after --sort-by-headword --sort-reverse
227+ $ penelope.py -i d1,d2,d3 -j csv -f en -t it -p csv -o output.csv --sort-after --sort-by-headword --sort-reverse
206228 As above, but reverse the order
207229
208- $ python penelope.py -i dict.zip -j stardict -f en -t it -p csv -o output.csv
230+ $ penelope.py -i dict.zip -j stardict -f en -t it -p csv -o output.csv
209231 Convert en->it dictionary dict.zip (in StarDict format) into output.csv (in CSV format)
210232
211- $ python penelope.py -i dict.zip -j stardict -f en -t it -p csv -o output.csv --ignore-synonyms
233+ $ penelope.py -i dict.zip -j stardict -f en -t it -p csv -o output.csv --ignore-synonyms
212234 As above, but do not read the .syn synonym file if present
213235
214- $ python penelope.py -i dict.zip -j stardict -f en -t it -p csv -o output.csv --flatten-synonyms
236+ $ penelope.py -i dict.zip -j stardict -f en -t it -p csv -o output.csv --flatten-synonyms
215237 As above, but flatten synonyms
216238
217- $ python penelope.py -i dict.zip -j stardict -f en -t it -p bookeen -o output
239+ $ penelope.py -i dict.zip -j stardict -f en -t it -p bookeen -o output
218240 Convert dict.zip into output.dict.idx and output.dict for Bookeen devices
219241
220- $ python penelope.py -i dict.zip -j stardict -f en -t it -p kobo -o dicthtml-en-it
242+ $ penelope.py -i dict.zip -j stardict -f en -t it -p kobo -o dicthtml-en-it
221243 Convert dict.zip into dicthtml-en-it.zip for Kobo devices
222244
223- $ python penelope.py -i dict.csv -j csv -f en -t it -p mobi -o output.mobi --cover-path mycover.png --title "My English->Italian Dictionary"
245+ $ penelope.py -i dict.csv -j csv -f en -t it -p mobi -o output.mobi --cover-path mycover.png --title "My English->Italian Dictionary"
224246 Convert dict.csv into a MOBI (Kindle) dictionary, using the specified cover image and title
225247
226- $ python penelope.py -i dict.xml -j xml -f en -t it -p mobi -o output.epub
248+ $ penelope.py -i dict.xml -j xml -f en -t it -p mobi -o output.epub
227249 Convert dict.xml into an EPUB dictionary
228250
229- $ python penelope.py -i dict.xml -j xml -f en -t it -p mobi -o output.epub --epub-output-definitions
251+ $ penelope.py -i dict.xml -j xml -f en -t it -p mobi -o output.epub --epub-output-definitions
230252 As above, but also output definitions
231253
232254```
0 commit comments