[sword-svn] r2235 - trunk/utilities/diatheke

chrislit at crosswire.org chrislit at crosswire.org
Sat Feb 7 01:25:30 MST 2009


Author: chrislit
Date: 2009-02-07 01:25:30 -0700 (Sat, 07 Feb 2009)
New Revision: 2235

Modified:
   trunk/utilities/diatheke/corediatheke.cpp
Log:
starting to add TEI support to diatheke

Modified: trunk/utilities/diatheke/corediatheke.cpp
===================================================================
--- trunk/utilities/diatheke/corediatheke.cpp	2009-02-07 08:24:08 UTC (rev 2234)
+++ trunk/utilities/diatheke/corediatheke.cpp	2009-02-07 08:25:30 UTC (rev 2235)
@@ -127,6 +127,8 @@
 				inputformat = FMT_THML;
 			else if (!::stricmp((char *)(*eit).second.c_str(), "OSIS"))
 				inputformat = FMT_OSIS;
+			else if (!::stricmp((char *)(*eit).second.c_str(), "TEI"))
+				inputformat = FMT_TEI;
 		}
 		encoding = ((eit = (*sit).second.find("Encoding")) != (*sit).second.end()) ? (*eit).second : (SWBuf)"";
 	}
@@ -143,6 +145,9 @@
 	  case FMT_OSIS :
 	    *output << "OSIS";
 	    break;
+	  case FMT_TEI :
+	    *output << "TEI";
+	    break;
 	  default:
 	    *output << "Other";
 	  }	 




More information about the sword-cvs mailing list