README.md in petrarca-0.5.15 vs README.md in petrarca-0.6.0

- old
+ new

@@ -3,18 +3,19 @@ This library Petrarca provides some utility functions to manipulate ISBN numbers: - Validation - Calculate check digit - Mutual conversion of ISBN-13 and ISBN-10 -- Hyphenation +- Hyphenation / Dehyphenation +- Split to a array that includes ISBN segments All functions support both ISBN-13 and ISBN-10. All ranges of registration groups and registrants are supported. Those depends on 'RangeMessage.xml' file, downloaded from [International ISBN Agency](https://www.isbn-international.org/range_file_generation). -NOTE: Updated range files to latest version on September 8, 2023. +NOTE: Updated range files to latest version on December 30, 2023. ## Installation Add this line to your application's Gemfile: @@ -42,13 +43,17 @@ => "4-8156-0644-7" irb(main):005:0> Petrarca.to_13("4-8156-0644-7") => "978-4-8156-0644-2" irb(main):006:0> Petrarca.hyphenate("9784815606442") => "978-4-8156-0644-2" + irb(main):007:0> Petrarca.dehyphenate("978-4-8156-0644-2") + => "9784815605442" + irb(main):008:0> Petrarca.split("9784815606442") + => ["978", "4", "8156", "0644", "2"] -Accept Integer as ISBN, only if no `-` and `X` including. +`Petrarca.dehyphenate` and `Petrarca.split` are new in v0.6.0. -New in v0.5.0. +Accept Integer as ISBN, only if no `-` and `X` including. (New in v0.5.0) irb(main):001:0> require 'petrarca' => true irb(main):002:0> Petrarca.calc_check_digit(978481560644) => "2"