mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
EDIFACT encoding error - can't encode lower case chars
This commit is contained in:
parent
16a86fc54a
commit
a4c878bdbb
@ -284,17 +284,17 @@ int look_ahead_test(unsigned char source[], int sourcelen, int position, int cur
|
||||
|
||||
/* step (p) */
|
||||
done = 0;
|
||||
if((source[sp] >= ' ') && (source[sp] <= '^')) { edf_count += (3.0 / 4.0); } else { edf_count += 4.0; }
|
||||
if(gs1 && (source[sp] == '[')) { edf_count += 4.0; }
|
||||
if(sp >= (sourcelen - 5)) { edf_count += 4.0; } /* MMmmm fudge! */
|
||||
if((source[sp] >= ' ') && (source[sp] <= '^')) { edf_count += (3.0 / 4.0); } else { edf_count += 6.0; }
|
||||
if(gs1 && (source[sp] == '[')) { edf_count += 6.0; }
|
||||
if(sp >= (sourcelen - 5)) { edf_count += 6.0; } /* MMmmm fudge! */
|
||||
|
||||
/* step (q) */
|
||||
if(gs1 && (source[sp] == '[')) { b256_count += 4.0; } else { b256_count += 1.0; }
|
||||
|
||||
/*printf("lat a%.2f c%.2f t%.2f x%.2f e%.2f b%.2f\n", ascii_count, c40_count, text_count, x12_count, edf_count, b256_count);*/
|
||||
/* printf("%c lat a%.2f c%.2f t%.2f x%.2f e%.2f b%.2f\n", source[sp], ascii_count, c40_count, text_count, x12_count, edf_count, b256_count); */
|
||||
|
||||
}
|
||||
|
||||
|
||||
best_count = ascii_count;
|
||||
best_scheme = DM_ASCII;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user