-
Etienne Nadji authored
> Undocumented XML attributes in text frame 'XXXXXXXX' : > ['PWIDTH', 'PLINEART', 'LOCALSCX', 'LOCALSCY', 'LOCALX', 'LOCALY', 'LOCALROT', > 'PICART', 'SCALETYPE', 'RATIO', 'COLGAP', 'AUTOTEXT', 'EXTRA', 'TEXTRA', > 'BEXTRA', 'REXTRA', 'VAlign', 'FLOP', 'PLTSHOW', 'BASEOF', 'textPathType', > 'textPathFlipped', 'copath', 'gXpos', 'gYpos', 'gWidth', 'gHeight'] Among these attributes of this bug report, these are not implemented in this commit : > 'COLGAP', 'AUTOTEXT', 'EXTRA', 'TEXTRA', 'BEXTRA', 'REXTRA', > 'PLTSHOW', 'BASEOF', 'textPathType', 'textPathFlipped', > 'VAlign', 'FLOP', 'copath', OUTLINE OF OBJECTS ================== Generalised attributes from LineObject to PageObject - PWIDTH : outline thickness - PLINEART: outline streak type - PCOLOR: outline background - PCOLOR2: outline streak color Outline attributes from multiple LineObject instance attributes to a single dictionary. => ``PageObject.outline`` IMAGE AND RENDER OBJECTS ======================== - EMBEDDED : use embedded ICC profiles => ``PageObject.use_embedded_icc`` IMAGE LOCAL FRAME (image contained in a image object) ===================================================== Aspect ratio, scaling --------------------- => ``PageObject.image_scale`` Documented for images frames, but defined anyway Documented as optionnal for PAGEOBJECT -------------------------------------- - RATIO : aspect (proportionnal) ratio for image frames - SCALETYPE : scaling type for image frames Not documented as optionnal --------------------------- - LOCALSCX : horizontal scaling - LOCALSCY : vertical scaling Position of the image local frame --------------------------------- Documented for images frames, but defined anyway Not documented as optionnal *************************** => ``PageObject.image_box``, ``PageObject.image_rotated_box`` - LOCALX : X position relative to image frame (0 = left corner) - LOCALY : Y position relative to image frame (0 = top) - LOCALROT : Rotation Visibility of image local frame ------------------------------- Documented for images frames, but defined anyway Not documented as optionnal *************************** => ``PageObject.image_box.visible`` - PICART : if image should be shown. Default: 1 UNDOCUMENT G BOX ================ => ``PageObject.gbox`` Probably the box of an object relative to the user UI ??? - gXpos - gYpos - gWidth - gHeight modifié : pyscribus/dimensions.py modifié : pyscribus/pageobjects.py
a35231bc