calligra:fill-style-name and friends

Jos van den Oever jos at vandenoever.info
Wed May 16 09:42:38 BST 2012


Hi all,

Calligra uses quite some attributes that are not part of the ODF specification 
but unique to Calligra. These are prefixed with the 'calligra:' prefix which 
points to the http://www.calligra.org/2005/ namespace.

Currently the build server flags these attributes as errors. Here is list of 
the attributes encountered by the build server:

  calligra:fill-style-name
  calligra:nodeTypes
  calligra:vertical-distributed
  calligra:specialborder-top
  calligra:specialborder-bottom
  calligra:specialborder-right
  calligra:specialborder-left
  calligra:number-length

Could the people that know about these attributes (or others that read in the 
code about them), mail some documentation on these attributes as well as where 
they may occur on ODF documents? A motivation about why they are needed is 
welcome too.

To start of I'm listing sample values here that are observed in files created 
by Calligra.

calligra:fill-style-name:
-------------------------
    <style:table-cell-properties calligra:fill-style-name="gr1" fo:background-
color="#ffff00" style:vertical-align="bottom"/>
  which points to
    <style:style style:name="gr1" style:family="graphic">
      <style:graphic-properties draw:fill="solid" draw:fill-color="#000000" 
draw:transparency="88%"/>
    </style:style>
(after converting me03_different_color_pattern.xls)

Do style:background-color and style:background-image not suffice? A background 
image can be nearly anything.  

calligra:nodeTypes:
-------------------
    <draw:path draw:style-name="gr3" xml:id="shape-6" draw:id="shape-6" 
draw:name="Polyline" draw:layer="" svg:width="153.47893439941pt" 
svg:height="167.22812142334pt" svg:x="85.03980000000pt" 
svg:y="187.10437857666pt" svg:viewBox="0 0 153 167" svg:d="M0 0L6.4601 
37.1456L72.4601 46.8956L83.7101 123.396L148.21 133.146L153.479 167.228L153.479 
167.228" calligra:nodeTypes="ccccccc"/>
(after loading and saving viewbox-loading.odp)

calligra:vertical-distributed
-----------------------------
    <style:table-cell-properties calligra:vertical-distributed="distributed" 
fo:wrap-option="wrap" style:text-align-source="fix" style:vertical-
align="top"/>
(after converting me00_text_alignment_hc_vj_formatting.xls)

calligra:specialborder-top/left/right/bottom
--------------------------
      <style:page-layout-properties calligra:specialborder-bottom="" 
calligra:specialborder-left="" calligra:specialborder-right="" 
calligra:specialborder-top="" ... />
(after converting mw03_page_border_first_page.doc)

      <style:page-layout-properties calligra:specialborder-bottom="dot-dash" 
calligra:specialborder-left="dot-dash" calligra:specialborder-right="dot-dash" 
calligra:specialborder-top="dot-dash" ... />
(after converting mw03_page_borders.doc)

apparently expands fo:border
 http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#border
which allow none,hidden,dotted,dashed,solid,double,groove,ridge,inset,outset
as per http://www.w3.org/TR/CSS2/box.html#value-def-border-style
The newer CSS3 still has only these values.
 http://www.w3.org/TR/css3-background/#ltborder-stylegt
There was a css wording draft which did allow for dot-dash:
 http://www.w3.org/TR/2002/WD-css3-border-20021107/#border-style
but it's not currently a recommendation.
Nevertheless it might be better to use fo:border="1px dot-dash red" than 
calligra:specialborder-bottom="dot-dash".

calligra:number-length
----------------------
     <number:month calligra:number-length="extra-short" 
number:textual="true"/>
(after converting me07_date_formatting.xlsx)


Cheers,
Jos



More information about the calligra-devel mailing list