diff options
Diffstat (limited to 'utilities/diatheke/diathekemgr.cpp')
-rw-r--r-- | utilities/diatheke/diathekemgr.cpp | 42 |
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 §ion) 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 |