Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cscott/mw-ocg-zimwriter.old
Converts mediawiki collection bundles (as generated by mw-bundler) to ZIM format.
https://github.com/cscott/mw-ocg-zimwriter.old
Last synced: about 2 months ago
JSON representation
Converts mediawiki collection bundles (as generated by mw-bundler) to ZIM format.
- Host: GitHub
- URL: https://github.com/cscott/mw-ocg-zimwriter.old
- Owner: cscott
- Created: 2014-08-06T12:19:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-01T19:13:40.000Z (about 10 years ago)
- Last Synced: 2024-05-02T00:05:43.438Z (8 months ago)
- Language: JavaScript
- Size: 2.04 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mw-ocg-zimwriter
[![NPM][NPM1]][NPM2][![Build Status][1]][2] [![dependency status][3]][4] [![dev dependency status][5]][6]
Converts mediawiki collection bundles (as generated by [mw-ocg-bundler]) to
[ZIM] files.## Installation
Node version 0.8 and 0.10 are tested to work.
Install the node package dependencies.
```
npm install
```Install other system dependencies.
```
apt-get install unzip
```## Generating bundles
You may wish to install the [mw-ocg-bundler] npm package to create bundles
from wikipedia articles. The below text assumes that you have done
so; ignore the `mw-ocg-bundler` references if you have bundles from
some other source.## Running
To generate a plaintext file named `out.txt` from the English
(`enwiki`) wikipedia article "United States":
```
mw-ocg-bundler -o us.zip --prefix enwiki "United States"
bin/mw-ocg-zimwriter -o us.zim us.zip
```For other options, see:
```
bin/mw-ocg-zimwriter --help
```## Related Projects
* [mw-ocg-bundler][]
* [mw-ocg-latexer][]
* [mw-ocg-texter][]## License
GPLv2
(c) 2014 by C. Scott Ananian
[mw-ocg-bundler]: https://github.com/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-bundler
[mw-ocg-latexer]: https://github.com/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-latex_renderer
[mw-ocg-texter]: https://github.com/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-text_renderer[ZIM]: http://en.wikipedia.org/wiki/ZIM_(file_format)
[NPM1]: https://nodei.co/npm/mw-ocg-zimwriter.svg
[NPM2]: https://nodei.co/npm/mw-ocg-zimwriter/[1]: https://travis-ci.org/cscott/mw-ocg-zimwriter.svg
[2]: https://travis-ci.org/cscott/mw-ocg-zimwriter
[3]: https://david-dm.org/cscott/mw-ocg-zimwriter.svg
[4]: https://david-dm.org/cscott/mw-ocg-zimwriter
[5]: https://david-dm.org/cscott/mw-ocg-zimwriter/dev-status.svg
[6]: https://david-dm.org/cscott/mw-ocg-zimwriter#info=devDependencies