How to automatically apply ISBN hyphenation?

前端 未结 4 1383
花落未央
花落未央 2021-01-31 11:03

I\'ve got ISBN numbers (10-digits and 13 digits) without the dashes. Now I\'m looking for a way to add those dashes automatically.

I found some useful information here:

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-31 11:19

    For Python, you can use the library python-stdnum, isbnid or isbn_hyphenate. They can hyphenate ISBNs, and use the range table mentioned in the other answer.

提交回复
热议问题