mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Issue #428 Fix Code 93 escapes above %F
This commit is contained in:
parent
8a87f159a3
commit
c1c2fcfbb0
|
@ -223,11 +223,21 @@ public final class Code93Reader extends OneDReader {
|
|||
}
|
||||
break;
|
||||
case 'b':
|
||||
// %A to %E map to control codes ESC to US
|
||||
if (next >= 'A' && next <= 'E') {
|
||||
// %A to %E map to control codes ESC to USep
|
||||
decodedChar = (char) (next - 38);
|
||||
} else if (next >= 'F' && next <= 'W') {
|
||||
} else if (next >= 'F' && next <= 'J') {
|
||||
// %F to %J map to ; < = > ?
|
||||
decodedChar = (char) (next - 11);
|
||||
} else if (next >= 'K' && next <= 'O') {
|
||||
// %K to %O map to [ \ ] ^ _
|
||||
decodedChar = (char) (next + 16);
|
||||
} else if (next >= 'P' && next <= 'S') {
|
||||
// %P to %S map to { | } ~
|
||||
decodedChar = (char) (next + 43);
|
||||
} else if (next >= 'T' && next <= 'Z') {
|
||||
// %T to %Z all map to DEL (127)
|
||||
decodedChar = 127;
|
||||
} else {
|
||||
throw FormatException.getFormatInstance();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue