-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aztec Code: allow user to restrict to normal sizes or compact sizes
- Loading branch information
Showing
8 changed files
with
192 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...test/resources/uk/org/okapibarcode/backend/azteccode/mode-compact-incompatible.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
PROPERTIES | ||
|
||
mode=COMPACT | ||
preferredSize=5 | ||
content=1234567890123456789012345678901234567890 | ||
|
||
ERROR | ||
|
||
Aztec mode COMPACT and preferred size 5 are incompatible |
Binary file added
BIN
+2.02 KB
src/test/resources/uk/org/okapibarcode/backend/azteccode/mode-compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions
59
src/test/resources/uk/org/okapibarcode/backend/azteccode/mode-compact.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
PROPERTIES | ||
|
||
content=1234567890123456789012345678901234567890 | ||
|
||
constructor=COMPACT | ||
content=1234567890123456789012345678901234567890 | ||
|
||
mode=COMPACT | ||
content=1234567890123456789012345678901234567890 | ||
|
||
mode=COMPACT | ||
preferredSize=2 | ||
content=1234567890123456789012345678901234567890 | ||
|
||
constructor=ANY | ||
content=1234567890123456789012345678901234567890 | ||
|
||
mode=ANY | ||
content=1234567890123456789012345678901234567890 | ||
|
||
mode=ANY | ||
preferredSize=2 | ||
content=1234567890123456789012345678901234567890 | ||
|
||
LOG | ||
|
||
ECI Mode: 3 | ||
ECI Charset: ISO-8859-1 | ||
Encoding: DL 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 2 | ||
Codewords: 60 26 10 51 49 13 22 17 40 43 15 4 53 25 6 34 44 60 19 21 36 26 10 51 49 13 22 23 | ||
Compact Mode: true | ||
Layers: 2 | ||
Codeword Length: 6 bits | ||
Data Codewords: 28 | ||
ECC Codewords: 12 | ||
Mode Message: 01011011 | ||
Blocks Merged: 94 -> 79 | ||
|
||
CODEWORDS | ||
|
||
312313132 | ||
24111141112 | ||
021112231312 | ||
013141243 | ||
1321112111221 | ||
11>21 | ||
02211724 | ||
13215111121 | ||
1211111311321 | ||
22211111111221 | ||
022111131124 | ||
2131511311 | ||
211117141 | ||
0311:211 | ||
0124222321 | ||
02812411 | ||
22131112123 | ||
3111151123 | ||
031321312111 |
9 changes: 9 additions & 0 deletions
9
src/test/resources/uk/org/okapibarcode/backend/azteccode/mode-normal-incompatible.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
PROPERTIES | ||
|
||
mode=NORMAL | ||
preferredSize=1 | ||
content=1234567890123456789012345678901234567890 | ||
|
||
ERROR | ||
|
||
Aztec mode NORMAL and preferred size 1 are incompatible |
Binary file added
BIN
+2.58 KB
src/test/resources/uk/org/okapibarcode/backend/azteccode/mode-normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions
51
src/test/resources/uk/org/okapibarcode/backend/azteccode/mode-normal.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
PROPERTIES | ||
|
||
constructor=NORMAL | ||
content=1234567890123456789012345678901234567890 | ||
|
||
mode=NORMAL | ||
content=1234567890123456789012345678901234567890 | ||
|
||
mode=NORMAL | ||
preferredSize=6 | ||
content=1234567890123456789012345678901234567890 | ||
|
||
LOG | ||
|
||
ECI Mode: 3 | ||
ECI Charset: ISO-8859-1 | ||
Encoding: DL 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 2 | ||
Codewords: 60 26 10 51 49 13 22 17 40 43 15 4 53 25 6 34 44 60 19 21 36 26 10 51 49 13 22 23 | ||
Compact Mode: false | ||
Layers: 2 | ||
Codeword Length: 6 bits | ||
Data Codewords: 28 | ||
ECC Codewords: 20 | ||
Mode Message: 0000100000011011 | ||
Blocks Merged: 137 -> 98 | ||
|
||
CODEWORDS | ||
|
||
23132231231 | ||
611131151111 | ||
0212652131 | ||
0111212111212421 | ||
1234171121 | ||
11A13 | ||
033;1122 | ||
1231912211 | ||
121111171142 | ||
211111115111123 | ||
03111111131111312 | ||
011111111111111111111111 | ||
32111113111124 | ||
3121115111213 | ||
0311111711141 | ||
0111111191141 | ||
03111;1113 | ||
2111>31 | ||
0133121314121 | ||
0111142112132111 | ||
01311111211145 | ||
01111511311151 | ||
13213223141 |