Announcement

Collapse
No announcement yet.

Hybrid text direction?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hybrid text direction?

    Hello everybody

    When typing an Arabic sentence containing English words, the whole order is confused after the post is made, even if I set the alignment to right. I checked the options in the control panel and found that it gives two options: Either left to right or right to left. Is there anyway to have the witing system in a given post override the default one set in the options? Is there any way to allow for a hybrid text direction whereby any sentence in a post in deemed as Arabic (RLT) if it starts with an Arabic word, and vice-versa with English?


  • #2
    You can create a BBCode that implements HTML's BDO tag in content. It is designed to override the text direction. You can learn more about it here:

    https://www.w3schools.com/tags/tag_bdo.asp

    Custom BBCodes -> Add New BBCode:

    Title: BDO
    BBCode Title: BDO
    Replacement: <bdo dir="ltr">{param}</bdo>
    Example: [bdo]English Text Here[/bdo]
    Description: Bidirectional Override BBCode.
    Use {option}: No
    Set the rest as you see fit.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment

    Working...
    X