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

BODY DIR=LTR

Normally it would be unnecessary to mark your HTML documents
as "left-to-right" because "DIR=LTR" is the default value.
http://ppewww.ph.gla.ac.uk/~flavell/...direction.html
http://www.unics.uni-hannover.de/nht...onal-text.html

Internet Explorer has a menu
View > Encoding > Left-To-Right Document
View > Encoding > Right-to-Left Document
where you can toggle the display between LTR and RTL.
I discovered only now that you can prevent such a switch in IE
when you write <BODY DIR=LTR> or BODY {direction: ltr}.
It does not work with <HTML> though.

--
All free men, wherever they may live, are citizens of Denmark.
And therefore, as a free man, I take pride in the words "Jeg er dansker!"

Mar 7 '06 #1
5 23536
Tue, 7 Mar 2006 15:01:57 +0100 from Andreas Prilop <nhtcapri@rrzn-
user.uni-hannover.de>:
Internet Explorer has a menu
View > Encoding > Left-To-Right Document
View > Encoding > Right-to-Left Document
where you can toggle the display between LTR and RTL.
I discovered only now that you can prevent such a switch in IE
when you write <BODY DIR=LTR> or BODY {direction: ltr}.


Question: Why would an author _want_ to "prevent such a switch"?

It may be failure of imagination on my part, but if the user
perversely insists on viewing LTR text as RTL isn't that his choice?
Is it really worth wasting even eight bytes to prevent this?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Mar 7 '06 #2
On Tue, 7 Mar 2006, Stan Brown wrote:
I discovered only now that you can prevent such a switch in IE
when you write <BODY DIR=LTR> or BODY {direction: ltr}.
Question: Why would an author _want_ to "prevent such a switch"?


Don't know. But there are even authors wanting that the readers
cannot change font sizes ;-)
It may be failure of imagination on my part, but if the user
perversely insists on viewing LTR text as RTL isn't that his choice?
Of course.
Is it really worth wasting even eight bytes to prevent this?


It's even ten bytes when you write
DIR="LTR"
with quotation marks ;-)

--
All free men, wherever they may live, are citizens of Denmark.
And therefore, as a free man, I take pride in the words "Jeg er dansker!"

Mar 7 '06 #3
Stan Brown wrote:
Tue, 7 Mar 2006 15:01:57 +0100 from Andreas Prilop <nhtcapri@rrzn-
user.uni-hannover.de>:
Internet Explorer has a menu
View > Encoding > Left-To-Right Document
View > Encoding > Right-to-Left Document
where you can toggle the display between LTR and RTL.
I discovered only now that you can prevent such a switch in IE
when you write <BODY DIR=LTR> or BODY {direction: ltr}.


Question: Why would an author _want_ to "prevent such a switch"?

It may be failure of imagination on my part, but if the user
perversely insists on viewing LTR text as RTL isn't that his choice?
Is it really worth wasting even eight bytes to prevent this?

If I set my default character encoding to ISO-8859-1, it doesn't mean
that if I go to a Hebrew page I want to read the gibberish that would be
created by treating it as ISO-8859-1. It means that I ordinarily read
pages in Western European languages, so if a page were to come through
without an encoding declared, my browser should try ISO-8859-1. If that
doesn't work, *then* I'll tell my browser to try something else.

Likewise, if a user sets his browser to default to RTL, I don't think it
means that he insists on reading LTR documents as RTL, but that he
normally reads pages in an RTL script, and therefore wants pages to
default to RTL if they don't explicitly state a direction. If he comes
across a page in English that doesn't declare a direction, then he'll
switch to LTR for that page.
Mar 7 '06 #4
On Tue, 7 Mar 2006, I wrote:
I discovered only now that you can prevent such a switch in IE


.... 5.x, but not in IE 6! So it is pretty useless anyway.
Sorry for any confusion!

--
All free men, wherever they may live, are citizens of Denmark.
And therefore, as a free man, I take pride in the words "Jeg er dansker!"

Mar 8 '06 #5
On Wed, 8 Mar 2006, I wrote:
I discovered only now that you can prevent such a switch in IE


... 5.x, but not in IE 6! So it is pretty useless anyway.
Sorry for any confusion!


I'm confused myself!
When I tried it, namely <body dir=ltr>, again, I found that IE 6
too does not change the diplay. Don't know what happened.

Anyway, I think that <BODY dir=ltr> or BODY {direction: ltr}
is a good idea and certainly more useful than <meta> voodoo
or pseudo-comments inside <style></style>.

--
All free men, wherever they may live, are citizens of Denmark.
And therefore, as a free man, I take pride in the words "Jeg er dansker!"

Mar 9 '06 #6

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

Similar topics

5
by: Jake | last post by:
Occasionally I come across: "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB" dir="ltr"> ......and so I have a...
7
by: hawat.thufir | last post by:
Given an xhtml file, how can I "export" the data to plain-text? That is, I want: google www.google.com Whereas, if I copy and paste what the browser shows, I lose the URL and end up with:...
4
by: hawat.thufir | last post by:
Just for posterity: $ pwd /home/thufir/xalon/w3school $ whoami thufir $ ll total 24 -rw-rw-r-- 1 thufir thufir 239 Feb 19 09:16 foo.xml
2
by: Fraser Tweedale | last post by:
PHP version: PHP5 Server version: Apache 1.3 and 2.0 (observed on both version) Platform: observed on Darwin-8.6.0/PPC and FreeBSD-6.1/i686 example: ===== HTTP/1.1 200 OK Date: Fri, 30 Jun...
19
by: ashkaan57 | last post by:
Hi, I have a page in a right-to-left language and I am trying to make some bulleted lists using <ul>, but it puts the bullets to the left. Is there any way I can set the bullets to be on the...
1
by: hime | last post by:
Hello every body I want to know if there is a way to set the direction of txt boxes in the web form to rtl without having to do so for each box by it self and I can't change the direction for the...
3
by: rednarjess | last post by:
Dear All; I have table in vehicle.php file that contains vehicle information(plate number, vehicle model, reg. and exp. dates). I pprovided each record with href(more) if he want to know more about...
2
by: SamithaFernando | last post by:
Hi all, i created a very basic table like this <table id="symbolSelectTable" cellpadding="0" cellspacing="0" border="0" > <tr> <td>help</td> <td>me !! </td> </tr><tr>
1
by: John Fairfield | last post by:
The following example has four elements in two spans: label1:(input1) label2:(input2) When you hit the button to switch the document.dir to 'rtl', it comes out...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.