Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/isbn.py
Commit message (Collapse)AuthorAgeFilesLines
* Minor ISSN and ISBN documentation fixesChales Horn2023-06-171-5/+5
| | | | | | | Fix a comment that claimed incorrect ISSN length and use slightly more consistent terminology around check digits in ISSN and ISBN. Closes https://github.com/arthurdejong/python-stdnum/pull/415
* Fix typos found by codespellDimitri Papadopoulos2021-08-101-3/+3
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/269
* Drop pinning of isort now flake8-isort has been fixedArthur de Jong2021-01-101-1/+1
| | | | | | | This changes a few inline imports in the code to pass with the new isort. Reverts 291b831
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-2/+2
| | | | | | | | | | | The problem with the latter is that it will also accept all kinds of unicode digits that are not the ASCII 0-9 digits causing all kinds of problems in check digit calculations. Some of these unicode characters are also considered digits by int() but some are not (such as the SUPERSCRIPT TWO unicode character). Closes https://github.com/arthurdejong/python-stdnum/issues/96
* Docstring improvementsArthur de Jong2017-09-111-15/+13
|
* Check bookland code in ISBNArthur de Jong2017-08-301-1/+3
| | | | | | This ensures that an InvalidComponent() exception is raised when an unknown EAN bookland code is found. It will also raise this exception when using to_isbn10() when not using the 978 code.
* Fix conversion of 9 digit ISBN to ISBN13Arthur de Jong2017-04-151-2/+4
|
* Make more information links consistentArthur de Jong2016-04-111-2/+3
| | | | | Also fix a docstring in stdnum.nl.bsn and add a pointer to stdnum.nl.onderwijsnummer.
* Integrate information from the wikiArthur de Jong2015-10-301-3/+18
| | | | | | | This adds the information that was previously in the Trac wiki into the source docstrings because the Trac instance is being phased out. This also includes small updates to the ISIL module.
* Fix commentArthur de Jong2015-10-051-1/+1
|
* Turn on and improve branch coverageArthur de Jong2015-08-161-1/+1
|
* Implement validate() for ISBNArthur de Jong2013-06-081-20/+38
|
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-261-6/+6
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* implement a stdnum.util module for holding utility ↵Arthur de Jong2012-02-041-2/+3
| | | | | | functions (for now clean()) git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@100 9dea7c4f-944c-4273-ac1a-574ede026edc
* implement a conversion function from ISBN13 to ISBN10Arthur de Jong2011-09-201-0/+24
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@80 9dea7c4f-944c-4273-ac1a-574ede026edc
* fix a problem with an ISBN13 with a valid check digit ↵Arthur de Jong2011-09-201-8/+7
| | | | | | but with an unknown bookland prefix git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@78 9dea7c4f-944c-4273-ac1a-574ede026edc
* make source code layout follow PEP8 moreArthur de Jong2011-08-191-5/+12
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@76 9dea7c4f-944c-4273-ac1a-574ede026edc
* use the ean module for calculating the check digitArthur de Jong2011-06-201-8/+5
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@71 9dea7c4f-944c-4273-ac1a-574ede026edc
* fix typo in r53Arthur de Jong2011-02-051-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@56 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a convert parameter to most isbn functions to ↵Arthur de Jong2011-01-211-13/+19
| | | | | | automatically convert to ISBN-13 git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@53 9dea7c4f-944c-4273-ac1a-574ede026edc
* implement a new numdb module to hold information on ↵Arthur de Jong2010-11-241-0/+135
hierarchically organised numbers and switch the isbn module to use this format instead git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@42 9dea7c4f-944c-4273-ac1a-574ede026edc