Git Product home page Git Product logo

isbn's Introduction

isbn

Version 2.0

This library provides methods to manipulate isbns. As of version 2.0 there has been a near complete rewrite of this library but this time there are tests. A few methods have been removed. Here is what remains:

  • ISBN.ten will return a 10 digit isbn if you give it a 10 or 13 digit isbn
  • it will raise a No10DigitISBNAvailable error if given an isbn starting with 979 because 979 isbns do NOT have a 10 digit counterpart.
  • ISBN.thirteen will return a 13 digit isbn if you give it 10 or thirteen digit isbn

  • ISBN.as_new will convert an isbn into the used book version for that isbn

  • for isbns starting with 978 it returns an isbn starting with 290
  • for isbns starting with 979 it returns an isbn starting with 291
  • ISBN.as_used will convert an isbn into the new book version for that isbn
  • for isbns starting with 290 it returns an isbn starting with 978
  • for isbns starting with 291 it returns an isbn starting with 979
  • ISBN.valid? will compare the check digit of the passed in isbn with that of one it computes

  • ISBN.from_image accept a jpeg of an isbn and OCR it into an isbn.

  • it depends on the LibJpeg and Gocr libraries. I recommend Homebrew.
  • ISBN.from_string fetches isbn from string

isbn's People

Contributors

jkaflik avatar lukaselmer avatar tkersey avatar

Watchers

 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.