This patch prevents Farsi numbers from being used. I think it prevents
it always, but I'm not sure. At any rate, the root of the problem is
here.

Index: diathekemgr.cpp
===================================================================
--- diathekemgr.cpp     (revision 2306)
+++ diathekemgr.cpp     (working copy)
@@ -78,9 +78,11 @@
        rtl = ((entry = section.find("Direction")) != section.end()) ?
((*entry).second == "RtoL") : false;

 #ifdef _ICU_
-        module->AddRenderFilter(arshaping);
+       if (shape){
+               module->AddRenderFilter(arshaping);
+       }
        if (bidi && rtl) {
-               module->AddRenderFilter(bidireorder);
+               module->AddRenderFilter(bidireorder);
        }
 #endif
        SWMgr::AddRenderFilters(module, section);


If you aren't building with ICU, you'll never see this bug.

Matthew

_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to