File format used in Scribus 1.6.4 -- geometry question

Previous topic - Next topic

hjh

Hi

On the wiki I found a short description in French for the file format of Scribus 1.4.
https://wiki.scribus.net/canvas/Introduction_au_Format_de_fichier_SLA_pour_Scribus_1.4

An this page gives a list of the markers:
https://wiki.scribus.net/canvas/Introduction_au_Format_de_fichier_SLA_pour_Scribus_1.4


Has the file format changed for version 1.6.4? Is there an easy accessible log which shows the changes?

However I am primarily interested in generating SLA code for a picture gallery. This should be pretty straightforward given the nature of the flat SLA format structure.

And for that the documentation for 1.4.0 provides good clues and for the rest I have to look at the generated XML code I guess.

I arrange pictures with labels (one picture with one or two labels as a group).
I plan to take the code given below as boiler plate code and swap text and image frame names, the label, the path to the picture and the coordinates.

I realize that all the measurements are given in points.

However I wonder about some measurement parameters. For analysis purposes I put the group at x=0 and y=0 in Scribus. Note: The base point is set to top left.

But interestingly the SLA XML code shows
PAGEOBJECT XPOS="100.00062992126" YPOS="20.0012598425197"for the group

So It seems that all the objects seem to have a standard offset of x=100 and y=20.

Is this an offset I can generally apply to all page objects?

I guess that is to allow for a possible bleed non zero value.

And what is gXpos="0" gYpos="0" about?

Do I need to pay some attention about ItemIDs?

I would be glad if somebody could shed some light into this issue.

Regards
Hannes


Image frame and text frame grouped. Three page objects
1. a group object
2. a text frame object
3. an image frame object

<PAGEOBJECT XPOS="100" YPOS="20" OwnPage="0" ItemID="202880960"
PTYPE="12" WIDTH="200" HEIGHT="170" FRTYPE="0" CLIPEDIT="0"
ANNAME="Group1" groupWidth="200" groupHeight="170" groupClips="1"
path="M0 0 L200 0 L200 170 L0 170 L0 0 Z" copath="M0 0 L200 0 L200 170 L0 170 L0 0 Z" gXpos="100" gYpos="20" gWidth="0" gHeight="0" LAYER="0">
           
<PAGEOBJECT XPOS="100" YPOS="170" OwnPage="0" ItemID="206373264"
PTYPE="4" WIDTH="200" HEIGHT="20" FRTYPE="0" CLIPEDIT="0"
PWIDTH="1" PLINEART="1" ANNAME="myLabel" LOCALSCX="1" LOCALSCY="1" LOCALX="0"
LOCALY="0" LOCALROT="0" PICART="1" SCALETYPE="1" RATIO="1" COLUMNS="1" COLGAP="0" AUTOTEXT="0" EXTRA="0" TEXTRA="0" BEXTRA="0" REXTRA="0" VAlign="0" FLOP="1" PLTSHOW="0" BASEOF="0" textPathType="0" textPathFlipped="0" path="M0 0 L200 0 L200 20 L0 20 L0 0 Z" copath="M0 0 L200 0 L200 20 L0 20 L0 0 Z" gXpos="0" gYpos="150" gWidth="200" gHeight="170" LAYER="0" NEXTITEM="-1" BACKITEM="-1">
                <StoryText>
                    <DefaultStyle/>
                    <ITEXT CH="Kob antelopes"/>
                    <trail ALIGN="1"/>
                </StoryText>
            </PAGEOBJECT>

            <PAGEOBJECT XPOS="100" YPOS="20" OwnPage="0" ItemID="203380304"
PTYPE="2" WIDTH="200" HEIGHT="150" FRTYPE="0" CLIPEDIT="0"
PWIDTH="1" PLINEART="1"
ANNAME="myImage" LOCALSCX="0.0385802469135802" LOCALSCY="0.0385802469135802"
LOCALX="0" LOCALY="0" LOCALROT="0" PICART="1" SCALETYPE="0" RATIO="1" Pagenumber="0" PFILE="images/Kob_antelopes_DSCN6538.JPG" IRENDER="0" EMBEDDED="0" path="M0 0 L200 0 L200 150 L0 150 L0 0 Z" copath="M0 0 L200 0 L200 150 L0 150 L0 0 Z" gXpos="0" gYpos="0" gWidth="200" gHeight="170" LAYER="0" NEXTITEM="-1" BACKITEM="-1"/>

        </PAGEOBJECT>


hjh

P.S. The correct link to the list of markers

https://wiki.scribus.net/canvas/File_Format_Specification_for_Scribus_1.4

P.S. 2
Regarding the units: it is possible to set an attribute UNITS in the DOCUMENT tag. But this only affects the units which are used for displaying the sizes in the Scribus GUI. In the file format the values are still in points.

UNITS = "0" is the default and means points; UNITS="1" means millimeters.