mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-19 17:55:10 -04:00
Improved Kanji support - Now converts from Unicode to Shift JIS
This commit is contained in:
parent
2262c365c4
commit
de4f39782f
7 changed files with 6977 additions and 5 deletions
|
@ -86,7 +86,8 @@ void usage(void)
|
|||
" --mode=NUMBER (Maxicode and Composite) Set encoding mode.\n"
|
||||
" --null=NUMBER Character to represent NULL.\n"
|
||||
" --gs1 Treat input as GS1 data\n"
|
||||
" --kanji Treat input as Kanji characters\n"
|
||||
" --kanji Treat input as Kanji characters in Unicode\n"
|
||||
" --sjis Treat input as Shift-JIS\n"
|
||||
, ZINT_VERSION);
|
||||
}
|
||||
|
||||
|
@ -162,6 +163,7 @@ int main(int argc, char **argv)
|
|||
{"null=", 1, 0, 0},
|
||||
{"gs1", 0, 0, 0},
|
||||
{"kanji", 0, 0, 0},
|
||||
{"sjis", 0, 0, 0},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
c = getopt_long(argc, argv, "htb:w:d:o:i:rcmp", long_options, &option_index);
|
||||
|
@ -189,6 +191,9 @@ int main(int argc, char **argv)
|
|||
if(!strcmp(long_options[option_index].name, "kanji")) {
|
||||
my_symbol->input_mode = KANJI_MODE;
|
||||
}
|
||||
if(!strcmp(long_options[option_index].name, "sjis")) {
|
||||
my_symbol->input_mode = SJIS_MODE;
|
||||
}
|
||||
if(!strcmp(long_options[option_index].name, "fg=")) {
|
||||
strncpy(my_symbol->fgcolour, optarg, 7);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue