Skip to content

Scribus 1.7 compatibility #43

Description

@JLuc

scribusproject/scribus#207 : « I noticed some changes in the version 1.7.1, including element names of "ITEXT" and "PAGEOBJECT" changing to "Content" and "PageObject" respectively, and attribute names "CH" and "PTYPE" changing to "Chars" and "PageType" respectively. »

@guidomz joins Copilot's created table of changes :

token_type old new notes
element MASTEROBJECT MasterObject  
element PAGEOBJECT PageObject  
element FRAMEOBJECT FrameObject  
element ITEM Item  
element PatternITEM PatternItem  
element ITEXT Content ITEXT (old element with CH attribute) is represented in 1.7+ as Content subelements inside a StoryText container. CH -> Chars on Content; special tokens use var/other subelements.
element COLOR Color  
element JAVA Java  
element MASTERPAGE MasterPage  
element PAGE Page  
element STYLE ParagraphStyle uppercase STYLE becomes ParagraphStyle in newer formats; readers accept both forms
element CHARSTYLE CharacterStyle CHARSTYLE -> CharacterStyle
element TABS TabStops  
element TabStop tabstop element name normalization/case
element LATEX LATEX  
element Bookmark Bookmark  
element MultiLine MultiLine  
element SubLine SubLine  
element PSDLayer PSDLayer  
element ImageEffect ImageEffect  
element ImageEffectList ImageEffectList  
element PageItemAttribute PageItemAttribute  
element PageItemAttributes PageItemAttributes  
element PageItemLatexFrameDef PageItemLatexFrameDef  
element StoryText StoryText StoryText is the new structured text container; it contains Content, var, tab, breakline, etc.
attribute PTYPE ItemType  
attribute CH Chars old ITEXT attribute CH -> new Content/StoryText attribute Chars
attribute NEXTITEM NextItem  
attribute NextItem NextItem  
attribute XPOS XPosition  
attribute YPOS YPosition  
attribute XP XPosition SCRIBUSELEM header attributes (XP/YP/W/H) -> XPosition/YPosition/Width/Height
attribute YP YPosition  
attribute W Width  
attribute H Height  
attribute PAGEWIDTH PageWidth  
attribute PAGEWITH PageWidth legacy misspelling accepted by readers
attribute PAGEHEIGHT PageHeight  
attribute FIRSTNUM FirstPageNumber  
attribute FIRSTNUM FirstPnum  
attribute AUTOTEXT AutomaticTextFrames  
attribute AUTOSPALTEN AutomaticTextFrameColumnCount  
attribute ABSTSPALTEN AutomaticTextFrameColumnGap  
attribute UNITS UnitIndex  
attribute DFONT FontFace  
attribute DSIZE FontSize  
attribute DCOL TextColumnCount  
attribute DGAP TextColumnGap  
attribute TabFill TabFillCharacter  
attribute TabWidth TabWidth  
attribute TextDistLeft TextDistanceLeft  
attribute TextDistRight TextDistanceRight  
attribute TextDistTop TextDistanceTop  
attribute TextDistBottom TextDistanceBottom  
attribute FirstLineOffset FirstLineOffset  
attribute AUTHOR DocumentInfoAuthor  
attribute COMMENTS DocumentInfoComments  
attribute KEYWORDS DocumentInfoKeywords  
attribute PUBLISHER DocumentInfoPublisher  
attribute DOCDATE DocumentInfoDate  
attribute DOCTYPE DocumentInfoType  
attribute DOCFORMAT DocumentInfoFormat  
attribute DOCIDENT DocumentInfoIdentifier  
attribute DOCSOURCE DocumentInfoSource  
attribute DOCLANGINFO DocumentInfoLanguage  
attribute DOCRELATION DocumentInfoRelation  
attribute DOCCOVER DocumentInfoCoverage  
attribute DOCRIGHTS DocumentInfoRights  
attribute DOCCONTRIB DocumentInfoContributor  
attribute ImageRes ImageLowResType  
attribute ImageLowResType ImageLowResType  
attribute PFILE ImageClip old PFILE/PFILE2/PFILE3 used for image paths; newer format uses ImageClip/ImageLowResType etc.
attribute PFILE2 ImageClip  
attribute PFILE3 ImageClip  
attribute IFONT IFONT  
attribute OnMasterPage OnMasterPage  
attribute PCOLOR FillColor  
attribute PCOLOR2 FillColor2  
attribute PWIDTH PWidth  
attribute OWNPAGE OwnPage  
attribute NUMPO NumPO  
attribute NUMGROUP NumGroup  
attribute NUMDASH NumDash  
attribute WIDTH Width  
attribute HEIGHT Height  
attribute ROT Rotation  
attribute PLINEART PlineArt  
attribute PLINEEND PlineEnd  
attribute PLINEJOIN PlineJoin  
attribute PLINE PlLine  
attribute PLINESTYLE PlineStyle  
attribute PLINEWIDTH PlineWidth  
attribute GROUPS Groups  
attribute InID InID  
attribute gXpos gXpos  
attribute gYpos gYpos  
attribute gWidth gWidth  
attribute gHeight gHeight  
attribute ImageClip ImageClip  
attribute isInline isInline  
attribute isInlineImage isInlineImage  
attribute isEmbedded isEmbedded  
attribute PRINTABLE PrintEnabled  
attribute LOCK Locked  
attribute BOOKMARK Bookmark  
attribute ANNAME ANName  
attribute ANACTION ANAction  
attribute ANACTYP ANActyp  
attribute ANAA ANAA  
attribute Aktion Action legacy German 'Aktion' mapped to 'Action' in newer writer
attribute ItemNr ItemNumber  
attribute Prev Previous  
attribute Next Next  
attribute First First  
attribute Last Last  
attribute Parent Parent  
attribute NAME Name  
attribute NAM Nam  
attribute NUMHGUIDES NumHGuides  
attribute NUMVGUIDES NumVGuides  
attribute VerticalGuides VerticalGuides  
attribute HorizontalGuides HorizontalGuides  
attribute REVERS Reverse  
attribute EMBEDDED Embedded  
attribute TRANS Trans  
attribute TransValue TransValue  
attribute TransValueS TransValueS  
attribute SHADE Shade  
attribute SHADE2 Shade2  
attribute CFONT CFONT  
attribute CCOLOR CharacterColor  
attribute CHARS Chars  
element Content Content Content is the StoryText subelement used to hold character runs or special objects; ITEXT from older files maps to these Content subelements inside StoryText.
element var var 'var' subelements represent variables (pgno/pgco) inside StoryText
attribute pgno pgno  
attribute pgco pgco  
attribute FillColor FillColor  
attribute FillShade FillShade  
attribute LineColor LineColor  
attribute LineShade LineShade  
attribute LineWidth LineWidth  
attribute DashPattern DashPattern  
attribute Dashes Dashes  
attribute ImageXYScale ImageXYScale  
attribute ImageXOffset ImageXOffset  
attribute ImageYOffset ImageYOffset  
attribute AspectRatio AspectRatio  
attribute ScaleType ScaleType  
attribute RATIO Ratio  
attribute fillRule FillRule  
attribute doOverprint DoOverprint  
attribute groupsLastItem GroupsLastItem  
attribute GroupID GroupID  
attribute GroupCounter GroupCounter  
attribute MasterPageName MasterPageName  
attribute MasterPage MasterPage  
attribute Start Start  
attribute END End  
element TableStyle TableStyle  
element CellStyle CellStyle  
attribute DefaultStyle DefaultStyle  
attribute Parent Parent  
element TableBorderLine TableBorderLine  
attribute Width Width  
attribute PenStyle PenStyle  
attribute Color Color  
attribute Shade Shade  
element Arrows Arrows  
attribute NumPoints NumPoints  
attribute Points Points  
element Bookmark Bookmark  
attribute Title Title  
attribute Text Text  
attribute Action Action  
attribute ItemNumber ItemNumber  
attribute Element Element  
attribute Previous Previous  

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions