Index: src/yelp-db-pager.c
===================================================================
RCS file: /cvs/gnome/yelp/src/yelp-db-pager.c,v
retrieving revision 1.58
diff -u -r1.58 yelp-db-pager.c
--- src/yelp-db-pager.c	4 Jan 2006 12:53:52 -0000	1.58
+++ src/yelp-db-pager.c	7 Jan 2006 15:06:49 -0000
@@ -298,6 +298,7 @@
     gchar **params;
     gint params_i = 0;
     gint params_max = 20;
+    gchar *language = NULL;
 
     d (g_print ("db_pager_process\n"));
 
@@ -314,7 +315,7 @@
 
     yelp_settings_params (&params, &params_i, &params_max);
 
-    if ((params_i + 10) >= params_max - 1) {
+    if ((params_i + 12) >= params_max - 1) {
 	params_max += 20;
 	params = g_renew (gchar *, params, params_max);
     }
@@ -326,7 +327,18 @@
     params[params_i++] = g_strdup_printf ("%i", priv->max_depth);
     params[params_i++] = "yelp.javascript";
     params[params_i++] = g_strdup_printf ("\"%s\"", DATADIR "/yelp/yelp.js");
+    params[params_i++] = "yelp.text.direction";
 
+    /* Find the RTL direction */
+    language = (gchar *) yelp_doc_info_get_language (doc_info);
+    if (language && !g_str_equal (language, "C") && 
+	(gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)) {
+	params[params_i++] = g_strdup ("\"rtl\"");
+    } else {
+	params[params_i++] = g_strdup ("\"ltr\"");
+    }
+    if (priv->direction) {
+    }
     params[params_i] = NULL;
 
     return params;
Index: stylesheets/yelp-common.xsl
===================================================================
RCS file: /cvs/gnome/yelp/stylesheets/yelp-common.xsl,v
retrieving revision 1.2
diff -u -r1.2 yelp-common.xsl
--- stylesheets/yelp-common.xsl	19 May 2005 22:41:16 -0000	1.2
+++ stylesheets/yelp-common.xsl	7 Jan 2006 15:06:49 -0000
@@ -22,12 +22,14 @@
 <xsl:param name="yelp.color.admon.bg.dark1"/>
 <xsl:param name="yelp.color.admon.bg.dark2"/>
 <xsl:param name="yelp.color.admon.bg.dark3"/>
+<xsl:param name="yelp.text.direction"/>
 
 <!-- == yelp.common.css == -->
 <xsl:template name="yelp.common.css">
   <xsl:text>
     html {
       height: 100%;
+    direction: </xsl:text><xsl:value-of select="$yelp.text.direction"/><xsl:text>;
     }
     body {
       -moz-box-sizing: border-box;
