Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.7.2
Description
Reproducer attached. Build it with 6.7.2 and run to see the issue.
Basically, mixing up RTL and LTR languages seems to break text layout. Arabic, English, Chinese and German are put into 4 lines in that order for testing purpose. Totally 3 cases are tested (from top to bottom):
label1: Just plain text
label2: label1 + LayoutMirroring
label3: label2 + horizontalAlignment
However, none of them shows text in correct layout:
Problems:
1. Index of Chinese and German lines are prefixed. But those of Arabic and English are suffixed.
2. Exclamation mark for German line is at the wrong end. It comes even before the index. But it is not a problem of language but (I think) a problem at the last line. If one removes the German line, then Chinese line also has its exclamation mark at the wrong end.
What customer would like to see is a well formatted text like what HTML can offer:
Attachments
Issue Links
- relates to
-
QTBUG-41757 RTL not working as expected
- Closed
-
QTBUG-61529 Wrong richtext rendering with RTL text
- Reported
-
QTBUG-71992 Right to left text is left justified in QML Text
- Open
-
QTBUG-95016 Text & TextEdit do not respect BiDi specification for multi-paragraph texts
- Open
-
QTBUG-110487 Unicode BIDI text (Hebrew + Phone Number) seems wrong
- Open
-
QTBUG-32071 RTL languages not handled correctly if starts with LTR word
- Closed
-
QTBUG-104669 Concatenation of LTR + RTL texts is broken
- Closed