diff options
author | Troy A. Griffitts <scribe@crosswire.org> | 2008-09-28 21:53:32 +0000 |
---|---|---|
committer | Troy A. Griffitts <scribe@crosswire.org> | 2008-09-28 21:53:32 +0000 |
commit | 6d057ded23a6693af3d58f792bb6f7c093f8d82b (patch) | |
tree | 0ce11bdd2312c332fdcd21212ea0cd40512600e1 /flashtools/csvconv.cpp | |
parent | f0d79b0577e5cce2a7ff79f9324d870f735980e5 (diff) | |
download | sword-tools-6d057ded23a6693af3d58f792bb6f7c093f8d82b.tar.gz |
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@145 07627401-56e2-0310-80f4-f8cd0041bdcd
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]; |