mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Translate Data Matrix FNC1 as ASCII 29, as spec suggests that's usual in some cases
git-svn-id: https://zxing.googlecode.com/svn/trunk@1867 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
3f1f2188b2
commit
0fe6737a76
|
@ -140,8 +140,11 @@ final class DecodedBitStreamParser {
|
||||||
return C40_ENCODE;
|
return C40_ENCODE;
|
||||||
} else if (oneByte == 231) { // Latch to Base 256 encodation
|
} else if (oneByte == 231) { // Latch to Base 256 encodation
|
||||||
return BASE256_ENCODE;
|
return BASE256_ENCODE;
|
||||||
} else if (oneByte == 232 || oneByte == 233 || oneByte == 234) {
|
} else if (oneByte == 232) {
|
||||||
// FNC1, Structured Append, Reader Programming
|
// FNC1
|
||||||
|
result.append((char) 29); // translate as ASCII 29
|
||||||
|
} else if (oneByte == 233 || oneByte == 234) {
|
||||||
|
// Structured Append, Reader Programming
|
||||||
// Ignore these symbols for now
|
// Ignore these symbols for now
|
||||||
//throw ReaderException.getInstance();
|
//throw ReaderException.getInstance();
|
||||||
} else if (oneByte == 235) { // Upper Shift (shift to Extended ASCII)
|
} else if (oneByte == 235) { // Upper Shift (shift to Extended ASCII)
|
||||||
|
@ -235,7 +238,7 @@ final class DecodedBitStreamParser {
|
||||||
result.append(c40char);
|
result.append(c40char);
|
||||||
}
|
}
|
||||||
} else if (cValue == 27) { // FNC1
|
} else if (cValue == 27) { // FNC1
|
||||||
// ignore
|
result.append((char) 29); // translate as ASCII 29
|
||||||
} else if (cValue == 30) { // Upper Shift
|
} else if (cValue == 30) { // Upper Shift
|
||||||
upperShift = true;
|
upperShift = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -320,7 +323,7 @@ final class DecodedBitStreamParser {
|
||||||
result.append(c40char);
|
result.append(c40char);
|
||||||
}
|
}
|
||||||
} else if (cValue == 27) { // FNC1
|
} else if (cValue == 27) { // FNC1
|
||||||
// ignore
|
result.append((char) 29); // translate as ASCII 29
|
||||||
} else if (cValue == 30) { // Upper Shift
|
} else if (cValue == 30) { // Upper Shift
|
||||||
upperShift = true;
|
upperShift = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue