[sword-svn] r3087 - trunk/utilities

refdoc at crosswire.org refdoc at crosswire.org
Sun Mar 9 06:06:19 MST 2014


Author: refdoc
Date: 2014-03-09 06:06:18 -0700 (Sun, 09 Mar 2014)
New Revision: 3087

Modified:
   trunk/utilities/mod2imp.cpp
Log:
added 2 new output formats XHTML and Latex to mod2imp. Not sure if useful, but as it was possible...


Modified: trunk/utilities/mod2imp.cpp
===================================================================
--- trunk/utilities/mod2imp.cpp	2014-03-08 22:38:14 UTC (rev 3086)
+++ trunk/utilities/mod2imp.cpp	2014-03-09 13:06:18 UTC (rev 3087)
@@ -49,7 +49,7 @@
 	fprintf(stderr, "\n=== mod2imp (Revision $Rev$) SWORD module exporter.\n");
 	fprintf(stderr, "\nusage: %s <module_name> [options]\n"
 		"\t -r [output_format]  - render content instead of outputting raw native\n"
-		"\t\tdata.  output_format can be: OSIS, HTMLHREF, RTF.\n"
+		"\t\tdata.  output_format can be: OSIS, XHTML, LaTeX, HTMLHREF, RTF.\n"
 		"\t -s - strip markup instead of outputting raw native data.\n"
 		"\t -f <option_name> <option_value> - when rendering (-r, above), option\n"
 		"\t\tfilter values can be set with this option.\n\n"
@@ -94,6 +94,9 @@
 	if       (renderForm == "HTMLHREF") markupMgr = new MarkupFilterMgr(sword::FMT_HTMLHREF);
 	else if  (renderForm == "OSIS")     markupMgr = new MarkupFilterMgr(sword::FMT_OSIS);
 	else if  (renderForm == "RTF")      markupMgr = new MarkupFilterMgr(sword::FMT_RTF);
+	else if  (renderForm == "LATEX")    markupMgr = new MarkupFilterMgr(sword::FMT_LATEX);
+	else if  (renderForm == "XHTML")    markupMgr = new MarkupFilterMgr(sword::FMT_XHTML);
+	
 	else if  (renderForm.length())      usage(progName, (((SWBuf) "Unknown output_format for -r (")+renderForm+")").c_str());
 
 	SWMgr *mgr = (markupMgr) ? new SWMgr(markupMgr) : new SWMgr();




More information about the sword-cvs mailing list