mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-09 04:51:58 +00:00
Improved FNC1 handling
This commit is contained in:
@@ -78,13 +78,6 @@ int aztec_text_process(unsigned char source[], char binary_string[], int gs1)
|
|||||||
typemap[maplength] = PUNC;
|
typemap[maplength] = PUNC;
|
||||||
maplength++;
|
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] == '[')) {
|
if((gs1) && (source[i] == '[')) {
|
||||||
/* FNC1 represented by FLG(0) */
|
/* FNC1 represented by FLG(0) */
|
||||||
charmap[maplength] = 0;
|
charmap[maplength] = 0;
|
||||||
@@ -92,6 +85,14 @@ int aztec_text_process(unsigned char source[], char binary_string[], int gs1)
|
|||||||
maplength++;
|
maplength++;
|
||||||
charmap[maplength] = 400;
|
charmap[maplength] = 400;
|
||||||
typemap[maplength] = PUNC;
|
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++;
|
maplength++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user