Hi!

Attached find a patch which I believe is necessary for correctly displaying numbers in the output of arabic documents using Arabi (ArabTeX takes care of this internally).

Uwe, Mostafa --- could you please test this? (I'm still having trouble with setting up Arabi correctly --- though what I am able to see convinces me that this patch is needed).

This is technically a format change, though I would again argue that we should *not* create a lyx2lyx for it. However, if this is not acceptable, a lyx2lyx patch should be relatively simple; and that only underlines the need for applying this before 1.5.0.

Dov
Index: lyx-devel/src/Font.cpp
===================================================================
--- lyx-devel.orig/src/Font.cpp 2007-07-16 22:06:14.000000000 +0300
+++ lyx-devel/src/Font.cpp      2007-07-16 22:13:55.000000000 +0300
@@ -802,7 +802,8 @@
        // for Hebrew and Farsi (Arabi) do not.
        if (number() == ON && prev.number() != ON
                && (language()->lang() == "hebrew"
-                       || language()->lang() == "farsi")) {
+                       || language()->lang() == "farsi" 
+                       || language()->lang() == "arabic_arabi")) {
                os << "{\\beginL ";
                count += 9;
        }
@@ -936,7 +937,8 @@
        // for Hebrew and Farsi (Arabi) do not.
        if (number() == ON && next.number() != ON
                && (language()->lang() == "hebrew"
-                       || language()->lang() == "farsi")) {
+                       || language()->lang() == "farsi"
+                       || language()->lang() == "arabic_arabi")) {
                os << "\\endL}";
                count += 6;
        }

Reply via email to