[sword-svn] r2413 - trunk/utilities

chrislit at crosswire.org chrislit at crosswire.org
Thu May 14 14:22:42 MST 2009


Author: chrislit
Date: 2009-05-14 14:22:42 -0700 (Thu, 14 May 2009)
New Revision: 2413

Modified:
   trunk/utilities/osis2mod.cpp
   trunk/utilities/tei2mod.cpp
Log:
changed usage statements (mostly spacing) to prevent wrapping in default width terminal windows


Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp	2009-05-14 19:46:39 UTC (rev 2412)
+++ trunk/utilities/osis2mod.cpp	2009-05-14 21:22:42 UTC (rev 2413)
@@ -1261,9 +1261,11 @@
 
 	if (error) fprintf(stderr, "\n%s: %s\n", app, error);
 
+	fprintf(stderr, "OSIS Bible/commentary module creation tool for The SWORD Project\n");
 	fprintf(stderr, "\nusage: %s <output/path> <osisDoc> [OPTIONS]\n", app);
 	fprintf(stderr, "  <output/path>\t\t an existing folder that the module will be written\n");
-	fprintf(stderr, "  <osisDoc>\t\t path to the validated OSIS document, or '-' to read from standard input\n");
+	fprintf(stderr, "  <osisDoc>\t\t path to the validated OSIS document, or '-' to\n");
+	fprintf(stderr, "\t\t\t\t read from standard input\n");
 	fprintf(stderr, "  -a\t\t\t augment module if exists (default is to create new)\n");
 	fprintf(stderr, "  -z\t\t\t use ZIP compression (default no compression)\n");
 	fprintf(stderr, "  -Z\t\t\t use LZSS compression (default no compression)\n");
@@ -1275,9 +1277,10 @@
 	fprintf(stderr, "\t\t\t\t (default is to convert to UTF-8, if needed,\n");
 	fprintf(stderr, "\t\t\t\t  and then normalize to NFC)\n");
 	fprintf(stderr, "\t\t\t\t Note: UTF-8 texts should be normalized to NFC.\n");
-	fprintf(stderr, "  -s <2|4>\t\t max text size per entry (default is 2).\n");
-	fprintf(stderr, "\t\t\t\t Note: useful for commentaries with very large entries\n");
-	fprintf(stderr, "\t\t\t\t       in uncompressed modules (default is 65535 bytes)\n");
+	fprintf(stderr, "  -s <2|4>\t\t bytes used to store entry size (default is 2).\n");
+	fprintf(stderr, "\t\t\t\t Note: useful for commentaries with very large\n");
+	fprintf(stderr, "\t\t\t\t entries in uncompressed modules\n");
+	fprintf(stderr, "\t\t\t\t (2 bytes to store size equal 65535 characters)\n");
 	fprintf(stderr, "  -v <v11n>\t\t specify a versification scheme to use (default is KJV)\n");
 	fprintf(stderr, "\t\t\t\t Note: The following are valid values for v11n:\n");
 	VerseMgr *vmgr = VerseMgr::getSystemVerseMgr();

Modified: trunk/utilities/tei2mod.cpp
===================================================================
--- trunk/utilities/tei2mod.cpp	2009-05-14 19:46:39 UTC (rev 2412)
+++ trunk/utilities/tei2mod.cpp	2009-05-14 21:22:42 UTC (rev 2413)
@@ -332,7 +332,7 @@
 			
 	if (error) fprintf(stderr, "\n%s: %s\n", app, error);
 		
-	fprintf(stderr, "TEI Lexicon/Dictionary/Daily Devotional/Glossary module creation tool for the SWORD Project\n");
+	fprintf(stderr, "TEI Lexicon/Dictionary/Daily Devotional/Glossary module creation tool for\n\tThe SWORD Project\n");
 	fprintf(stderr, "\nusage: %s <output/path> <teiDoc> [OPTIONS]\n", app);
 	fprintf(stderr, "  -z\t\t\t use ZIP compression (default no compression)\n");
 	fprintf(stderr, "  -Z\t\t\t use LZSS compression (default no compression)\n");
@@ -340,9 +340,10 @@
 	fprintf(stderr, "  -c <cipher_key>\t encipher module using supplied key\n");
 	fprintf(stderr, "\t\t\t\t (default no enciphering)\n");
         fprintf(stderr, "  -N\t\t\t Do not convert UTF-8 or normalize UTF-8 to NFC\n");
-        fprintf(stderr, "\t\t\t\t (default is to convert to UTF-8, if needed, and then normalize to NFC");
-        fprintf(stderr, "\t\t\t\t Note: all UTF-8 texts should be normalized to NFC\n");
-	fprintf(stderr, "-z, -Z, and -s are mutually exclusive\n");
+        fprintf(stderr, "\t\t\t\t (default is to convert to UTF-8, if needed,\n");
+        fprintf(stderr, "\t\t\t\t  and then normalize to NFC. Note: all UTF-8\n");
+	fprintf(stderr, "\t\t\t\t  texts should be normalized to NFC.)\n");
+	fprintf(stderr, "\n\tThe options -z, -Z, and -s are mutually exclusive.\n");
 	exit(-1);
 }
 




More information about the sword-cvs mailing list