rtl tabs and indentation

Previous topic - Next topic


In tabs and indentation the default direction is left and no other option shown, is there any solution to make it right, look at the image in attachment?

[attachment deleted by admin]



hi mghaleb

just put a tabstop where you need it (by clicking on the ruler). as long as this tabstop is selected (marked in red), you may configure it (set its orientation, its position, andselect a fill character, if needed).



while you wait, please have a short read


in short: you need to define the tabs as if your text was LTR and it will behave correctly in RTL (but all rulers are wrong).

the question is: how should it work for RTL languages?
should we invert the content of the "widget"?
what should happen with the existing tabs, when one switches from LTR to RTL (and vice versa)?

if you or somebody you know can help with that maybe scribus can improve...
if you know somebody who could write a patch, that would be wonderful!

p.s.: what you are marking in your screenshot is just the setting if the tab itself will be a left or a right one.


btw, if somebody wants to help with the code:

here is a good place for starting: https://gitlab.com/scribus/scribus/-/blob/master/scribus/ui/hruler.cpp#L446

the first step would be to draw the ruler inverted when the user is in text edit mode...


i've checked in libreoffice. when the text is RTL:

- the marks are kept at the same coordinate, but from the right side
- the type of the tab does not change (a left tab is still a left tab but behaves like a right tab)
- the tab is drawn mirrored

and i could get scribus to correctly show the ruler on top of the page when the text is RTL...
(the feature was already there for mirrored text... but there is a bug to be fixed: the tabs are shown outside of the text frame... i'm working on it...)


OK, thank you for helping.
(i've checked in libreoffice. when the text is RTL). Libreoffice have many rtl issues.
(if somebody wants to help with the code). I hope you find one or more.
If you put tabs you could turn it to right, but you should do it for every paragraph. It is not the correct way.
I am hoping that in someday scribus would be more like Adobe Indesgin, the rtl on it is optimum.