[sword-svn] r2061 - trunk/examples/cmdline

scribe at www.crosswire.org scribe at www.crosswire.org
Thu Jul 19 10:26:18 MST 2007


Author: scribe
Date: 2007-07-19 10:26:18 -0700 (Thu, 19 Jul 2007)
New Revision: 2061

Modified:
   trunk/examples/cmdline/lookup.cpp
Log:
Added a few more options for debugging


Modified: trunk/examples/cmdline/lookup.cpp
===================================================================
--- trunk/examples/cmdline/lookup.cpp	2007-07-13 15:33:31 UTC (rev 2060)
+++ trunk/examples/cmdline/lookup.cpp	2007-07-19 17:26:18 UTC (rev 2061)
@@ -9,6 +9,7 @@
 using sword::MarkupFilterMgr;
 using sword::SWModule;
 using sword::FMT_WEBIF;
+using sword::FMT_HTMLHREF;
 using sword::ModMap;
 using sword::AttributeTypeList;
 using sword::AttributeList;
@@ -17,7 +18,8 @@
 int main(int argc, char **argv)
 {
 	
-	SWMgr manager(new MarkupFilterMgr(FMT_WEBIF));
+//	SWMgr manager(new MarkupFilterMgr(FMT_WEBIF));
+	SWMgr manager(new MarkupFilterMgr(FMT_HTMLHREF));
 	SWModule *target;
 
 	if (argc != 3) {
@@ -37,7 +39,9 @@
 		exit(-1);
 	}
 
+	// turn all filters to default values
 	manager.setGlobalOption("Headings", "On");
+	manager.setGlobalOption("Strong's Numbers", "On");
 //	manager.setGlobalOption("Greek Accents", "Off");
 
 	target->setKey(argv[2]);




More information about the sword-cvs mailing list