small question about Arabic script (or right-aligning text) (6 posts)

  1. immanence
    Posted 9 years ago #

    Hi all!

    I have a small problem with WordPress. When I post a message to my weblog in Arabic, even if I right-align it with Ecto, it appears left-aligned. In the code itself, it says "<p style="text-align:right;">" But it still appears left aligned :)

    Therefore, lists, etc., get reversed (Arabic written language runs right to left). Makes it difficult to read in Arabic.

    I know there's an Arabic language version of WordPress, but English is my first language and I only post occaisonal messages in Arabic.

    When I post to my old site (which was Movable Type) it appears fine, right-aligned, so this seems to be an issue with WordPress.

    Any guidance would be much appreciated! Thanks in advance!

  2. moshu
    Posted 9 years ago #

    Do you have the same problem if you don't use ecto but typing directly in WP?

  3. immanence
    Posted 9 years ago #

    Even worse, because the default text alignment for the message box is left. I have to add code myself in this instance (e.g., <p style="text-align:right;">) ....... Even then, numbering and colons/semicolons get nixed :)

  4. moshu
    Posted 9 years ago #

  5. immanence
    Posted 9 years ago #

    Thanks for the links! http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.2 in particular is where it's at, but it's too hard for my small head :(

    The actual arabic comes out okay on a cut and paste, and I can have it right-aligned. Punctuation needs RTL (right to left) document or table or text input. I'm no use with code, so I gotta give up, unless someone can tell me what code I can copy and paste to make a slice of text run right to left, and where exactly I should paste it!


  6. ایه لیک To Have داشتن
    Posted 9 years ago #


    I do not know if I am late or not but a simple solution:

    1- Open header.php in your theme
    2- change <http .. , to <http dir="rtl" ..
    3- make small changes in theme if needed

Topic Closed

This topic has been closed to new replies.

About this Topic