summaryrefslogtreecommitdiffstats
path: root/flashtools/csvconv.cpp
diff options
context:
space:
mode:
authorTroy A. Griffitts <scribe@crosswire.org>2008-09-28 21:53:32 +0000
committerTroy A. Griffitts <scribe@crosswire.org>2008-09-28 21:53:32 +0000
commit6d057ded23a6693af3d58f792bb6f7c093f8d82b (patch)
tree0ce11bdd2312c332fdcd21212ea0cd40512600e1 /flashtools/csvconv.cpp
parentf0d79b0577e5cce2a7ff79f9324d870f735980e5 (diff)
downloadsword-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.cpp11
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];