diff options
Diffstat (limited to 'flashtools/csvconv.cpp')
-rw-r--r-- | flashtools/csvconv.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/flashtools/csvconv.cpp b/flashtools/csvconv.cpp index c6d67bd..9ff33e2 100644 --- a/flashtools/csvconv.cpp +++ b/flashtools/csvconv.cpp @@ -12,11 +12,16 @@ void processLine(SWBuf line) { line += "|"; const char *field = line.stripPrefix('|'); cout << "[" << field << "]\n"; - const char *keys[] = { "Language", "TWOT", "Form", "GkRelated", "FullerMeaning", "UnpointedHeb", "CALUnpointedAscii", "TABSUnpointedAscii", "PointedHeb", "Transliteration", "Phonetic", "Notes", "Meaning", "FullMeaning", "TranslationInAV", 0 }; + const char *keys[] = { "PointedHeb", "Language", "Meaning", "TWOT", "Form", "GkRelated", "FullerMeaning", "UnpointedHeb", "CALUnpointedAscii", "TABSUnpointedAscii", "Transliteration", "Phonetic", "Notes", "FullMeaning", "TranslationInAV", 0 }; for (int i = 0; keys[i]; i++) { field = line.stripPrefix('|'); if (!field) break; - cout << keys[i] << "=" << field << "\n"; + if (!strcmp("PointedHeb", keys[i])) { + cout << "UTF8=" << field << "\n"; + } + else { + cout << keys[i] << "=" << field << "\n"; + } } } @@ -28,7 +33,7 @@ int main(int argc, char **argv) { FileMgr fmgr; SWBuf line; - char *fname = "hebrewDiB.csv"; + char *fname = "STRONGSLIST.csv"; if (argc > 1) fname = argv[1]; |