mirror of
https://github.com/dzo/mrz99.git
synced 2025-04-12 06:50:01 +03:00
print translations and rename dictionary files
This commit is contained in:
parent
a6cb80a2fa
commit
4d5bbb3b02
@ -65,7 +65,7 @@ void load_dictionary(char *untran,char *tran) {
|
||||
while(!feof(g)) {
|
||||
readstring(g,st);
|
||||
readstring(f,st1);
|
||||
//printf("%s -> %s\n",st,st1);
|
||||
printf("[%s -> %s]\n",st,st1);
|
||||
for(j=0;j<nstrings;j++)
|
||||
if(!strcmp(st,original[j]))
|
||||
break;
|
||||
@ -126,7 +126,7 @@ int main(int argc,char *argv[]) {
|
||||
int offset=0;
|
||||
int next=0;
|
||||
short ch;
|
||||
load_dictionary("untranslated.txt","translated.txt");
|
||||
load_dictionary("untranslated_090.txt","translated_090.txt");
|
||||
load_dictionary("untranslated_110.txt","translated_110.txt");
|
||||
|
||||
while(!feof(g)) {
|
||||
@ -146,6 +146,7 @@ int main(int argc,char *argv[]) {
|
||||
for(i=0;i<nstrings;i++) {
|
||||
readstring(g,st);
|
||||
tr=get_translation(st);
|
||||
printf("%s -> %s\n",st,tr);
|
||||
strings[i]=malloc(strlen(tr)+1);
|
||||
strcpy(strings[i],tr);
|
||||
int j;
|
||||
|
4352
translated_090.txt
Normal file
4352
translated_090.txt
Normal file
File diff suppressed because it is too large
Load Diff
4534
untranslated_090.txt
Normal file
4534
untranslated_090.txt
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user