Scribusoid

Author Topic: rtl tabs and indentation  (Read 93 times)

Mghaleb

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
rtl tabs and indentation
« on: July 25, 2020, 08: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.

Mghaleb

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
Re: rtl tabs and indentation
« Reply #1 on: July 29, 2020, 06:41:18 am »
I am still waiting! :)

utnik

  • Hero Member
  • *****
  • Posts: 1448
  • Karma: 17
Re: rtl tabs and indentation
« Reply #2 on: July 29, 2020, 10: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

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2373
  • Karma: 34
    • the graphics lab
Re: rtl tabs and indentation
« Reply #3 on: July 29, 2020, 12:29:09 pm »
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.

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2373
  • Karma: 34
    • the graphics lab
Re: rtl tabs and indentation
« Reply #4 on: July 29, 2020, 12:45:36 pm »
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...

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2373
  • Karma: 34
    • the graphics lab
Re: rtl tabs and indentation
« Reply #5 on: July 29, 2020, 04: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...)

Mghaleb

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
Re: rtl tabs and indentation
« Reply #6 on: July 29, 2020, 11: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.
 

 

palmate