1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-08 12:32:01 +00:00

Improved FNC1 handling

This commit is contained in:
hooper114
2009-08-05 17:59:28 +00:00
parent 46c6430276
commit 6d5fcc78e3

View File

@@ -78,13 +78,6 @@ int aztec_text_process(unsigned char source[], char binary_string[], int gs1)
typemap[maplength] = PUNC;
maplength++;
}
if(source[i] > 127) {
charmap[maplength] = source[i];
typemap[maplength] = BINARY;
} else {
charmap[maplength] = AztecSymbolChar[source[i]];
typemap[maplength] = AztecCodeSet[source[i]];
}
if((gs1) && (source[i] == '[')) {
/* FNC1 represented by FLG(0) */
charmap[maplength] = 0;
@@ -92,6 +85,14 @@ int aztec_text_process(unsigned char source[], char binary_string[], int gs1)
maplength++;
charmap[maplength] = 400;
typemap[maplength] = PUNC;
} else {
if(source[i] > 127) {
charmap[maplength] = source[i];
typemap[maplength] = BINARY;
} else {
charmap[maplength] = AztecSymbolChar[source[i]];
typemap[maplength] = AztecCodeSet[source[i]];
}
}
maplength++;
}