mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -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;
|
||||
} else if (oneByte == 231) { // Latch to Base 256 encodation
|
||||
return BASE256_ENCODE;
|
||||
} else if (oneByte == 232 || oneByte == 233 || oneByte == 234) {
|
||||
// FNC1, Structured Append, Reader Programming
|
||||
} else if (oneByte == 232) {
|
||||
// FNC1
|
||||
result.append((char) 29); // translate as ASCII 29
|
||||
} else if (oneByte == 233 || oneByte == 234) {
|
||||
// Structured Append, Reader Programming
|
||||
// Ignore these symbols for now
|
||||
//throw ReaderException.getInstance();
|
||||
} else if (oneByte == 235) { // Upper Shift (shift to Extended ASCII)
|
||||
|
@ -235,7 +238,7 @@ final class DecodedBitStreamParser {
|
|||
result.append(c40char);
|
||||
}
|
||||
} else if (cValue == 27) { // FNC1
|
||||
// ignore
|
||||
result.append((char) 29); // translate as ASCII 29
|
||||
} else if (cValue == 30) { // Upper Shift
|
||||
upperShift = true;
|
||||
} else {
|
||||
|
@ -320,7 +323,7 @@ final class DecodedBitStreamParser {
|
|||
result.append(c40char);
|
||||
}
|
||||
} else if (cValue == 27) { // FNC1
|
||||
// ignore
|
||||
result.append((char) 29); // translate as ASCII 29
|
||||
} else if (cValue == 30) { // Upper Shift
|
||||
upperShift = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue