[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A problem with the hebrew about.wml page



Jens Seidel <jensseidel@users.sf.net> writes:
> On Fri, Aug 15, 2008 at 04:38:49PM +0300, Oz Nahum wrote:
>> solving it one day. In the meanwhile if someone who understand wml
>> better than me looks into it'll be great.
>
> Yep, the real fix for Hebrew is still missing. I'm lost ...

I looked and tested some changes.

With changing this

diff -u -r1.16 header.wml
--- debian/header.wml	23 May 2006 18:09:30 -0000	1.16
+++ debian/header.wml	16 Aug 2008 11:15:34 -0000
@@ -6,11 +6,11 @@
 />
 # not using [AR: dir="RTL":] because apparently the whole page was flipped
 # and this wasn't desirable for them
-<html lang="$(CUR_ISO_LANG)"[FA: dir="RTL":]>
+<html lang="$(CUR_ISO_LANG)"[FA: dir="RTL":][HE: dir="RTL":]>
 {:
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=$(CHARSET)" />

And more important, removing 'text-align: left' from html and body tags in
main debian.css (this affects all languages!)

Index: debian.css
===================================================================
RCS file: /cvs/webwml/webwml/english/debian.css,v
retrieving revision 1.68
diff -u -r1.68 debian.css
--- debian.css	15 Jul 2007 22:39:09 -0000	1.68
+++ debian.css	16 Aug 2008 11:17:19 -0000
@@ -6,7 +6,6 @@
 	background-color: #FFFFFF;
 	margin: 0 4px 0 4px;
 	padding: 0;
-	text-align: left;
 }
 
 img { border: 0; }

So I don't really understand this later change, but it changes text
rendering from like this:

first bullet in hebrew *
second bullet in hebrew *
last bullet in hebrew *

to what you would expect from right to left languages like this:

                                                     first bullet in hebrew *
                                                    second bullet in hebrew *
                                                      last bullet in hebrew *

So what will actually happen if such change is applied to main
debian.css?

According to CSS 2.1 standard, default value for this text-align is "a
nameless value that acts as 'left' if 'direction' is 'ltr', 'right' if
'direction' is 'rtl'". So if I understand correctly, that should be
unnecessary to have this text-align setting in debian.css if we assume
CSS compatibility in this respect. So is there a problem with some
browsers, or does anyone remember any background for this?

-- 
Tommi Vainikainen


Reply to: