Ok, I am going to create website in Urdu(rtl) & English(ltr) language that contain paragraphs like this:

<p style="direction:rtl">کیا حال ہے buddy? سب خیریت ہے؟</p>

You can see that sentence in not showing correctly. I want to change the direction of English words in sentense. like this:

<p style="direction:rtl">کیا حال ہے <bdo dir="ltr">buddy?</bdo> سب خیریت ہے؟</p>

You can see more clear differance at JSfiddle. How it is possible? Any idea?

  • I may be able to assist. Is you final goal, in the above example, to wrap the word 'buddy?' into the <bdo dir="ltr"> tag?
    – Christine Cooper
    Dec 14 '14 at 18:18
  • @ChristineCooper Thanks for help offer. Yes my goal is exactly that but only with push-of-button. More better if there is some short key.
    – John Doe
    Dec 15 '14 at 15:52
  • @ChristineCooper any idea?
    – John Doe
    Dec 17 '14 at 9:10
  • Yes my apologies, I have been ill for the past days and only recovering today. I will look through my code and post an answer for you within a day or two. I can confirm that I can definitely help you because we worked on a similar thing recently.
    – Christine Cooper
    Dec 17 '14 at 15:29
  • @ChristineCooper Thanks. What languages you are using in you website?
    – John Doe
    Dec 18 '14 at 9:16

Maybe this can help you, it adds the buttons and from the screenshot it looks like it is possible to achieve what you want: https://wordpress.org/plugins/wp-rtl/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.