public
Description: This library provides methods to manipulate isbns.
Homepage: http://gemcutter.org/gems/isbn
Clone URL: git://github.com/entangledstate/isbn.git
isbn /
name age message
file .gitignore Fri Oct 30 00:48:35 -0700 2009 removing gemspec and gitignoring future specs. ... [entangledstate]
file README Fri Oct 30 01:22:00 -0700 2009 shouldn't try and spell at 1am [entangledstate]
file Rakefile Wed Nov 18 01:27:20 -0800 2009 adding Jeweler::GemcutterTasks for relasing to ... [entangledstate]
file VERSION Fri Nov 20 15:40:30 -0800 2009 Version bump to 2.0.2 [entangledstate]
directory lib/ Mon Dec 07 17:43:49 -0800 2009 adding more aliases [entangledstate]
directory src/ Tue Aug 18 12:13:09 -0700 2009 updating README and SRC [entangledstate]
directory test/ Fri Nov 20 15:39:25 -0800 2009 respond with an error when isbn input is an emp... [entangledstate]
README
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 uses the LibJPEG and GOCR libraries to accomplish. The src for both is available in /src.
 - probably will not run on Windows. Give it a try and let me know.
 - The OCR has been quite accurate in the situations where I have needed it.



COPYRIGHT
=========

Copyright (c) 2009 Tim Kersey.