# Writing text RTL instead of LTR (left to right)

**URL:** <https://discourse.processing.org/t/writing-text-rtl-instead-of-ltr-left-to-right/33533>\
**Category:** Processing\
**Created:** [November 15, 2021, 4:49pm UTC](https://discourse.processing.org/t/writing-text-rtl-instead-of-ltr-left-to-right/33533 "2021-11-15T16:49:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yalaniv](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Post date:** [November 15, 2021, 4:49pm UTC](https://discourse.processing.org/t/writing-text-rtl-instead-of-ltr-left-to-right/33533/1 "2021-11-15T16:49:57Z")

</div>

I want to write text in Hebrew, but the problem is that Hebrew written RTL while English written LTR,

So, when I try to write the word שלום (peace in Hebrew, pronounce Shalom),

It actualy write םולש (like ECAEP instead of PEACE)

Any way to change it?

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [November 15, 2021, 9:18pm UTC](https://discourse.processing.org/t/writing-text-rtl-instead-of-ltr-left-to-right/33533/2 "2021-11-15T21:18:10Z")

</div>

Hello,

You can enter a String RTL and write a function to change the order to LTR before displaying it.

References:

> **[Strings and Drawing Text](https://processing.org/tutorials/text/)**
>
> Learn how use the String class and display text onscreen.

> **[Reference](https://processing.org/reference/String.html)**
>
> A string is a sequence of characters. The class String includes methods for examining individual characters, comparing strings, searching strings, extracting parts of strings, and for convertin…

`:)`
