[sword-svn] r3319 - trunk/utilities/diatheke
charcoal at crosswire.org
charcoal at crosswire.org
Tue Jan 6 18:17:18 MST 2015
Author: charcoal
Date: 2015-01-06 18:17:17 -0700 (Tue, 06 Jan 2015)
New Revision: 3319
Modified:
trunk/utilities/diatheke/corediatheke.cpp
trunk/utilities/diatheke/corediatheke.h
trunk/utilities/diatheke/diatheke.cpp
Log:
add morph.seg to diatheke
Modified: trunk/utilities/diatheke/corediatheke.cpp
===================================================================
--- trunk/utilities/diatheke/corediatheke.cpp 2015-01-05 02:12:03 UTC (rev 3318)
+++ trunk/utilities/diatheke/corediatheke.cpp 2015-01-07 01:17:17 UTC (rev 3319)
@@ -251,6 +251,7 @@
manager.setGlobalOption("Glosses", (optionfilters & OP_GLOSSES) ? "On": "Off");
manager.setGlobalOption("Transliterated Forms", (optionfilters & OP_XLIT) ? "On": "Off");
manager.setGlobalOption("Enumerations", (optionfilters & OP_ENUM) ? "On": "Off");
+ manager.setGlobalOption("Morpheme Segmentation", (optionfilters & OP_MORPHSEG) ? "On": "Off");
manager.setGlobalOption("Transliteration", (optionfilters & OP_TRANSLITERATOR && script) ? script : "Off");
Modified: trunk/utilities/diatheke/corediatheke.h
===================================================================
--- trunk/utilities/diatheke/corediatheke.h 2015-01-05 02:12:03 UTC (rev 3318)
+++ trunk/utilities/diatheke/corediatheke.h 2015-01-07 01:17:17 UTC (rev 3319)
@@ -58,6 +58,7 @@
#define OP_GLOSSES (1<<15)
#define OP_XLIT (1<<16)
#define OP_ENUM (1<<17)
+#define OP_MORPHSEG (1<<18)
#define ST_NONE 0
#define ST_REGEX 1 // 0
Modified: trunk/utilities/diatheke/diatheke.cpp
===================================================================
--- trunk/utilities/diatheke/diatheke.cpp 2015-01-05 02:12:03 UTC (rev 3318)
+++ trunk/utilities/diatheke/diatheke.cpp 2015-01-07 01:17:17 UTC (rev 3319)
@@ -57,7 +57,8 @@
fprintf (stderr, " l (Lemmas), s (Scripture Crossrefs), r (Arabic Shaping),\n");
fprintf (stderr, " b (Bi-Directional Reordering), w (Red Words of Christ),\n");
fprintf (stderr, " g (Glosses/Ruby), e (Word Enumerations),\n");
- fprintf (stderr, " x (Encoded Transliterations), t (Algorithmic Transliterations via ICU)\n");
+ fprintf (stderr, " x (Encoded Transliterations), t (Algorithmic Transliterations via ICU),\n");
+ fprintf (stderr, " M (morpheme segmentation)\n");
fprintf (stderr, "Maximum verses may be any integer value\n");
fprintf (stderr, "Valid output_format values are: CGI, GBF, HTML, HTMLHREF, LaTeX, OSIS, RTF,\n");
@@ -180,6 +181,8 @@
optionfilters |= OP_ENUM;
if (strchr(argv[i], 't'))
optionfilters |= OP_TRANSLITERATOR;
+ if (strchr(argv[i], 'M'))
+ optionfilters |= OP_MORPHSEG;
}
}
else if (!::stricmp("-f", argv[i])) {
More information about the sword-cvs
mailing list