Author Topic: wanna text frame to support vertical layout  (Read 979 times)

tenuun

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
  • Scribus User
wanna text frame to support vertical layout
« on: March 29, 2018, 05:31:21 am »
hello guys, I wanna text frame to support vertical layout(starting from left column), I mean the texts will be rendered from the top to the botom of the column.
I followed the insight of the code and tried modifying something, no effect.   
anyone has the idea?

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 23
    • the graphics lab
Re: wanna text frame to support vertical layout
« Reply #1 on: March 29, 2018, 11:44:04 am »
hi tenuun,

it would probably useful to know what you already tried.
do you have a branch on github (or any other git platform)?

personally, i don't know much about this specific topic, but i will try to get somebody to help you.
but, first, i think we need more information from your side...

ciao
a.l.e

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 23
    • the graphics lab
Re: wanna text frame to support vertical layout
« Reply #2 on: March 29, 2018, 04:17:40 pm »
hi tenuun,

i talked to jean (one of the lead developers) about your request and, sadly, he does not have time to get into this today.

here is what he could say right now:

"""
adding vertical layout is lot of work.

not just a matter of rendering top to bottom.

necessary work goes down to the fonts level.
"""

so, you should be prepared to spend some time on the project!
but if you manage to do it, you will make many people very happy!

i also mailed the person who took charge of the right to left rendering in scribus and asked if he has some time for you.

as said, personally, i cannot help you much with the details, since i have no idea about the text engine, but if you come to the irc channel on freenode, you can ask (simple) questions and possibly get answers.

ciao
a.l.e

tenuun

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
  • Scribus User
Re: wanna text frame to support vertical layout
« Reply #3 on: March 29, 2018, 05:04:58 pm »
Hi a.l.e,

many thanks for your help.

i'm not yet open any branch on git since I just cut into this, I still need more time to look into the code and do some research on how to lay out texts vertically , and i hope i can do something on the vertical layout.

Tenuun.

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 23
    • the graphics lab
Re: wanna text frame to support vertical layout
« Reply #4 on: March 29, 2018, 05:15:25 pm »
you might also have a look at the closed in the scribus-HOST repository:

https://github.com/HOST-Oman/scribus/pulls?q=is%3Apr+is%3Aclosed

it's where the right to left support has been developped...

Fahad

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
  • Scribus User
Re: wanna text frame to support vertical layout
« Reply #5 on: March 29, 2018, 05:57:00 pm »
Hi tenuun,

there is a lot of work to get vertical layout supported. to start, please read this design file to understand the whole process. the file here:
https://github.com/HOST-Oman/scribus/blob/host/scribus/text/design.txt

Right now, scribus use freetype, icu & harfbuzz for low-level text layer, The good thing is that they all support vertical layout. The difficult part is in pageitem_textframe:: layout().

Please read the mention file and then if you want help I would be happy to answer your questions.

Regards,
Fahad Al-Saidi


tenuun

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
  • Scribus User
Re: wanna text frame to support vertical layout
« Reply #6 on: March 29, 2018, 06:09:11 pm »
Hi a.l.e, Fahad,

very useful info.   thanks lot.

Regards,
Tenuun.

 

palmate