Bilingual text support

20 views
Skip to first unread message

Yotam Leibovici

unread,
May 22, 2025, 4:28:20 PMMay 22
to inception-users
Hello,

We’ve encountered a rendering issue with RTL display when combining RTL text (e.g., Arabic) with LTR text (e.g., English). When a continuous segment of LTR text appears within an RTL paragraph, the order of the words in the LTR segment is reversed.

For example, instead of displaying:
...وقد استخدمنا the final result in our report...
it appears as:
...وقد استخدمنا report our in result final the...

This makes the content difficult to understand and problematic for users working with bilingual text. We would appreciate any guidance or a fix for this issue.

Thank you.

Richard Eckart de Castilho

unread,
May 25, 2025, 2:51:08 PMMay 25
to incepti...@googlegroups.com
Hi,
I'm afraid the layout engine used for the brat editor view is unable to handle such cases. It can do LTR and RTL, but it doesn't handle mixed RTL/LTR well.
The best you can do is enable the option "Allow changing the script direction in the annotation editor" in the annotation section of the project settings.
That adds a button to the annotation editor action bar which allows the annotators to switch at will if necessary.

Alternatively, if you do not need to annotate relations, you might consider trying if switching to the Apache Annotator works for you.
That one uses the native browser layout.

-- Richard

Reply all
Reply to author
Forward
0 new messages