Giter VIP home page Giter VIP logo

epubchop's Introduction

EPUBChop Continuous Integration

Creates EPUB samples

$ ./bin/epubchop --help
EPUBChop will create a sample version of an EPUB.

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!"

epubchop --words 10 --base percentage -line1 "Want to read more?" -line2 "Buy the book!" my.epub

This gem depends on [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] gem.

Changes

  • 0.1.0
    • Warning!!! I monkey patch rubyzip until they release an update(it is already fixed in the main branch). Apparently the latest Rubyzip inserts a placeholder for 64bit addressing by default. This breaks file recognition for tools like FIDO.

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-2014 LIBIS/KULeuven, Mehmet Celik. See LICENSE for further details.

epubchop's People

Contributors

mehmetc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.