473,395 Members | 1,706 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,395 software developers and data experts.

Creating a Right-To-Left Page

I'm confused about what settigns I have to make to create a plage that will
be primarily a right-to-left language page. This would mean that text would
be aligned right by default, table cells would be too. And controls like a
Checkbox would, by default, have their text to the RIGHT of the box as
opposed to the left. Is there one setting that will accomplish all of this? I
can't imagine I have to mess with each object that way.

I tried the <bodytag's "lang" but that doesn't seem to really change
anything.

Alex

Sep 14 '06 #1
1 2144
Hello Alex,

As for right-to-left/RTL text, they're mostly used in some middle-east
languages and dealing with these text in globalization development is
normally calld "BIDI" text processing.

Based on my experience, for web application, BIDI text displaying is mainly
supported through some HTML/XHTML standards setting, such as the "dir"
attributes. e.g.

<span dir="rtl" ................</span>

You can find most information about BIDI text processing in the following
I18N portal site:

#Bidirectional text
http://www.w3.org/International/resource-index#bidi
In Microsoft Visual Studio .NET, you can create ASP.NET applications by
using either Microsoft Visual Basic .NET or Microsoft Visual C# .NET. The
guidelines that you should follow are basically the same as those you have
just seen for mirroring Web content. When you design Arabic Web Forms
pages, the best way to make text flow from right to left is to use the DIR
attribute. As with Web content, this attribute is usually placed in the
<HTMLtag or the <BODYtag. Controls and HTML elements on the page then
inherit the specified direction.

You can set the DIR attribute at a DOCUMENT object level. All the controls
on the form will inherit the same settings. However, the DIR attribute can
be used individually with other tags such as <TABLEand in Web Forms
controls, as in the following example, which allows items to be displayed
from right to left. e.g.

<TABLE dir="rtl" ...>

<asp:TextBox dir="rtl" ...>

In addition, here are some other resource about developing BIDI text awared
application(desktop and web):
**some slides from some MS localization engineers:

http://download.microsoft.com/downlo...4-96b2-4559295
43124/Developing%20Arabic%20Applications%20in%20VS%20200 5.ppt
**public reference on developing middleeast specific software:

http://www.microsoft.com/middleeast/msdn
http://www.microsoft.com/middleeast/...icsupp.aspx#22
http://www.microsoft.com/globaldev/g...ror.mspx#EWIAC

** A good globaldev book:
"Developing International Software / Dr. International-- 2nd ed" (there is
a chapter there about bidi in asp.net)

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


Sep 15 '06 #2

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

Similar topics

3
by: dave | last post by:
I am using vs.net 2003 on windows xp. After clicking on a project within my solution and selecting create new folder vs.net responds back with , the "directory already exists". If i look at the...
1
by: Rob Venable | last post by:
Hi, Does anyone know the syntax for creating a dynamic radio button from a Javascript function. I think it's something like: var btn = new radio( some arguments ); but I don't know the...
5
by: Add and Paste | last post by:
Dear Access developers, I have a lot of cut and pasting to do from Excel to an Access form. But instead of just pasting, I want to "add then paste" the value. Does anybody have a way to do this?...
5
by: abhishekjha10 | last post by:
Hello everybody, I am trying to create a mini OS in C. Can you help me with some helpful links and sites. Thankyou. Abhishek Jha.
5
by: VB Programmer | last post by:
I want to write to a simple text file. If it doesn't exist I want to create it first. Here is my code (portion): Imports System.IO ' at the top of the class : : Dim strFileName As String =...
7
by: Robin | last post by:
In a current .Net solution (using VB.Net) has a 3 tier architecture of Web interface, Data Access Layer and Database. How do I implement business logic and class layers into this solution?
4
by: Cal | last post by:
The Help examples for creating a Registry subkey uses double backslashes between subkeys. The examples for creating a folder use a single backslash. First: Am I right in that double...
1
by: chathu03j | last post by:
how do u create a right click menu in vb6? pls gv me the code lines
0
by: Andrzej | last post by:
Greetings. Recently I created new site: http://www.praktisk.org ] with some tools for creating small and portable programs in C++. Right now there are such things like: scripting in C++,...
3
by: tedmoseby | last post by:
I am creating a website, using flash instances which will be dynamicly based on xml information (pulled from, the users, sql db; thru php). I am running into a problem, mapping this out on...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.