summaryrefslogtreecommitdiff
path: root/src/backend/filters
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/filters')
-rw-r--r--src/backend/filters/btosismorphsegmentation.cpp95
-rw-r--r--src/backend/filters/btosismorphsegmentation.h47
-rw-r--r--src/backend/filters/gbftohtml.cpp6
-rw-r--r--src/backend/filters/gbftohtml.h4
-rw-r--r--src/backend/filters/osismorphsegmentation.cpp83
-rw-r--r--src/backend/filters/osismorphsegmentation.h37
-rw-r--r--src/backend/filters/osistohtml.cpp39
-rw-r--r--src/backend/filters/osistohtml.h4
-rw-r--r--src/backend/filters/plaintohtml.cpp2
-rw-r--r--src/backend/filters/plaintohtml.h4
-rw-r--r--src/backend/filters/teitohtml.cpp9
-rw-r--r--src/backend/filters/teitohtml.h4
-rw-r--r--src/backend/filters/thmltohtml.cpp17
-rw-r--r--src/backend/filters/thmltohtml.h4
-rw-r--r--src/backend/filters/thmltoplain.cpp2
-rw-r--r--src/backend/filters/thmltoplain.h4
16 files changed, 198 insertions, 163 deletions
diff --git a/src/backend/filters/btosismorphsegmentation.cpp b/src/backend/filters/btosismorphsegmentation.cpp
new file mode 100644
index 0000000..1675476
--- /dev/null
+++ b/src/backend/filters/btosismorphsegmentation.cpp
@@ -0,0 +1,95 @@
+/*********
+*
+* This file is part of BibleTime's source code, http://www.bibletime.info/.
+*
+* Copyright 1999-2014 by the BibleTime developers.
+* The BibleTime source code is licensed under the GNU General Public License version 2.0.
+*
+**********/
+
+#include "backend/filters/btosismorphsegmentation.h"
+
+// Sword includes:
+#include <utilxml.h>
+
+
+const char Filters::BtOSISMorphSegmentation::oName[] = "Morph segmentation";
+const char Filters::BtOSISMorphSegmentation::oTip[] = "Toggles morph "
+ "segmentation On and Off "
+ "if they exist";
+
+const sword::SWBuf Filters::BtOSISMorphSegmentation::choices[3] = { "Off",
+ "On",
+ "" };
+
+const sword::StringList Filters::BtOSISMorphSegmentation::oValues(&choices[0],
+ &choices[2]);
+
+Filters::BtOSISMorphSegmentation::BtOSISMorphSegmentation()
+ : sword::SWOptionFilter(oName, oTip, &oValues)
+{
+ setOptionValue("Off");
+}
+
+char Filters::BtOSISMorphSegmentation::processText(sword::SWBuf & text,
+ const sword::SWKey * key,
+ const sword::SWModule * mod)
+{
+ (void) key;
+ (void) mod;
+
+ sword::SWBuf token;
+ bool intoken = false;
+ bool hide = false;
+
+ sword::SWBuf orig(text);
+ const char * from = orig.c_str();
+
+ sword::XMLTag tag;
+
+ for (text = ""; *from; ++from) {
+ if (*from == '<') {
+ intoken = true;
+ token = "";
+ continue;
+ }
+
+ if (*from == '>') { // process tokens
+ intoken = false;
+
+ if (!strncmp(token.c_str(), "seg ", 4)
+ || !strncmp(token.c_str(), "/seg", 4))
+ {
+ tag = token;
+
+ if (!tag.isEndTag()
+ && tag.getAttribute("type")
+ && !strcmp("morph", tag.getAttribute("type")))
+ { // <seg type="morph"> start tag
+ hide = (option == 0); // only hide if option is Off
+ }
+
+ if (hide) { // hides start and end tags as long as hide is set
+ if (tag.isEndTag()) //</seg>
+ hide = false;
+ continue; // leave out the current token
+ }
+ } // end of seg tag handling
+
+ text.append('<');
+ text.append(token);
+ text.append('>');
+ // hide = false; // not right, because there may be child tags in seg. Only /seg may disable the seg hiding.
+ continue;
+ } // end of intoken part
+
+ if (intoken) {
+ token.append(*from); // copy token
+ } else {
+ text.append(*from); // copy text which is not inside of a tag
+ }
+ }
+
+ return 0;
+}
+
diff --git a/src/backend/filters/btosismorphsegmentation.h b/src/backend/filters/btosismorphsegmentation.h
new file mode 100644
index 0000000..66d4724
--- /dev/null
+++ b/src/backend/filters/btosismorphsegmentation.h
@@ -0,0 +1,47 @@
+/*********
+*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
+* This file is part of BibleTime's source code, http://www.bibletime.info/.
+*
+* Copyright 1999-2014 by the BibleTime developers.
+* The BibleTime source code is licensed under the GNU General Public License version 2.0.
+*
+**********/
+
+#ifndef BTOSISMORPHSEGMENTATION_H
+#define BTOSISMORPHSEGMENTATION_H
+
+// Sword includes:
+#include <swbuf.h>
+#include <swoptfilter.h>
+
+
+namespace Filters {
+
+/**
+ \brief This Filter shows/hides headings in a OSIS text.
+ \author Martin Gruner
+*/
+class BtOSISMorphSegmentation: public sword::SWOptionFilter {
+
+public: /* Methods: */
+
+ BtOSISMorphSegmentation();
+
+ virtual char processText(sword::SWBuf & text,
+ const sword::SWKey * key = 0,
+ const sword::SWModule * module = 0);
+
+private: /* Fields: */
+
+ static const char oName[];
+ static const char oTip[];
+ static const sword::SWBuf choices[3];
+ static const sword::StringList oValues;
+
+};
+
+} /* namespace Filters { */
+
+#endif /* BTOSISMORPHSEGMENTATION_H */
diff --git a/src/backend/filters/gbftohtml.cpp b/src/backend/filters/gbftohtml.cpp
index fac70ba..8f2fcc5 100644
--- a/src/backend/filters/gbftohtml.cpp
+++ b/src/backend/filters/gbftohtml.cpp
@@ -2,7 +2,7 @@
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
@@ -78,7 +78,7 @@ char Filters::GbfToHtml::processText(sword::SWBuf& buf, const sword::SWKey * key
return 1; //no processing should be done, may happen in a search
}
- CSwordModuleInfo* m = CSwordBackend::instance()->findModuleByName( module->Name() );
+ CSwordModuleInfo* m = CSwordBackend::instance()->findModuleByName( module->getName() );
if (m && !(m->has(CSwordModuleInfo::lemmas) || m->has(CSwordModuleInfo::morphTags) || m->has(CSwordModuleInfo::strongNumbers))) { //only parse if the module has strongs or lemmas
return 1; //WARNING: Return alread here
@@ -254,7 +254,7 @@ bool Filters::GbfToHtml::handleToken(sword::SWBuf &buf, const char *token, sword
}
buf.append(" <span class=\"footnote\" note=\"");
- buf.append(myModule->Name());
+ buf.append(myModule->getName());
buf.append('/');
buf.append(myUserData->key->getShortText());
buf.append('/');
diff --git a/src/backend/filters/gbftohtml.h b/src/backend/filters/gbftohtml.h
index fbe5db2..bfe8501 100644
--- a/src/backend/filters/gbftohtml.h
+++ b/src/backend/filters/gbftohtml.h
@@ -1,8 +1,10 @@
/*********
*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
diff --git a/src/backend/filters/osismorphsegmentation.cpp b/src/backend/filters/osismorphsegmentation.cpp
deleted file mode 100644
index 981ce89..0000000
--- a/src/backend/filters/osismorphsegmentation.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-/*********
-*
-* This file is part of BibleTime's source code, http://www.bibletime.info/.
-*
-* Copyright 1999-2011 by the BibleTime developers.
-* The BibleTime source code is licensed under the GNU General Public License version 2.0.
-*
-**********/
-
-#include "backend/filters/osismorphsegmentation.h"
-
-// Sword includes:
-#include <utilxml.h>
-
-
-const char Filters::OSISMorphSegmentation::oName[] = "Morph segmentation";
-const char Filters::OSISMorphSegmentation::oTip[] = "Toggles morph segmentation On and Off if they exist";
-
-const sword::SWBuf Filters::OSISMorphSegmentation::choices[3] = {"Off", "On", ""};
-
-const sword::StringList Filters::OSISMorphSegmentation::oValues(&choices[0], &choices[2]);
-
-Filters::OSISMorphSegmentation::OSISMorphSegmentation() : sword::SWOptionFilter(oName, oTip, &oValues) {
- setOptionValue("Off");
-}
-
-char Filters::OSISMorphSegmentation::processText(sword::SWBuf &text, const sword::SWKey * /*key*/, const sword::SWModule * /*module*/) {
- sword::SWBuf token;
- bool intoken = false;
- bool hide = false;
-
- sword::SWBuf orig( text );
- const char *from = orig.c_str();
-
- sword::XMLTag tag;
-
- for (text = ""; *from; ++from) {
- if (*from == '<') {
- intoken = true;
- token = "";
- continue;
- }
-
- if (*from == '>') { // process tokens
- intoken = false;
-
- if (!strncmp(token.c_str(), "seg ", 4) || !strncmp(token.c_str(), "/seg", 4)) {
- tag = token;
-
- if (!tag.isEndTag() && tag.getAttribute("type") && !strcmp("morph", tag.getAttribute("type"))) { //<seg type="morph"> start tag
- hide = (option == 0); //only hide if option is Off
- }
-
- if (hide) { //hides start and end tags as long as hide is set
-
- if (tag.isEndTag()) { //</seg>
- hide = false;
- }
-
- continue; //leave out the current token
- }
- } //end of seg tag handling
-
- text.append('<');
- text.append(token);
- text.append('>');
-
- // hide = false; //not right, because there may be child tags in seg. Only /seg may disable the seg hiding.
-
- continue;
- } //end of intoken part
-
- if (intoken) { //copy token
- token.append(*from);
- }
- else { //copy text which is not inside of a tag
- text.append(*from);
- }
- }
-
- return 0;
-}
-
diff --git a/src/backend/filters/osismorphsegmentation.h b/src/backend/filters/osismorphsegmentation.h
deleted file mode 100644
index 8d5a4ab..0000000
--- a/src/backend/filters/osismorphsegmentation.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*********
-*
-* This file is part of BibleTime's source code, http://www.bibletime.info/.
-*
-* Copyright 1999-2011 by the BibleTime developers.
-* The BibleTime source code is licensed under the GNU General Public License version 2.0.
-*
-**********/
-
-#ifndef OSISMORPHSEGMENTATION_H
-#define OSISMORPHSEGMENTATION_H
-
-// Sword includes:
-#include <swbuf.h>
-#include <swoptfilter.h>
-
-
-namespace Filters {
-
-/** This Filter shows/hides headings in a OSIS text.
- * @author Martin Gruner
- */
-class OSISMorphSegmentation : public sword::SWOptionFilter {
- static const char oName[];
- static const char oTip[];
- static const sword::SWBuf choices[3];
- static const sword::StringList oValues;
-
- public:
- OSISMorphSegmentation();
-
- virtual char processText(sword::SWBuf &text, const sword::SWKey *key = 0, const sword::SWModule *module = 0);
-};
-
-}
-
-#endif
diff --git a/src/backend/filters/osistohtml.cpp b/src/backend/filters/osistohtml.cpp
index c04c820..3a8d65f 100644
--- a/src/backend/filters/osistohtml.cpp
+++ b/src/backend/filters/osistohtml.cpp
@@ -2,7 +2,7 @@
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
@@ -10,10 +10,11 @@
#include "backend/filters/osistohtml.h"
#include <QString>
-#include "backend/config/cbtconfig.h"
+#include "backend/config/btconfig.h"
#include "backend/drivers/cswordmoduleinfo.h"
#include "backend/managers/clanguagemgr.h"
#include "backend/managers/referencemanager.h"
+#include "backend/managers/cswordbackend.h"
// Sword includes:
#include <swbuf.h>
@@ -64,24 +65,22 @@ bool Filters::OsisToHtml::handleToken(sword::SWBuf &buf, const char *token, swor
// <div> tag
if (!strcmp(tag.getName(), "div")) {
- //handle intro
-
- if ((!tag.isEmpty()) && (!tag.isEndTag())) { //start tag
+ if (tag.isEndTag()) {
+ buf.append("</div>");
+ } else {
sword::SWBuf type( tag.getAttribute("type") );
-
if (type == "introduction") {
- buf.append("<div class=\"introduction\">");
- }
- else if (type == "chapter") {
- buf.append("<div class=\"chapter\" />"); //don't open a div here, that would lead to a broken XML structure
- }
- else {
+ if (!tag.isEmpty())
+ buf.append("<div class=\"introduction\">");
+ } else if (type == "chapter") {
+ if (!tag.isEmpty())
+ buf.append("<div class=\"chapter\" ></div>"); //don't open a div here, that would lead to a broken XML structure
+ } else if (type == "x-p") {
+ buf.append("<br/>");
+ } else {
buf.append("<div>");
}
}
- else if (tag.isEndTag()) { //end tag
- buf.append("</div>");
- }
}
else if (!strcmp(tag.getName(), "w")) {
if ((!tag.isEmpty()) && (!tag.isEndTag())) { //start tag
@@ -192,7 +191,7 @@ bool Filters::OsisToHtml::handleToken(sword::SWBuf &buf, const char *token, swor
}
else { //no prefix given
val = attrib;
- const bool skipFirst = ((val[0] == 'T') && ((val[1] == 'H') || (val[1] == 'H')));
+ const bool skipFirst = ((val[0] == 'T') && ((val[1] == 'H') || (val[1] == 'G')));
attrValue.append( skipFirst ? val + 1 : val );
}
}
@@ -237,7 +236,7 @@ bool Filters::OsisToHtml::handleToken(sword::SWBuf &buf, const char *token, swor
buf.append("<span class=\"crossreference\">");
sword::SWBuf footnoteNumber = tag.getAttribute("swordFootnote");
sword::SWBuf footnoteBody = myUserData->entryAttributes["Footnote"][footnoteNumber]["body"];
- buf += myModule->RenderText(footnoteBody);
+ buf += myModule->renderText(footnoteBody);
}
/* else if (type == "explanation") {
@@ -256,7 +255,7 @@ bool Filters::OsisToHtml::handleToken(sword::SWBuf &buf, const char *token, swor
else {
// qWarning("found note in %s", myUserData->key->getShortText());
buf.append(" <span class=\"footnote\" note=\"");
- buf.append(myModule->Name());
+ buf.append(myModule->getName());
buf.append('/');
buf.append(myUserData->key->getShortText());
buf.append('/');
@@ -553,7 +552,7 @@ void Filters::OsisToHtml::renderReference(const char *osisRef, sword::SWBuf &buf
if (!mod || (mod->type() != CSwordModuleInfo::Bible
&& mod->type() != CSwordModuleInfo::Commentary)) {
- mod = CBTConfig::get( CBTConfig::standardBible );
+ mod = btConfig().getDefaultSwordModuleByType("standardBible");
}
// Q_ASSERT(mod); There's no necessarily a module or standard Bible
@@ -574,7 +573,7 @@ void Filters::OsisToHtml::renderReference(const char *osisRef, sword::SWBuf &buf
ReferenceManager::ParseOptions options;
options.refBase = QString::fromUtf8(myUserData->key->getText());
options.refDestinationModule = QString(mod->name());
- options.sourceLanguage = QString(myModule->Lang());
+ options.sourceLanguage = QString(myModule->getLanguage());
options.destinationLanguage = QString("en");
buf.append("<a href=\"");
diff --git a/src/backend/filters/osistohtml.h b/src/backend/filters/osistohtml.h
index ca36fe6..1c59ae1 100644
--- a/src/backend/filters/osistohtml.h
+++ b/src/backend/filters/osistohtml.h
@@ -1,8 +1,10 @@
/*********
*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
diff --git a/src/backend/filters/plaintohtml.cpp b/src/backend/filters/plaintohtml.cpp
index 70df723..edb6208 100644
--- a/src/backend/filters/plaintohtml.cpp
+++ b/src/backend/filters/plaintohtml.cpp
@@ -2,7 +2,7 @@
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
diff --git a/src/backend/filters/plaintohtml.h b/src/backend/filters/plaintohtml.h
index b327ecc..e8ae570 100644
--- a/src/backend/filters/plaintohtml.h
+++ b/src/backend/filters/plaintohtml.h
@@ -1,8 +1,10 @@
/*********
*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
diff --git a/src/backend/filters/teitohtml.cpp b/src/backend/filters/teitohtml.cpp
index 4b390d5..6367e22 100644
--- a/src/backend/filters/teitohtml.cpp
+++ b/src/backend/filters/teitohtml.cpp
@@ -2,7 +2,7 @@
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
@@ -10,10 +10,11 @@
#include "backend/filters/teitohtml.h"
#include <QString>
-#include "backend/config/cbtconfig.h"
+#include "backend/config/btconfig.h"
#include "backend/drivers/cswordmoduleinfo.h"
#include "backend/managers/clanguagemgr.h"
#include "backend/managers/referencemanager.h"
+#include "backend/managers/cswordbackend.h"
// Sword includes:
#include <swbuf.h>
@@ -108,7 +109,7 @@ void TeiToHtml::renderReference(const char *osisRef, sword::SWBuf &buf,
//If the osisRef is something like "ModuleID:key comes here" then the
// modulename is given, so we'll use that one
- CSwordModuleInfo* mod = CBTConfig::get( CBTConfig::standardBible );
+ CSwordModuleInfo* mod = btConfig().getDefaultSwordModuleByType( "standardBible" );
// Q_ASSERT(mod); There's no necessarily a module or standard Bible
@@ -128,7 +129,7 @@ void TeiToHtml::renderReference(const char *osisRef, sword::SWBuf &buf,
ReferenceManager::ParseOptions options;
options.refBase = QString::fromUtf8(myUserData->key->getText());
options.refDestinationModule = QString(mod->name());
- options.sourceLanguage = QString(mod->module()->Lang());
+ options.sourceLanguage = QString(mod->module()->getLanguage());
options.destinationLanguage = QString("en");
buf.append("<a href=\"");
diff --git a/src/backend/filters/teitohtml.h b/src/backend/filters/teitohtml.h
index 6fcc2c6..f365616 100644
--- a/src/backend/filters/teitohtml.h
+++ b/src/backend/filters/teitohtml.h
@@ -1,8 +1,10 @@
/*********
*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
diff --git a/src/backend/filters/thmltohtml.cpp b/src/backend/filters/thmltohtml.cpp
index 12f42bf..0bf6e63 100644
--- a/src/backend/filters/thmltohtml.cpp
+++ b/src/backend/filters/thmltohtml.cpp
@@ -2,7 +2,7 @@
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
@@ -13,10 +13,11 @@
#include <QRegExp>
#include <QUrl>
#include <QTextCodec>
-#include "backend/config/cbtconfig.h"
+#include "backend/config/btconfig.h"
#include "backend/drivers/cswordmoduleinfo.h"
#include "backend/managers/clanguagemgr.h"
#include "backend/managers/referencemanager.h"
+#include "backend/managers/cswordbackend.h"
// Sword includes:
#include <swmodule.h>
@@ -46,7 +47,7 @@ char ThmlToHtml::processText(sword::SWBuf &buf, const sword::SWKey *key,
{
sword::ThMLHTML::processText(buf, key, module);
- CSwordModuleInfo* m = CSwordBackend::instance()->findModuleByName( module->Name() );
+ CSwordModuleInfo* m = CSwordBackend::instance()->findModuleByName( module->getName() );
if (m && !(m->has(CSwordModuleInfo::lemmas) || m->has(CSwordModuleInfo::strongNumbers))) { //only parse if the module has strongs or lemmas
return 1;
@@ -230,7 +231,7 @@ bool ThmlToHtml::handleToken(sword::SWBuf &buf, const char *token,
if (!tag.isEndTag() && !tag.isEmpty()) {
//appending is faster than appendFormatted
buf.append(" <span class=\"footnote\" note=\"");
- buf.append(myModule->Name());
+ buf.append(myModule->getName());
buf.append('/');
buf.append(myUserData->key->getShortText());
buf.append('/');
@@ -259,13 +260,13 @@ bool ThmlToHtml::handleToken(sword::SWBuf &buf, const char *token,
}
else { // like "<scripRef>John 3:16</scripRef>"
- CSwordModuleInfo* mod = CBTConfig::get(CBTConfig::standardBible);
+ CSwordModuleInfo* mod = btConfig().getDefaultSwordModuleByType("standardBible");
//Q_ASSERT(mod); tested later
if (mod) {
ReferenceManager::ParseOptions options;
options.refBase = QString::fromUtf8(myUserData->key->getText()); //current module key
options.refDestinationModule = QString(mod->name());
- options.sourceLanguage = QString(myModule->Lang());
+ options.sourceLanguage = QString(myModule->getLanguage());
options.destinationLanguage = QString("en");
//it's ok to split the reference, because to descriptive text is given
@@ -318,13 +319,13 @@ bool ThmlToHtml::handleToken(sword::SWBuf &buf, const char *token,
const char* ref = tag.getAttribute("passage");
Q_ASSERT(ref);
- CSwordModuleInfo* mod = CBTConfig::get(CBTConfig::standardBible);
+ CSwordModuleInfo* mod = btConfig().getDefaultSwordModuleByType("standardBible");
//Q_ASSERT(mod); tested later
ReferenceManager::ParseOptions options;
options.refBase = QString::fromUtf8(myUserData->key->getText());
- options.sourceLanguage = myModule->Lang();
+ options.sourceLanguage = myModule->getLanguage();
options.destinationLanguage = QString("en");
const QString completeRef = ReferenceManager::parseVerseReference(QString::fromUtf8(ref), options);
diff --git a/src/backend/filters/thmltohtml.h b/src/backend/filters/thmltohtml.h
index 99bbabb..ff40cf9 100644
--- a/src/backend/filters/thmltohtml.h
+++ b/src/backend/filters/thmltohtml.h
@@ -1,8 +1,10 @@
/*********
*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
diff --git a/src/backend/filters/thmltoplain.cpp b/src/backend/filters/thmltoplain.cpp
index 42f383e..9f81173 100644
--- a/src/backend/filters/thmltoplain.cpp
+++ b/src/backend/filters/thmltoplain.cpp
@@ -2,7 +2,7 @@
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
diff --git a/src/backend/filters/thmltoplain.h b/src/backend/filters/thmltoplain.h
index 77e2a2b..68a5d95 100644
--- a/src/backend/filters/thmltoplain.h
+++ b/src/backend/filters/thmltoplain.h
@@ -1,8 +1,10 @@
/*********
*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/