summaryrefslogtreecommitdiff
path: root/utilities/diatheke/diathekemgr.cpp
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:54:01 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:54:01 -0400
commit71a39f4652cd51df814c930dd268f3c9ad2aee86 (patch)
tree5994350a603908c4e4d660bc9d72c4ec43dd648e /utilities/diatheke/diathekemgr.cpp
parent03134fa5f6f25d92724ce4c183f9bbe12a9e37dc (diff)
Imported Upstream version 1.6.0+dfsg
Diffstat (limited to 'utilities/diatheke/diathekemgr.cpp')
-rw-r--r--utilities/diatheke/diathekemgr.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/utilities/diatheke/diathekemgr.cpp b/utilities/diatheke/diathekemgr.cpp
index 38cb46d..93351c0 100644
--- a/utilities/diatheke/diathekemgr.cpp
+++ b/utilities/diatheke/diathekemgr.cpp
@@ -1,21 +1,23 @@
+/*
+ * Copyright 2009 CrossWire Bible Society (http://www.crosswire.org)
+ * CrossWire Bible Society
+ * P. O. Box 2528
+ * Tempe, AZ 85280-2528
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation version 2.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ */
+
//---------------------------------------------------------------------------
-#include <thmlplain.h>
-#include <gbfplain.h>
-#include <thmlgbf.h>
-#include <gbfthml.h>
-#include <thmlhtml.h>
-#include <gbfhtml.h>
-#include <plainhtml.h>
-#include <thmlhtmlhref.h>
-#include <gbfhtmlhref.h>
-#include <thmlrtf.h>
-#include <gbfrtf.h>
-#include <utilstr.h>
#include <swmodule.h>
-#include <swconfig.h>
-#include "diafiltmgr.h"
-
#ifdef _ICU_
#include <utf8arshaping.h>
#include <utf8bidireorder.h>
@@ -27,8 +29,6 @@
#endif
#include "diathekemgr.h"
-#include "gbfcgi.h"
-#include "thmlcgi.h"
//---------------------------------------------------------------------------
DiathekeMgr::DiathekeMgr (SWConfig * iconfig, SWConfig * isysconfig, bool autoload, char enc, char mark, bool ibidi, bool ishape)
@@ -38,9 +38,9 @@ DiathekeMgr::DiathekeMgr (SWConfig * iconfig, SWConfig * isysconfig, bool autolo
shape = ishape;
#ifdef _ICU_
- arshaping = new UTF8arShaping();
+ arshaping = new UTF8arShaping();
bidireorder = new UTF8BiDiReorder();
- transliterator = new UTF8Transliterator();
+ transliterator = new UTF8Transliterator();
#endif
Load();
@@ -78,10 +78,10 @@ void DiathekeMgr::AddRenderFilters(SWModule *module, ConfigEntMap &section)
rtl = ((entry = section.find("Direction")) != section.end()) ? ((*entry).second == "RtoL") : false;
#ifdef _ICU_
- if (shape && !strnicmp(lang.c_str(), "ar", 2)) {
+ if (shape) {
module->AddRenderFilter(arshaping);
}
- if (bidi && rtl) {
+ if (bidi && rtl) {
module->AddRenderFilter(bidireorder);
}
#endif