View Single Post
Old 04-15-2011, 03:15 PM   #83
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
IIRC, there's no requirement that 13 digit ISBN start with any fixed set of numbers. The only reason that most (all?) current ISBN 13s do so is because those two spaces haven't been exhausted as yet.
I've just looked this up here:
http://www.isbn-international.org/faqs/view/5

According to them:
Quote:
Prefix element – currently this can only be either 978 or 979 (it is always 3 digits).
I guess the issue is the definition of "currently"

I guess what I could do is just keep any ISBN-13 number it finds and keep scanning until it finds one with 978/979. If the latter is present, that will get returned.

Or I could throw it in as a configuration option as to whether to accept things other than 978/979. I would rather just be relying on the check_isbn logic in Calibre though for consistency.
kiwidude is offline   Reply With Quote