Hybrid text direction?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mohammed Abu Risha
    Senior Member
    • Oct 2017
    • 412
    • 5.3.x

    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?

  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74161

    #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:

    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


    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 demonstration site.
    vBulletin 5 API

    Comment

    Related Topics

    Collapse

    Working...