feat: Add rMQR Code encoder #83
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds a rMQR Code (Rectangular Micro QR Code) encoder to this crate. It's standardized as ISO/IEC 23941.
This implementation is based on the
qrqrpar
crate, which is a fork of this crate. It's licensed under the BSD 3-Clause "New" or "Revised" License, so I think it's possible to import the code from theqrqrpar
crate into this crate.The shape of rMQR Code is rectangular, not square. So I changed
Renderer::new
to take the vertical modules count in addition to the horizontal modules count.1 This is a breaking change.Note
The feature to automatically choice the rMQR code version implemented in the
qrqrpar
crate is not implemented. This is because I didn't think it is necessary to add it. If you think it is necessary, I think you can implement it usingbits::encode_auto_rmqr
as a reference.Closes #80
Footnotes
Except for rMQR code, the horizontal modules count and the vertical modules count should be the same value. ↩