Knowledge

Talk:ISBN

Source 📝

1066: 296: 658: 695: 444: 423: 357: 608: 583: 537: 512: 347: 329: 1022: 869: 786: 264: 234: 287: 931: 835: 967:
int: """Return ISBN error syndrome, zero for a valid ISBN, non-zero for an invalid one. Items in 'digits' that can't be cast to integer are ignored.""" c = t = s = u = 0 for d in digits: try: if c&1: u += int(d) # for 13-digit ISBN t += int(d); s
962:
Currently the article has a function `CheckISBN()` written in C that returns the error syndrome. However, it expects the input to be `int const digits`, which is quite nonsensical and to the least impractical. Bytes would be more appropriate for digits -- where would you find an ISBN coded as array
912:
dependent on #2, which relies on a source that says that each edition "shall be assigned" a different ISBN. Sometimes, publishers don't comply and don't assign separate ISBNs to different editions, so "will" is wrong, but "must" isn't affected by non-compliance.
971:
If the C implementation is to be retained, one could use `t += digits & 15` to convert ASCII digits to integers. As explained earlier, the argument should be `char digits` to use bytes or characters rather than 32-bit integers. —
968:+= t; c += 1 except ValueError: pass # ignore non-digits like spaces, '-', ... if c == 10: return s % 11 if c != 13: raise ValueError(f"Expected 10 or 13 digits, got {c}.") return (t+2*u) % 10 164: 1050: 1125: 225: 1115: 1130: 963:
of ten 32-bit integers? It would be easy to allow to scan a string of bytes that might indifferently be UTF-8 or integer digits. I suggest the following code:
158: 300: 1150: 494: 484: 90: 1110: 614: 588: 1155: 1120: 96: 460: 1145: 1140: 938:
I think "must" is better wording. In the document, "shall" is a pretty bad word for them to use as it can mean either "must" or "will" (
914: 377: 1054: 676: 381: 1105: 543: 517: 451: 428: 110: 41: 1135: 115: 31: 85: 309: 55: 764: 371: 334: 76: 1077: 700: 233: 196: 179: 664: 146: 814: 743: 244: 1081: 822: 1028: 918: 875: 792: 715: 704: 201: 120: 818: 315: 17: 140: 619: 593: 548: 522: 385: 286: 1087: 998: 990: 734: 730: 726: 722: 718: 221: 217: 213: 209: 205: 172: 66: 813:
Change the establishment date from 1970 to 1967, as this is the more accurate date. My source is "
459:
on Knowledge. If you would like to participate, please visit the project page, where you can join
1002: 994: 947: 909: 749: 249: 136: 81: 62: 1073: 745: 694: 246: 186: 1072:
it's not clear what changes you want to be made. Please mention the specific changes in a
849: 389: 987: 271: 443: 422: 1099: 977: 943: 356: 362: 152: 905:
must each have a different ISBN. must each have a different ISBN assigned to it.
899:
will each have a different ISBN. will each have a different ISBN assigned to it.
607: 582: 536: 511: 844: 352: 815:
https://www.archwaypublishing.com/en/faq/10-things-you-should-know-about-isbn
456: 346: 328: 973: 939: 376:. To participate in the project, please visit its page, where you can 986:
I disagree. That just obfuscates the straightforward algorithm.
747: 672: 248: 35: 1016: 863: 780: 750: 688: 652: 280: 258: 250: 26: 1090: 1058: 1006: 980: 951: 922: 853: 826: 1049:
Mr Shakti raj}it suggests in this application software
668: 663:
On 16 April 2022, it was proposed that this article be
171: 455:, a collaborative effort to improve the coverage of 617:, a project which is currently considered to be 546:, a project which is currently considered to be 44:for general discussion of the article's subject. 1013:Semi-protected edit request on 9 September 2024 777:Semi-protected edit request on 21 November 2023 388:. To improve this article, please refer to the 1126:Knowledge level-5 vital articles in Technology 860:Semi-protected edit request on 29 January 2024 758:This page has archives. Sections older than 185: 8: 577: 506: 417: 384:. To use this banner, please refer to the 323: 629:Knowledge:WikiProject Unique Identifiers 382:discuss matters related to book articles 579: 508: 419: 390:relevant guideline for the type of work 325: 284: 18:Talk:International Standard Book Number 1116:Knowledge vital articles in Technology 966:def CheckISBN(digits: Iterable) -: --> 768:when more than 4 sections are present. 1051:2409:40E5:BB:AAD5:D842:FEFF:FE58:E11D 7: 1131:C-Class vital articles in Technology 613:This article is within the scope of 542:This article is within the scope of 449:This article is within the scope of 368:This article is within the scope of 314:It is of interest to the following 34:for discussing improvements to the 842:Changed date and added reference. 669:International Standard Book Number 25: 1151:Low-importance Libraries articles 762:may be automatically archived by 1111:Knowledge level-5 vital articles 1064: 1020: 929: 867: 833: 784: 693: 656: 606: 581: 535: 510: 442: 421: 355: 345: 327: 294: 285: 262: 232: 56:Click here to start a new topic. 558:Knowledge:WikiProject Retailing 489:This article has been rated as 469:Knowledge:WikiProject Libraries 1156:WikiProject Libraries articles 1121:C-Class level-5 vital articles 615:WikiProject Unique Identifiers 561:Template:WikiProject Retailing 472:Template:WikiProject Libraries 270:For editor help on ISBNs, see 1: 1091:20:29, 9 September 2024 (UTC) 1059:18:46, 9 September 2024 (UTC) 896:Please remove these phrases: 854:22:06, 21 November 2023 (UTC) 827:02:01, 21 November 2023 (UTC) 463:and see a list of open tasks. 53:Put new text under old text. 952:02:15, 29 January 2024 (UTC) 923:00:55, 29 January 2024 (UTC) 1043:to reactivate your request. 1031:has been answered. Set the 890:to reactivate your request. 878:has been answered. Set the 807:to reactivate your request. 795:has been answered. Set the 635:Unique Identifiers articles 398:Knowledge:WikiProject Books 61:New to Knowledge? Welcome! 1172: 1146:C-Class Libraries articles 1141:WikiProject Books articles 495:project's importance scale 401:Template:WikiProject Books 269: 601: 530: 488: 437: 340: 322: 91:Be welcoming to newcomers 1007:10:32, 31 May 2024 (UTC) 981:17:31, 20 May 2024 (UTC) 942:says they're synonyms.) 632:Template:WikiProject UID 958:checking for valid ISBN 902:and replace them with: 1106:C-Class vital articles 1074:"change X to Y" format 765:Lowercase sigmabot III 86:avoid personal attacks 1136:C-Class Book articles 544:WikiProject Retailing 452:WikiProject Libraries 301:level-5 vital article 226:Auto-archiving period 111:Neutral point of view 116:No original research 1080:if appropriate. ⸺( 626:Unique Identifiers 589:Unique Identifiers 564:Retailing articles 475:Libraries articles 310:content assessment 97:dispute resolution 58: 1047: 1046: 894: 893: 811: 810: 772: 771: 687: 686: 651: 650: 647: 646: 643: 642: 576: 575: 572: 571: 505: 504: 501: 500: 416: 415: 412: 411: 372:WikiProject Books 279: 278: 257: 256: 77:Assume good faith 54: 16:(Redirected from 1163: 1068: 1067: 1038: 1034: 1024: 1023: 1017: 937: 933: 932: 885: 881: 871: 870: 864: 852: 847: 841: 837: 836: 802: 798: 788: 787: 781: 767: 751: 697: 689: 675:. The result of 660: 659: 653: 637: 636: 633: 630: 627: 610: 603: 602: 597: 585: 578: 566: 565: 562: 559: 556: 539: 532: 531: 526: 514: 507: 477: 476: 473: 470: 467: 446: 439: 438: 433: 425: 418: 406: 405: 402: 399: 396: 378:join the project 365: 360: 359: 349: 342: 341: 331: 324: 307: 298: 297: 290: 289: 281: 266: 265: 259: 251: 237: 236: 227: 190: 189: 175: 106:Article policies 27: 21: 1171: 1170: 1166: 1165: 1164: 1162: 1161: 1160: 1096: 1095: 1078:reliable source 1065: 1036: 1032: 1021: 1015: 969: 960: 930: 928: 906: 900: 883: 879: 868: 862: 848: 843: 834: 832: 800: 796: 785: 779: 763: 752: 746: 709: 657: 634: 631: 628: 625: 624: 591: 563: 560: 557: 554: 553: 520: 474: 471: 468: 465: 464: 431: 403: 400: 397: 394: 393: 361: 354: 308:on Knowledge's 305: 295: 275: 263: 253: 252: 247: 224: 132: 127: 126: 125: 102: 72: 23: 22: 15: 12: 11: 5: 1169: 1167: 1159: 1158: 1153: 1148: 1143: 1138: 1133: 1128: 1123: 1118: 1113: 1108: 1098: 1097: 1094: 1093: 1076:and provide a 1045: 1044: 1025: 1014: 1011: 1010: 1009: 988:KISS principle 965: 959: 956: 955: 954: 904: 898: 892: 891: 872: 861: 858: 857: 856: 809: 808: 789: 778: 775: 770: 769: 757: 754: 753: 748: 744: 742: 739: 738: 711: 710: 698: 692: 685: 684: 677:the discussion 661: 649: 648: 645: 644: 641: 640: 638: 611: 599: 598: 586: 574: 573: 570: 569: 567: 540: 528: 527: 515: 503: 502: 499: 498: 491:Low-importance 487: 481: 480: 478: 461:the discussion 447: 435: 434: 432:Low‑importance 426: 414: 413: 410: 409: 407: 367: 366: 350: 338: 337: 332: 320: 319: 313: 291: 277: 276: 272:Knowledge:ISBN 267: 255: 254: 245: 243: 242: 239: 238: 192: 191: 129: 128: 124: 123: 118: 113: 104: 103: 101: 100: 93: 88: 79: 73: 71: 70: 59: 50: 49: 46: 45: 39: 24: 14: 13: 10: 9: 6: 4: 3: 2: 1168: 1157: 1154: 1152: 1149: 1147: 1144: 1142: 1139: 1137: 1134: 1132: 1129: 1127: 1124: 1122: 1119: 1117: 1114: 1112: 1109: 1107: 1104: 1103: 1101: 1092: 1089: 1085: 1084: 1079: 1075: 1071: 1063: 1062: 1061: 1060: 1056: 1052: 1042: 1039:parameter to 1030: 1026: 1019: 1018: 1012: 1008: 1004: 1000: 996: 992: 989: 985: 984: 983: 982: 979: 975: 964: 957: 953: 949: 945: 941: 940:thesaurus.com 936: 927: 926: 925: 924: 920: 916: 915:123.51.107.94 911: 903: 897: 889: 886:parameter to 877: 873: 866: 865: 859: 855: 851: 846: 840: 831: 830: 829: 828: 824: 820: 819:Guano islands 816: 806: 803:parameter to 794: 790: 783: 782: 776: 774: 766: 761: 756: 755: 741: 740: 737: 736: 732: 728: 724: 720: 717: 713: 712: 708: 706: 702: 696: 691: 690: 682: 678: 674: 670: 666: 662: 655: 654: 639: 622: 621: 616: 612: 609: 605: 604: 600: 595: 590: 587: 584: 580: 568: 551: 550: 545: 541: 538: 534: 533: 529: 524: 519: 516: 513: 509: 496: 492: 486: 483: 482: 479: 462: 458: 454: 453: 448: 445: 441: 440: 436: 430: 427: 424: 420: 408: 404:Book articles 391: 387: 386:documentation 383: 379: 375: 374: 373: 364: 358: 353: 351: 348: 344: 343: 339: 336: 333: 330: 326: 321: 317: 311: 303: 302: 292: 288: 283: 282: 273: 268: 261: 260: 241: 240: 235: 231: 223: 219: 215: 211: 207: 203: 200: 198: 194: 193: 188: 184: 181: 178: 174: 170: 166: 163: 160: 157: 154: 151: 148: 145: 142: 138: 135: 134:Find sources: 131: 130: 122: 121:Verifiability 119: 117: 114: 112: 109: 108: 107: 98: 94: 92: 89: 87: 83: 80: 78: 75: 74: 68: 64: 63:Learn to edit 60: 57: 52: 51: 48: 47: 43: 37: 33: 29: 28: 19: 1082: 1069: 1048: 1040: 1029:edit request 970: 961: 934: 910:lede summary 907: 901: 895: 887: 876:edit request 838: 812: 804: 793:edit request 773: 759: 714: 699: 680: 618: 547: 490: 450: 370: 369: 363:Books portal 316:WikiProjects 299: 229: 195: 182: 176: 168: 161: 155: 149: 143: 133: 105: 30:This is the 850:Talk to me! 159:free images 42:not a forum 1100:Categories 1033:|answered= 880:|answered= 797:|answered= 1070:Not done: 555:Retailing 518:Retailing 466:Libraries 457:Libraries 429:Libraries 304:is rated 99:if needed 82:Be polite 32:talk page 1088:staplers 999:ToraNeko 991:ToraNeko 944:Coulomb1 908:#1 is a 760:365 days 701:Archives 620:inactive 594:inactive 549:inactive 523:inactive 230:365 days 197:Archives 67:get help 40:This is 38:article. 493:on the 306:C-class 165:WP refs 153:scholar 1083:Random 312:scale. 137:Google 1037:|ans= 1027:This 884:|ans= 874:This 845:Lewcm 801:|ans= 791:This 716:Index 705:index 681:moved 667:from 665:moved 395:Books 335:Books 293:This 202:Index 180:JSTOR 141:books 95:Seek 1055:talk 1003:talk 995:talk 978:Talk 948:talk 935:Done 919:talk 839:Done 823:talk 679:was 673:ISBN 380:and 173:FENS 147:news 84:and 36:ISBN 1035:or 974:MFH 882:or 799:or 671:to 485:Low 187:TWL 1102:: 1057:) 1041:no 1005:) 997:) 950:) 921:) 888:no 825:) 817:" 805:no 733:, 729:, 725:, 721:, 228:: 220:, 216:, 212:, 208:, 204:, 167:) 65:; 1086:) 1053:( 1001:( 993:( 976:: 946:( 917:( 821:( 735:5 731:4 727:3 723:2 719:1 707:) 703:( 683:. 623:. 596:) 592:( 552:. 525:) 521:( 497:. 392:. 318:: 274:. 222:5 218:4 214:3 210:2 206:1 199:: 183:· 177:· 169:· 162:· 156:· 150:· 144:· 139:( 69:. 20:)

Index

Talk:International Standard Book Number
talk page
ISBN
not a forum
Click here to start a new topic.
Learn to edit
get help
Assume good faith
Be polite
avoid personal attacks
Be welcoming to newcomers
dispute resolution
Neutral point of view
No original research
Verifiability
Google
books
news
scholar
free images
WP refs
FENS
JSTOR
TWL
Archives
Index
1
2
3
4

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.