Sun 23 Oct 2005

EAN to ISBN conversion

Don kindly gave me a ‘neutered’ :CueCat USB barcode scanner, so I've finally got round to scanning some of my books.

Of course, it scoops in the EAN, not the ISBN, from the barcode. This doesn't hamper Books too much, but it does mean I've got an incorrect field that's a pain to fix.

Enter 15 minutes of Lisping, producing ean2isbn.lisp. Two useful functions are exported from the ean-to-isbn package:
  • ean-to-isbn does exactly what it says on the tin. Takes a 13-character string.
  • ean-file-to-isbn-file takes two filenames. The first must exist, and contains EANs, one per line. The second will be appended to if it exists, and otherwise will be created and filled with ISBNs.
Enjoy.

Sometime I'll wrap this with cl-launch… a shell script will do for now.

Posted at 2005-10-23 06:52:35 by RichardLink to EAN to ISBN conver…
Comments, trackbacks.

Google
Web holygoat.co.uk
  • richard is: