mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
fix major issue with codabar
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rxing"
|
name = "rxing"
|
||||||
version = "0.2.8"
|
version = "0.2.9"
|
||||||
description="A rust port of the zxing barcode library."
|
description="A rust port of the zxing barcode library."
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
repository="https://github.com/hschimke/rxing"
|
repository="https://github.com/hschimke/rxing"
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ fn main() {
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Latest Release Notes
|
## Latest Release Notes
|
||||||
|
v0.2.9 -> Major fix, codabar was not being encoded by multiformat writer.
|
||||||
|
|
||||||
v0.2.6 -> Fix missing result point callback for rss14
|
v0.2.6 -> Fix missing result point callback for rss14
|
||||||
|
|
||||||
v0.2.4 -> Add helper functions for common cases (read a file, use raw luma8 data).
|
v0.2.4 -> Add helper functions for common cases (read a file, use raw luma8 data).
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ use crate::{
|
|||||||
datamatrix::DataMatrixWriter,
|
datamatrix::DataMatrixWriter,
|
||||||
oned::{
|
oned::{
|
||||||
Code128Writer, Code39Writer, Code93Writer, EAN13Writer, EAN8Writer, ITFWriter, UPCAWriter,
|
Code128Writer, Code39Writer, Code93Writer, EAN13Writer, EAN8Writer, ITFWriter, UPCAWriter,
|
||||||
UPCEWriter,
|
UPCEWriter, CodaBarWriter,
|
||||||
},
|
},
|
||||||
pdf417::PDF417Writer,
|
pdf417::PDF417Writer,
|
||||||
qrcode::QRCodeWriter,
|
qrcode::QRCodeWriter,
|
||||||
@@ -67,7 +67,7 @@ impl Writer for MultiFormatWriter {
|
|||||||
BarcodeFormat::CODE_128 => Box::<Code128Writer>::default(),
|
BarcodeFormat::CODE_128 => Box::<Code128Writer>::default(),
|
||||||
BarcodeFormat::ITF => Box::<ITFWriter>::default(),
|
BarcodeFormat::ITF => Box::<ITFWriter>::default(),
|
||||||
BarcodeFormat::PDF_417 => Box::<PDF417Writer>::default(),
|
BarcodeFormat::PDF_417 => Box::<PDF417Writer>::default(),
|
||||||
BarcodeFormat::CODABAR => Box::<Code128Writer>::default(),
|
BarcodeFormat::CODABAR => Box::<CodaBarWriter>::default(),
|
||||||
BarcodeFormat::DATA_MATRIX => Box::<DataMatrixWriter>::default(),
|
BarcodeFormat::DATA_MATRIX => Box::<DataMatrixWriter>::default(),
|
||||||
BarcodeFormat::AZTEC => Box::<AztecWriter>::default(),
|
BarcodeFormat::AZTEC => Box::<AztecWriter>::default(),
|
||||||
_ => {
|
_ => {
|
||||||
|
|||||||
@@ -172,8 +172,7 @@ mod CodaBarWriterTestCase {
|
|||||||
fn testEncode() {
|
fn testEncode() {
|
||||||
doTest(
|
doTest(
|
||||||
"B515-3/B",
|
"B515-3/B",
|
||||||
&format!(
|
concat!(
|
||||||
"{}{}{}{}{}{}{}{}{}{}",
|
|
||||||
"00000",
|
"00000",
|
||||||
"1001001011",
|
"1001001011",
|
||||||
"0110101001",
|
"0110101001",
|
||||||
@@ -192,16 +191,13 @@ mod CodaBarWriterTestCase {
|
|||||||
fn testEncode2() {
|
fn testEncode2() {
|
||||||
doTest(
|
doTest(
|
||||||
"T123T",
|
"T123T",
|
||||||
&format!(
|
concat!("00000",
|
||||||
"{}{}{}{}{}{}{}",
|
"1011001001",
|
||||||
"00000",
|
"0101011001",
|
||||||
"1011001001",
|
"0101001011",
|
||||||
"0101011001",
|
"0110010101",
|
||||||
"0101001011",
|
"01011001001",
|
||||||
"0110010101",
|
"00000"),
|
||||||
"01011001001",
|
|
||||||
"00000"
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user