34 static const char oName[] =
"Textual Variants";
35 static const char oTip[] =
"Switch between Textual Variants modes";
36 static const char *
choices[4] = {
"Primary Reading",
"Secondary Reading",
"All Readings",
"" };
39 static const StringList oVals(&choices[0], &choices[3]);
61 if (option == 0 || option == 1) {
68 const char *from = orig.
c_str();
72 const char* variantChoice = (option == 0) ?
"x-2" :
"x-1";
74 for (text =
""; *from; from++) {
80 else if (*from ==
'>') {
83 if (!strncmp(token.
c_str(),
"seg", 3)) {
92 if (!strncmp(token.
c_str(),
"/seg", 4)) {
#define SWORD_NAMESPACE_START
static const StringList * oValues()
const char * c_str() const
std::list< SWBuf > StringList
SWBuf & append(const char *str, long max=-1)
static const char oName[]
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)
static const char * choices[4]
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
#define SWORD_NAMESPACE_END