Scribusoid

Author Topic: First line offset - misaligned baselines  (Read 886 times)

eudoxos

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
  • Scribus User
First line offset - misaligned baselines
« on: March 19, 2018, 05:00:30 pm »
I am using trunk (1.5.4svn). I have several vertically aligned frames, containing alternately thai and romanized thai. I would like the baselines to be vertically aligned. The "First Line Offset" option has a few options, but not all of the mare useful in this situation.

"Line spacing" should have solved the issue (as I can set that one in style settings) but it is higher if the glyphs are higher than line spacing, such as in this example of stacked tone mark & vowel in Thai.



Is this a bug or is it expected? I read somewhere the first line offset undergone substantial changes in 1.5.x, maybe this went unnoticed? IMHO the spacing should be kept regardless of material sticking out.

What is the way to align baselines? Please don't suggest baseline grid (too inflexible, I have several rows of those and need to move them around). Table would be good? How is baseline computed there?

Thanks!

PS Related: how can I change first line offset for several frames at once? Multiple selection disables the option panel.

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1531
  • Karma: 23
    • the graphics lab
Re: First line offset - misaligned baselines
« Reply #1 on: March 19, 2018, 05:34:15 pm »
one single frame with tabulators...

eudoxos

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
  • Scribus User
Re: First line offset - misaligned baselines
« Reply #2 on: March 20, 2018, 11:25:33 am »
one single frame with tabulators...
Good try, but not possible, Thai is aligned to the left and romanization to the right; they are horizontally aligned to image edges above.

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1531
  • Karma: 23
    • the graphics lab
Re: First line offset - misaligned baselines
« Reply #3 on: March 20, 2018, 12:14:06 pm »
use left and right aligned tabulators.

if it does not work, it's a bug...

eudoxos

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
  • Scribus User
Re: First line offset - misaligned baselines
« Reply #4 on: March 23, 2018, 08:40:37 am »
I will look at that, but, honestly, it feels like right ear itching, left foot scratching left cheek. Mixing two scripts means I cannot just assign paragraph styles but will have to assign character styles to individual words.

I think it is a bug anyway that the first like offset cannot be controlled in an easy way; think of TeX, you have \strut, \smash, \phantom and all that (that was 30 years ago!).
« Last Edit: March 23, 2018, 08:43:05 am by eudoxos »

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1531
  • Karma: 23
    • the graphics lab
Re: First line offset - misaligned baselines
« Reply #5 on: March 23, 2018, 09:48:48 am »
eudoxos, your replies are getting funkier and funkier...

sadly, it's a bit hard to reproduce what you are doing, since i can only manage to type "latin" languages.

but:

- using tabulators is very compatible with paragraph styles (and you cannot set tabulators in character styles)
- in this case, using tabulators is a solution, not a hack.
- in scribus, you can very well control the vertical offset of a character

upload a .sla with 4 lines, each line with four "words" in different scripts, separated by a tabulator.
and the links to the fonts one needs to install.
and i can try it out.

maybe it does indeed not work... but until proven of the contrary, this seems to be something trivial to solve with tabulators.

eudoxos

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
  • Scribus User
Re: First line offset - misaligned baselines
« Reply #6 on: March 24, 2018, 08:09:01 am »
Okay, point taken :) Thanks for your suggestions.

Just to clarify paragraph styles: Thai and the romanization use different fonts, hence need different styles; having them interspersed in the text (tabulators) means I cannot assign style to linked frames of Thai at once, but need to select character styles for individual items.

(I also tried with tables, and there is the same "issue", baselines are not always aligned.)

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1531
  • Karma: 23
    • the graphics lab
Re: First line offset - misaligned baselines
« Reply #7 on: March 24, 2018, 10:33:45 am »
i have a plugin that allows the use of the keyboard for applying styles...
sometimes, i forget how painful it is to "manually" apply styles...

you can use it right now, if you're compiling scribus yourself

https://github.com/aoloe/scribus-plugin-applyStyle

and at some time (probably after 1.5.4 will be relased) it will land in scribus itself.