Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set the rtl (right-to-left) text tags for Arabic/Farsi, etc? 1

Status
Not open for further replies.

danirob

Programmer
Aug 26, 2006
2
0
0
AU
Hi

Am having problems making the text below read as right-to-left. Can anyone help me reverse and right-align the following Farsi text so that it reads correctly: right-to-left)?

Thanks a lot

Danirob

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

<?xml version="1.0" encoding="utf-8"?>

<props>
<txt1 >English maze ????? ???? ???????? ????? ???? ??????? ???.</txt1>
<txt2> ????? ???? ?? ???????? ?????? ??????? ?? ??? ????? ???? ????????? ?? ????? ???? ???? ??? ???????? ??? ???? ??? ???? ?????? ???? ??????? ?? ???? ??? ? ?????? ??????? ??????? ?? ???.
??? ??? ?? ????? ?? ????? ???? ? ???? ?? ?? ????? ?? ?????? ??? ?? ???? ?????? ??? ???? ?? ??????? ?? ?? ???? ?? ??????? ????? ???? ? ?????? ?????? ???? ????.</txt2>
<txt4>???? ??????? ???? ??? 21??</txt4>
<txt5>???? ??? ????? ?? ?????? English Maze ???? ??? ?? ????</txt5>
<txt6> ??????? ????? ???? ???? ?? ???? ???????? ?????? ?????</txt6>
<txt7>?? ?????? ???? ???? ???????? ????????? ?????? ? ????????? ??? ?? ?????? ?? ???? ????? ?? ??????? ??????? ????? ? ?????? ?? ????? ?????? ?????? ?????? ???? ??? ????</txt7>
<txt8>?????? ???? ???</txt8>
</props>
 
To view the doc in a xml/css aware browser, you can try this for instance.
[tt]
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="yourcssfile.css"?>
<props>
<!-- etc etc the same ==>
</props>
[/tt]
and make out a simple external css file for illustration in the same directory (yourcssfile.css).
[tt]
*
{
display:block;
direction: rtl;
text-align: right;
border:1px solid lightblue;
background-color:ivory;
}
[/tt]
It would show up sensible in ie/moz other than their archaic versions.
 
Thanks a lot.

I'll give it a go.

With best regards

Danirob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top