https://bugzilla.wikimedia.org/show_bug.cgi?id=10685
--- Comment #5 from Randolph Finder <[email protected]> 2009-06-04 17:01:15 UTC --- What language is development in, PHP? The program would primarily be referencing the tables at http://www.isbn-international.org/en/identifiers/List-of-Ranges.pdf and the code would look something like http://usin.org/software/servers/ISBN-ISSN.phps (Don't want to copy it directly, but definitely right idea. :) The way that the table would be referenced for ISBN-10 is to find the line that has the first piece of the ISBN in the first column, where the next chunk is between the two next fields, and then also cut before the check digit, so 4789654321 would be hyphenated after the 4 (since 4 is in the first column alone, and then after the 7896 since since 7896 is between 7000 and 8499 and then before the 1 (assuming 1 is the appropriate check digit) and would become 4-7896-5432-1. For ISBN-13 just put the initial 978 in its own group. It may also make sense as part of the same effort to figure out how to react on either mislength or mischeckdigit situations. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
