Today Oubah showed me some html elements for bidirectional text such as:
<bdo> : biderectional text override - <bdo>: The Bidirectional Text Override element - HTML: HyperText Markup Language | MDN
Here is an Arabic translator on how certain services get it wrong: Alex Clay 👁️✨ حـــبيبتك on Twitter: "Reminder that writing bi-directional text on a computer is an awful experience in 2019. To this day, I write the English and Arabic on separate lines even if it's the same sentence... to avoid bi-di bugs. I'm a professional Arabic localizer 🤷♀️… https://t.co/Lvzq00f9vb"