[sword-svn] r461 - branches/BCB5
chrislit at www.crosswire.org
chrislit at www.crosswire.org
Sun Sep 9 19:29:14 MST 2007
Author: chrislit
Date: 2007-09-09 19:29:13 -0700 (Sun, 09 Sep 2007)
New Revision: 461
Modified:
branches/BCB5/RxRichEditX.cpp
branches/BCB5/biblecsmgr.cpp
branches/BCB5/paraldisp.cpp
branches/BCB5/swdisprtfchap.cpp
Log:
Farsi updates
Modified: branches/BCB5/RxRichEditX.cpp
===================================================================
--- branches/BCB5/RxRichEditX.cpp 2007-09-10 00:09:29 UTC (rev 460)
+++ branches/BCB5/RxRichEditX.cpp 2007-09-10 02:29:13 UTC (rev 461)
@@ -97,7 +97,7 @@
rtfText += "\\qr ";
}else
rtfText += "\\ql ";
- if (module->Direction() == DIRECTION_RTL && (platformID == WINNT && (!strnicmp(module->Lang(), "he", 2) || !strnicmp(module->Lang(), "ar", 2)))) {
+ if (module->Direction() == DIRECTION_RTL && (platformID == WINNT && (!strnicmp(module->Lang(), "he", 2) || !strnicmp(module->Lang(), "ar", 2) || !strnicmp(module->Lang(), "fa", 2)))) {
rtfText = rtfText + "\\rtlpar ";
}
@@ -305,7 +305,7 @@
if (module->Direction() == DIRECTION_RTL) {
newtext += "\\qr ";
}
- if (module->Direction() == DIRECTION_RTL && (platformID == WINNT && (!strnicmp(module->Lang(), "he", 2) || !strnicmp(module->Lang(), "ar", 2)))) {
+ if (module->Direction() == DIRECTION_RTL && (platformID == WINNT && (!strnicmp(module->Lang(), "he", 2) || !strnicmp(module->Lang(), "ar", 2) || !strnicmp(module->Lang(), "fa", 2)))) {
newtext += "\\rtlpar ";
}
@@ -432,7 +432,7 @@
}
if (tmptext.Length() > 3) { // make sure we have an entry
- if (module->Direction() == DIRECTION_RTL && (SWDispRTFChap::platformID == WIN9X || (module->Lang() && strnicmp(module->Lang(), "he", 2) && strnicmp(module->Lang(), "ar", 2)))) {
+ if (module->Direction() == DIRECTION_RTL && (SWDispRTFChap::platformID == WIN9X || (module->Lang() && strnicmp(module->Lang(), "he", 2) && strnicmp(module->Lang(), "ar", 2) && strnicmp(module->Lang(), "fa", 2)))) {
newtext = newtext + RTFVersePre + tmptext + RTFVersePost;
if (verseNum)
newtext = newtext + RTFVerseMarkPre + IntToStr(VerseKey(module->KeyText()).Verse()) + RTFVerseMarkPost;
Modified: branches/BCB5/biblecsmgr.cpp
===================================================================
--- branches/BCB5/biblecsmgr.cpp 2007-09-10 00:09:29 UTC (rev 460)
+++ branches/BCB5/biblecsmgr.cpp 2007-09-10 02:29:13 UTC (rev 461)
@@ -58,7 +58,7 @@
// if (!strnicmp(lang.c_str(), "ar", 2)) {
// module->AddRenderFilter(arshaping);
// }
- if (platformID == WIN9X || (strnicmp(lang.c_str(), "he", 2) && strnicmp(lang.c_str(), "ar", 2))) {
+ if (platformID == WIN9X || (strnicmp(lang.c_str(), "he", 2) && strnicmp(lang.c_str(), "ar", 2) && strnicmp(lang.c_str(), "fa", 2))) {
module->AddRenderFilter(bidireorder);
}
Modified: branches/BCB5/paraldisp.cpp
===================================================================
--- branches/BCB5/paraldisp.cpp 2007-09-10 00:09:29 UTC (rev 460)
+++ branches/BCB5/paraldisp.cpp 2007-09-10 02:29:13 UTC (rev 461)
@@ -184,7 +184,7 @@
if (mods[z]->Direction() == DIRECTION_RTL) {
newtext = newtext + "\\qr ";
}
- if (mods[z]->Direction() == DIRECTION_RTL && (platformID == VER_PLATFORM_WIN32_NT && (!strnicmp(mods[0]->Lang(), "he", 2) || !strnicmp(mods[0]->Lang(), "ar", 2)))) {
+ if (mods[z]->Direction() == DIRECTION_RTL && (platformID == VER_PLATFORM_WIN32_NT && (!strnicmp(mods[0]->Lang(), "he", 2) || !strnicmp(mods[0]->Lang(), "ar", 2) || !strnicmp(mods[0]->Lang(), "fa", 2)))) {
newtext = newtext + "\\rtlpar ";
}
@@ -210,7 +210,7 @@
}
else break;
} while (true);
- if (mods[z]->Direction() == DIRECTION_RTL && (platformID == VER_PLATFORM_WIN32_WINDOWS || (mods[z]->Lang() && strnicmp(mods[z]->Lang(), "he", 2) && strnicmp(mods[z]->Lang(), "ar", 2)))) {
+ if (mods[z]->Direction() == DIRECTION_RTL && (platformID == VER_PLATFORM_WIN32_WINDOWS || (mods[z]->Lang() && strnicmp(mods[z]->Lang(), "he", 2) && strnicmp(mods[z]->Lang(), "ar", 2) && strnicmp(mods[z]->Lang(), "fa", 2)))) {
newtext = newtext + RTFVersePre;
if ((key->Verse() == verse) && (dispAttribs.markCurrentVerse)) {
newtext = newtext + "\\cf2 "; // \cf2 = second color in color table
@@ -299,4 +299,4 @@
RegisterComponents("SWORD", classes, 0);
}
}
-//---------------------------------------------------------------------------
\ No newline at end of file
+//---------------------------------------------------------------------------
Modified: branches/BCB5/swdisprtfchap.cpp
===================================================================
--- branches/BCB5/swdisprtfchap.cpp 2007-09-10 00:09:29 UTC (rev 460)
+++ branches/BCB5/swdisprtfchap.cpp 2007-09-10 02:29:13 UTC (rev 461)
@@ -86,7 +86,7 @@
if (Module.Direction() == DIRECTION_RTL) {
newtext = newtext + "\\qr ";
}
- if (Module.Direction() == DIRECTION_RTL && (platformID == VER_PLATFORM_WIN32_NT && (!strnicmp(Module.Lang(), "he", 2) || !strnicmp(Module.Lang(), "ar", 2)))) {
+ if (Module.Direction() == DIRECTION_RTL && (platformID == VER_PLATFORM_WIN32_NT && (!strnicmp(Module.Lang(), "he", 2) || !strnicmp(Module.Lang(), "ar", 2) || !strnicmp(Module.Lang(), "fa", 2)))) {
newtext = newtext + "\\rtlpar ";
}
@@ -123,7 +123,7 @@
}
else break;
} while (true);
- if (Module.Direction() == DIRECTION_RTL && (platformID == VER_PLATFORM_WIN32_WINDOWS || (Module.Lang() && strnicmp(Module.Lang(), "he", 2) && strnicmp(Module.Lang(), "ar", 2)))) {
+ if (Module.Direction() == DIRECTION_RTL && (platformID == VER_PLATFORM_WIN32_WINDOWS || (Module.Lang() && strnicmp(Module.Lang(), "he", 2) && strnicmp(Module.Lang(), "ar", 2) && strnicmp(Module.Lang(), "fa", 2)))) {
newtext = newtext + RTFVersePre;
if ((key->Verse() == verse) && (dispAttribs.markCurrentVerse)) {
newtext = newtext + "\\cf2 "; // \cf2 = second color in color table
More information about the sword-cvs
mailing list