Sha256: a6a30e4fb24a3844563a1408b08fd920fc8232a77ef665855522da9df60b7570

Contents?: true

Size: 1.64 KB

Versions: 3

Compression:

Stored size: 1.64 KB

Contents

EPUBChop [![Continuous Integration](https://travis-ci.org/mehmetc/EPUBChop.png?branch=master)](http://travis-ci.org/mehmetc/EPUBChop)
========

Creates EPUB previews

```
$ ./bin/epubchop --help
EPUBChop will create a preview version of an EPUB file.

Usage:
      epubchop [options] <filename>

where [options] are:
  --words, -w <i>:   the amount of words to put in the preview (default: 10)
   --base, -b <s>:   if given the base value of the amount of words is ... Possible values percentage (default: percentage)
  --line1, -l <s>:   Text that is shown on line 1 of the chopped of pages (default: Continue reading?)
  --line2, -i <s>:   Text that is shown on line 2 of the chopped of pages (default: Go to your local library or buy the book.)
       --help, -h:   Show this message
```

### Example:
Create a new EPUB with 10% of the content all other pages should contain the lines "Want to read more? Buy the book!"
```ruby
epubchop --words 10 --base percentage -line1 "Want to read more?" -line2 "Buy the book!" my.epub
```

This gem depends on [![epubinfo](http://github.com/chdorner/epubinfo)] I made some additions to the gem but they are still in a branch. Until they get accepted I'll be using the [![epubinfo_with_toc](https://github.com/mehmetc/epubinfo/tree/table_of_contents)]
gem.

## Contributing to EPUBChop
* Fork the project.
* Create a new branch to implement your bugfixes or features
* Commit and push until you are happy with your contribution.
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

## Copyright

Copyright (c) 2013 LIBIS/KULeuven, Mehmet Celik. See LICENSE for further details.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
EPUBChop-0.0.10 README.md
EPUBChop-0.0.7 README.md
EPUBChop-0.0.6 README.md