[sword-svn] r293 - trunk/modules/perlconverters

refdoc at crosswire.org refdoc at crosswire.org
Mon Aug 9 01:48:03 MST 2010


Author: refdoc
Date: 2010-08-09 01:48:02 -0700 (Mon, 09 Aug 2010)
New Revision: 293

Modified:
   trunk/modules/perlconverters/usfm2osis.pl
Log:
updated usage message


Modified: trunk/modules/perlconverters/usfm2osis.pl
===================================================================
--- trunk/modules/perlconverters/usfm2osis.pl	2010-08-05 16:28:44 UTC (rev 292)
+++ trunk/modules/perlconverters/usfm2osis.pl	2010-08-09 08:48:02 UTC (rev 293)
@@ -97,12 +97,13 @@
 
 # Syntax instructions
 if (scalar(@ARGV) < 2) {
-    print "\nusfm2osis.pl -- USFM $usfmVersion to OSIS $osisVersion converter version $version\nRevision $rev ($date)\nSyntax: usfm2osis.pl <osisWork> [-o OSIS-file] [-e USFM encoding] <USFM filenames|wildcard>\n";
+    print "\nusfm2osis.pl -- USFM $usfmVersion to OSIS $osisVersion converter version $version\nRevision $rev ($date)\nSyntax: usfm2osis.pl <osisWork> [-o OSIS-file] [-e USFM encoding] [-t module type] <USFM filenames|wildcard>\n";
     print "- Arguments in braces < > are required. Arguments in brackets [ ] are optional.\n";
     print "- The osisWork is a short name with no spaces which will identify your module.\n";
     print "- If no -o option is specified for the output filename, the default output file is: \n\tosisWork.osis.xml.\n";
     print "- Supported encodings include:\n\t$encodings\n";
     print "- If the encoding is omitted, utf8 is the default value.\n";
+    print "- The script can currently produce valid OSIS for usfm bibles and nearly valid OSIS for usfm commentaries. To set the module type use '-t' with either 'bible' or 'comment'. On ommision 'bible' is assumed.\n";
     print "- USFM filenames with the SFM extension can be accessed using a wildcard: \n\t*.SFM\n";
     print "As an example, if you want to generate the osisWork <bible> and your USFM files are encoded in utf8, located in the /Bible folder relative to this script with the file extension SFM, enter:\n\tperl usfm2osis.pl bible Bible/*.SFM\n\n";
     exit (-1);




More information about the sword-cvs mailing list