Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cscott/mw-ocg-zimwriter
Converts mediawiki collection bundles (as generated by mw-ocg-bundler) to ZIM format.
https://github.com/cscott/mw-ocg-zimwriter
Last synced: 13 days ago
JSON representation
Converts mediawiki collection bundles (as generated by mw-ocg-bundler) to ZIM format.
- Host: GitHub
- URL: https://github.com/cscott/mw-ocg-zimwriter
- Owner: cscott
- Created: 2014-10-30T14:27:31.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-05T20:06:18.000Z (about 10 years ago)
- Last Synced: 2024-11-07T06:16:07.295Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.mediawiki.org/wiki/Offline_content_generator
- Size: 1.97 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.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/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-zim_renderer.svg
[4]: https://david-dm.org/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-zim_renderer
[5]: https://david-dm.org/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-zim_renderer/dev-status.svg
[6]: https://david-dm.org/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-zim_renderer#info=devDependencies