473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Direction and floats etc. (English to Arabic)

Is there any way of getting float statements, padding etc. to take
account of the directionality of a page (i.e. the direction:rtl )

For example I have an old simple web page that uses *shudder* tables
to lay out the images and text. If I wanted to create an Arabic
version of this page, I could simply add a rtl direction to the body,
translate the text, and hey-presto the images would automatically leap
to the opposite side to match the direction of the page.

In a standards based page, layed out using divs, and css based floats,
padding etc. whilst the text sticks itself to correct edge of the
object, the floats themselves don't change directionality.

So I then have to painstakingly revisit the css changing every
float:left for a float:right, every padding and margin needs also to
be flipped etc.

Acceptable when you have one or two pages, but a logistical nightmare
where there is a whole site to translate.

Is there a neat way of changing the directionality of floated objects
to match the text? Surely it can't be that uncommon for international
companies to translate their sites to languages with rtl text
direction!

Rufus.
Jun 27 '08 #1
2 4359
On Wed, 11 Jun 2008, Ru****@gmail.com wrote:
Is there any way of getting float statements, padding etc. to take
account of the directionality of a page (i.e. the direction:rtl )
I have a small test at
http://www.unics.uni-hannover.de/nht...ocabulary.html
Make your window smaller to see how the text wraps.
For example I have an old simple web page that uses *shudder* tables
There is nothing wrong with tables.
So I then have to painstakingly revisit the css changing every
float:left for a float:right, every padding and margin needs also to
be flipped etc.
Or keep the tables.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
Jun 27 '08 #2
On 2008-06-11, Ru****@gmail.com <Ru****@gmail.comwrote:
Is there any way of getting float statements, padding etc. to take
account of the directionality of a page (i.e. the direction:rtl )
No.
For example I have an old simple web page that uses *shudder* tables
to lay out the images and text. If I wanted to create an Arabic
version of this page, I could simply add a rtl direction to the body,
translate the text, and hey-presto the images would automatically leap
to the opposite side to match the direction of the page.

In a standards based page, layed out using divs, and css based floats,
padding etc. whilst the text sticks itself to correct edge of the
object, the floats themselves don't change directionality.

So I then have to painstakingly revisit the css changing every
float:left for a float:right, every padding and margin needs also to
be flipped etc.

Acceptable when you have one or two pages, but a logistical nightmare
where there is a whole site to translate.
Indeed. There are certain things that will flip automatically
(text-indent, list item bullet positioning, list item indentation, which
margin gets overridden in overconstrained width calculations) with
direction, but also many things that don't.
Is there a neat way of changing the directionality of floated objects
to match the text?
Your best bet is probably to use classes, and then a different
stylesheet for rtl, which sets float to the other direction (among other
things).
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: thinkfirst | last post by:
Hello CIWAH ... I want to propose full internationalization of three related websites: http://africadatabase.org/ http://people.africadatabase.org/ http://institutions.africadatabase.org/ My...
1
by: Dharmendra Singh | last post by:
Hi I'm using .Net(C#) and working on the form(Screen) which have text boxes for both arabic and english data to store. So i want to change the language at run time from arabic to english and...
6
by: Mutley | last post by:
I am finding an issue with the current DropDownList and ListBox ASP.NET Web Controls. I had a system set up for Arabic and a string that I put into a drop down had a number. The letters were being...
4
by: mohdowais | last post by:
Hi I am fairly new to ASP.NET and I am trying to migrate an existing ASP 3.0 application to asp.Net, and I seem to have hit a roadblock (maybe I just need more coffee). The current application is...
1
by: !!bogus | last post by:
Hi, I am developing an english/arabic webpage. I have some fields that should accept only english characters and other fields that should accept only arabic. I use a custom validator for this....
12
by: Steve Howell | last post by:
The never-ending debate about PEP 3131 got me thinking about natural languages with respect to Python, and I have a bunch of mostly simple observations (some factual, some anecdotal). I present...
2
by: PrateekArora | last post by:
Hi Guys, I need to develop a MultiLingual Application (Arabic & English) in VB.NET, as far as Labels and captions are concerned in User Interface I am done with that using Resource Manager Class &...
21
by: farukcse | last post by:
Dear Sir, Is there any way or property for chaning the text diriction from right to left automatically when i want to take arabic text as a input . now this possible by ALT+SHIFT pressing . but i...
6
by: Ole Nielsby | last post by:
Does C++ have a method of retrieving this? When launching my app, I want to select the appropriate language for ts GUI, based on the user's language setting. The frameworks wxWidgets and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.