Pandocréon Carta Genius
Quick Guide
Here is a little quick-guide that shows you the accepted elements in Carta Genius' XML files.
mandatory
optional
<?xml version="1.0"?>
<pandocreon:carta-genius>
<info author title subject keywords copyright version lang note/>
<pdf version master-password user-password/>
<unit base/>
<back side reverse/>
<fonts default>
<font id outline metrics/>
<path dir/>
</fonts>
<images>
<mask id file/>
<image id file width height mask mask-id/>
<path dir/>
</images>
<templates>
<template id template>
...
</template>
</templates>
<includes>
<include file/>
<path dir/>
</includes>
<variables>
<var name precision>...</var>
</variables>
<deck>
<paper type landscape width height margin margin-width margin-height/>
<hidden-ditch odd even/>
<cardsize type landscape width height space space-width space-height/>
<card count template back>
<circle x y radius line-width line-color fill-color dash1 dash2 opacity blendmode/>
<box x y width height radius line-width line-color fill-color rotation dash1 dash2
opacity blendmode/>
<line x1 y1 x2 y2 width color dash1 dash2 opacity blendmode/>
<bezier x1 y1 x2 y2 cp-x1 cp-y1 cp-x2 cp-y2 width color dash1 dash2 opacity blendmode/>
<image id file mask mask-id entire x y width height rotation/>
<polygon x y line-width line-color fill-color rotation dash1 dash2 opacity blendmode>
<line x y/>
<bezier x y cp-x1 cp-y1 cp-x2 cp-y2/>
</polygon>
<grid x y cell-width cell-height nbr-width nbr-height line-width line-color fill-color rotation dash1 dash2 opacity blendmode/>
<hexagon x y width line-width line-color fill-color rotation dash1 dash2 opacity blendmode/>
<text font size color align x y width height radius adapt space rotation
dash1 dash2 opacity blendmode fill-color line-color line-width border
underline overline strikeout char-space h-scale ladder-color ladder-bottom ladder-rise>
...<br/>
<p/>
<value precision>...</value>
</text>
<var name precision>...</var>
<text-define id>
<block font size color space underline overline strikeout char-space h-scale>
...<br/>
<p/>
</block>
</text-define>
<text-area id x y width height radius rotation dash1 dash2 opacity blendmode
fill-color line-color line-width border/>
<if test>
...
</if>
<while test>
...
</while>
<log precision>...</log>
</card>
</deck>
</pandocreon:carta-genius>
Types
Standards
- scalar (12.5) [expression parser]
- value (210.3mm) [expression parser]
- element (21x29.7cm) [expression parser]
- color (#803000) [expression parser]
- string ("blabla") [expression parser]
- booléen ($TRUE, $FALSE) [expressions parser]
- boolean (yes, no) [parameters]
blendmodes
PDF version
Base unit
- mm (millimeter) [default]
- cm (centimeter)
- in (inch)
- pt (point)
Flip side
Text alignment
Integrated fonts
Variables
Contextuals
Paper Formats
$4A0, $2A0, $A0, $A1, $A2, $A3, $A4, $A5, $A6, $A7, $A8, $A9, $A10, $RA0, $RA1, $RA2, $RA3, $RA4, $SRA0, $SRA1, $SRA2, $SRA3, $SRA4, $B0, $B1, $B2, $B3, $B4, $B5, $B6, $B7, $B8, $B9, $B10, $C0, $C1, $C2, $C3, $C4, $C5, $C6, $C7, $C8, $C9, $C10, $D0, $D1, $D2, $D3, $D4, $D5, $D6, $D7, $D8, $D9, $D10, $LETTER, $LEGAL, $LEDGER, $SEMI_LETTER, $EXECUTIVE, $TABLOID, $DL, $COM10, $MONARCH, $E0, $E1, $E2, $E3, $E4, $E5, $E6, $E7, $E8, $E9, $E10, $E_A3, $E_A3_2, $E_A4, $E_A4_2, $E_A5, $E_A5_2, $E_A6, $E_A7, $E_B4, $E_B4_2, $E_B5, $E_B6, $E_B7, $E_B8, $ID1, $ID2, $ID3, $BUSINESS_CARD
Colors
$BLACK, $WHITE, $GREY, $RED, $GREEN, $BLUE, $YELLOW, $TURQUOISE, $PURPLE, $DARK_RED, $DARK_GREEN, $DARK_BLUE, $DARK_YELLOW, $DARK_TURQUOISE, $DARK_PURPLE
Others
Functions
Cast
Comparison
- eq($var1, $var2)
- lt($var1, $var2)
- gt($var1, $var2)
Boolean operations
- not($bool)
- and($bool1, $bool2)
- or($bool1, $bool2)
Math
Elements
Strings
Tests
- min($var1, $var2)
- max($var1, $var2)
Date and time
Hazard
Copyright (c) 2004-2005, Amaury Bouchard
This documentation is placed under the terms of the GNU Free Documentation License