Scribus Forums

Scribus => General Discussion => Topic started by: Mghaleb on July 25, 2020, 07:06:52 AM

Title: rtl tabs and indentation
Post by: Mghaleb on July 25, 2020, 07:06:52 AM
Hello,
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?
thanks.

[attachment deleted by admin]
Title: Re: rtl tabs and indentation
Post by: Mghaleb on July 29, 2020, 05:41:18 AM
I am still waiting! :)
Title: Re: rtl tabs and indentation
Post by: utnik on July 29, 2020, 09:27:47 AM
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).

utnik
Title: Re: rtl tabs and indentation
Post by: a.l.e on July 29, 2020, 11:29:09 AM
while you wait, please have a short read

http://forums.scribus.net/index.php/topic,3681.msg17351.html#msg17351

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.
Title: Re: rtl tabs and indentation
Post by: a.l.e on July 29, 2020, 11:45:36 AM
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...
Title: Re: rtl tabs and indentation
Post by: a.l.e on July 29, 2020, 03:14:45 PM
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...)
Title: Re: rtl tabs and indentation
Post by: Mghaleb on July 29, 2020, 10:23:12 PM
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.