Gerard Flanagan wrote: > All > > would anyone happen to have code to generate Cutter Numbers: > > eg. http://www1.kfupm.edu.sa/library/cod-web/Cutter-numbers.htm > > or is anyone looking for something to do?-) (I'm under pressure!) > > def cutter(lname, fname, book_title): >
What do you use lname and fname (author first name and last name?) for? The page you linked to does not have any information (that I could see) about first names or last names. I wrote a script to see if I could capture what the table is doing on the page you linked to. It gets the Cutter number right about 50% of the time, otherwise its off by a few digits. I am stumped about what to do when the first letter is Q not followed by U. It says to use numbers 2-29 for the second letters a-t, but that is obviously not right (for one thing t would be 21, not 29). Since you seem a little bit more experienced in library science could you explain what is going on? :) you can find the script here: http://lost-theory.org/python/cutter.txt Title mine real match? --------------------------------------- IBM I26 I26 True Idaho I33 I33 True Ilardo I43 I4 False Import I47 I48 False Inman I56 I56 True Ipswich I67 I67 True Ito I86 I87 False Ivy I99 I94 False Sadron S23 S23 True Scanlon S33 S29 False Schreiber S37 S37 True Shillingburg S55 S53 False Singer S56 S57 False Stinson S75 S75 True Suryani S87 S87 True Symposium S96 S96 True Qadduri Q23 Q23 True Qiao Q103 Q27 False Quade Q33 Q33 True Queiroz Q45 Q45 True Quinn Q56 Q56 True Quorum Q67 Q67 True Qutub Q88 Q88 True Qvortrup Q236 Q97 False Campbell C46 C36 False Ceccaldi C53 C43 False Chertok C64 C48 False Clark C73 C58 False Cobblestone C43 C63 False Cryer C79 C79 True Cuellar C74 C84 False Cymbal C36 C96 False Steve -- http://mail.python.org/mailman/listinfo/python-list