Author Topic: Convert global positions in XML to page-relative coordinates  (Read 93 times)

eudoxos

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
  • Scribus User
Hi there, I am processing the SLA file and text frames are positioned globally (XPOS, YPOS, gXpos, gYpos) -- which is something depending on all previous page's dimensions, one/two-sided layout and such. Is there an easy way to convert to page-local coords, or better yet, ask all objects to be saved as page-local in the SLA in the first place? Thanks!
« Last Edit: July 09, 2017, 10:59:55 am by eudoxos »

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1200
  • Karma: 18
    • the graphics lab
Re: Convert global positions in XML to page-relative coordinates
« Reply #1 on: July 09, 2017, 01:32:23 pm »
any chance to use (and eventually extend) the scribus scripter instead of processing the .sla file from outside?

imo, tweaking (or generating) .SLA files is a bad idea... except if you first spend some time to create a DTD/schema of the file.

ciao
a.l.e

 

palmate