Switching from Right to Left.
Posted: 06 May 2008 11:30 PM   [ Ignore ]  
Administrator
Avatar
RankRankRank
Total Posts:  122
Joined  2006-01-12

In case you’re wondering, these are some steps I took to figure out the right/left issue:
I tried different HTML approaches, such as:

<div align="right">
<
bdo dir="rtl">[size=4]
یک کمی تکست فارسی اینجا
.[/size]

and english?
</
bdo>

And 
back to english.

</
div>

Ohwaitclose the div tag!
 
[b]What?[/b]

<h1>Something Else</h1

Which rendered:


یک کمی تکست فارسی اینجا.

and english?

And back to english.

Oh, wait, close the div tag!
What?

Something Else

In the end, I went back to the expression engine forums and determined that creating a “farsi” tag would be the best way to go.  So now, to create Persian text on this website, you just need to place the text within the following tags:

[style=farsi] [/style] 

e.g.,

[style=farsi] سلام همگی.  [/style] 

Which will render like this: 

سلام همگی. 

If you don’t use the code, it will just look like this:

سلام همگی.

For my next trick, I have to figure out how to make a custom فارسی button in the forum buttons above, so you can just click it and don’t have to type the whole code when you are composing a message.

[ Edited: 12 September 2008 05:53 AM by Rezwan]
Profile