bidi module mini-how to

BiDi module is a special drupal module that sets line direction automatically according to its type so you can mix RTL and LTR texts freely without worrying about the direction of the text.

Get it from here, install it by coping it to "modules" directory under your drupal's root directory.

Go to administer -> modules and enable it, then administer -> input formats, configure your desired formate and enable BiDi filter under Filters section. Save and it should work now.

Test:

العربيّة تكتب من اليمين إلى اليسار

But English is written from left to right

and in cases like "سطر يحتوي نصّا عربيا أكثر من النص اللاتيني فإن الإتجاه يصير من اليمين لليسار"

  • عنصر
  • عنصر ثان
    • عنصر فرعي
      • عنصر فرع فرعي
      • subitem
    • عنصر فرعي ثان
  1. عنصر 1
    1. عنصر تحت 1
  2. عنصر 2
    1. ابن عنصر 2
    2. another subitem
      1. حفيد عنصر 2

Typo: this blog was titled "many how to", looks like I was sleeping when I typed it :P

التعليقات

علِّق

محتويات هذا الحقل سرية ولن تظهر للآخرين.
  • You can use Mediawiki syntax. It is possible that not all formatting options are supported at the moment.
    Links to other pages: [[Page Title]] or [[path/to/page|Title]].
    External links: http://example.com or [http://example.com some link title].
    Interwiki links: [[site:Page Title]].
    You can use the following interwiki links: path, gdo, wp, ع

  • You may write mixed Arabic and English freely, line direction will be computed automaticaly

معلومات أكثر عن خيارات التنسيق

كابتشا
هذا السؤال للتأكد من أنك زائر من لحم ودم ولمنع رسائل السخام.
3 + 4 =
حل مسألة الرساضيّات البسيطة هذه وأدخل الناتج. مثلا. أدخل 4 في حالة 1+3.