Search

Feedback

Entering Hebrew text confuses the database

Sara K.

New Editor
Posts: 80

Sara K. @ 2020-06-13 15:29:17 UTC

The database gets confused by Hebrew text entries, because it switches between left to right and right to left text entry direction. That leads to confusing entries in fields like the one attached where the hebrew text and the latin/arabic text/numbers get mixed up. I thought I mention this here. Also if you press the left arrow button in a Hebrew text the cursor goes right and for the right arrow button the cursor goes left...kind of confusing.

______
I have no relation to the artist Sara K. Just a coincidence. Due to private circumstances not able to participate anymore.


Attachments:

Sara K.

New Editor
Posts: 80

Sara K. @ 2020-06-13 15:30:50 UTC

...another thing that is weird is that if I upload images as attachments as an uploader I am no able to watch them. I only can see the preview icon but I cannot get access to my own uploaded file to check it again.

______
I have no relation to the artist Sara K. Just a coincidence. Due to private circumstances not able to participate anymore.

Mathieu

Manager
Posts: 7342

Mathieu @ 2020-06-16 08:24:54 UTC

The database gets confused by Hebrew text entries, because it switches between left to right and right to left text entry direction. That leads to confusing entries in fields like the one attached where the hebrew text and the latin/arabic text/numbers get mixed up. I thought I mention this here. Also if you press the left arrow button in a Hebrew text the cursor goes right and for the right arrow button the cursor goes left...kind of confusing.

Hi Sara, thanks for you feedback!

The problem is the browser, no the site: it tries to guess how it should handle text direction, and in this case it is wrong. Usually browsers seem to get it right, but in an input field adding something in brackets gives this strange effect. In normal HTML mode it works fine:

לשיר ידעת (123)

When editing it, it shows the closing brace LTR instead of RTL.

First you have the Hebrew, which is RTL, then you have a opening brace. RTL is kept. Then you have digits which are LTR. However these digits are in an RTL context, so they are shown on the right. Afterwards you have the closing brace. This closing brace seems to trigger a full LTR context and is shown on the right, unlike the digits.

However, if more text follows, the closing brace is again in an LTR context and always shown correctly, also in input fields:

לשיר ידעת (123) ל

As for the cursor, this is also the default behavior of your browser. The right arrow always advances one character. In case of RTL it means going to the left.

In this case, a solution would be to avoid adding the internal ID to the database entity, but there are other instances where we do this, e.g. differentiating between artists with the same name. A solution there would be to use latin text instead of digits for differentiating (hebrew text in brackets also gives strange results)

Mathieu

Manager
Posts: 7342

Mathieu @ 2020-06-16 08:26:33 UTC

...another thing that is weird is that if I upload images as attachments as an uploader I am no able to watch them. I only can see the preview icon but I cannot get access to my own uploaded file to check it again.

Before or after submitting the post?

Sara K.

New Editor
Posts: 80

Sara K. @ 2020-06-16 10:57:36 UTC

...another thing that is weird is that if I upload images as attachments as an uploader I am no able to watch them. I only can see the preview icon but I cannot get access to my own uploaded file to check it again.

Before or after submitting the post?

After. I actually cannot see the file before submitting is. This is what I see, a spinning circle and "Loading" that lasts forever. I tried using several PCs and browsers, it's always the same result.

______
I have no relation to the artist Sara K. Just a coincidence. Due to private circumstances not able to participate anymore.


Attachments:

Mathieu

Manager
Posts: 7342

Mathieu @ 2020-06-16 18:38:25 UTC

Can you view the attachments now? I fixed a bug.

Sara K.

New Editor
Posts: 80

Sara K. @ 2020-06-26 14:47:28 UTC

Can you view the attachments now? I fixed a bug.

Yes, thank you. It seems to work now. Grin

______
I have no relation to the artist Sara K. Just a coincidence. Due to private circumstances not able to participate anymore.