<?xml version="1.0"?>
-<glabels:Label xmlns:glabels="http://snaught.com/glabels/0.4/" rotate="False" width="337,32" height="337,32">
- <glabels:Media_Type>Aa. Luca CD label: Imprime al reves, primero la de abajo</glabels:Media_Type>
- <glabels:Line x="56" y="48" dx="225" dy="-0" line_width="2" line_color="0x4c66d9ff"/>
- <glabels:Text x="170" y="10" font_family="Verdana" font_size="16" font_weight="Bold" font_italic="False" justify="Center" color="0x33408bff">
- <glabels:Line>MP3</glabels:Line>
- <glabels:Line>Volumen {N}</glabels:Line>
- </glabels:Text>
- <!-- BEGIN ARTISTAS -->
- <glabels:Line x="{X}" y="{LINEA_Y}" dx="{LINEA_ANCHO}" dy="0" line_width="1" line_color="0x4d66d9ff"/>
- <glabels:Text x="{X}" y="{TEXTO_Y}" font_family="Verdana" font_size="{PUNTOS}" font_weight="Regular" font_italic="False" justify="Left" color="0x010102ff">
- <glabels:Line>{ARTISTA}</glabels:Line>
- <!-- BEGIN ALBUMS -->
- <glabels:Line> - {ALBUM}</glabels:Line>
- <!-- END ALBUMS -->
- </glabels:Text>
- <!-- END ARTISTAS -->
-</glabels:Label>
+<Glabels-document xmlns="http://snaught.com/glabels/2.0/">
+ <Template name="Luca CD label" size="Other" width="0pt" height="0pt" description="Imprime al reves, primero la de abajo">
+ <Label-cd id="0" radius="168.66pt" hole="21.26pt" waste="0pt">
+ <Markup-margin size="2pt"/>
+ <Layout nx="1" ny="2" x0="43pt" y0="127.56pt" dx="0pt" dy="350pt"/>
+ </Label-cd>
+ </Template>
+ <Objects id="0" rotate="False">
+ <Object-line x="56pt" y="48pt" dx="225pt" dy="-0pt" line_width="2pt" line_color="0x4c66d9ff" a0="1" a1="0" a2="0" a3="1" a4="0" a5="0"/>
+ <Object-text x="114.559pt" y="10pt" w="0pt" h="0pt" justify="Center" auto_shrink="False" a0="1" a1="0" a2="0" a3="1" a4="0" a5="0">
+ <Span font_family="Verdana" font_size="16" font_weight="Bold" font_italic="False" color="0x33408bff" line_spacing="1">MP3<NL/>Volumen {N}</Span>
+ </Object-text><!-- BEGIN ARTISTAS -->
+ <Object-line x="{X}pt" y="{LINEA_Y}pt" dx="{LINEA_ANCHO}pt" dy="0pt" line_width="0.5pt" line_color="0x4d66d9ff" a0="1" a1="0" a2="0" a3="1" a4="0" a5="0"/>
+ <Object-text x="{X}pt" y="{TEXTO_Y}pt" w="0pt" h="0pt" justify="Left" auto_shrink="False" a0="1" a1="0" a2="0" a3="1" a4="0" a5="0">
+ <Span font_family="Verdana" font_size="{PUNTOS}" font_weight="Regular" font_italic="False" color="0x010102ff" line_spacing="1">{ARTISTA}<NL/><!-- BEGIN ALBUMS --> - {ALBUM}<NL/><!-- END ALBUMS --></Span>
+ </Object-text><!-- END ARTISTAS -->
+ </Objects>
+ <Data/>
+</Glabels-document>
+
+<!-- vim: set et sts=2 sw=2 -->
<?xml version="1.0"?>
-<GLabels-templates>
- <Sheet name="Aa. Luca CD label" size="A4" description="Imprime al reves, primero la de abajo">
- <Label style="cd" radius="168.66" hole="21.26" margin="2">
+<Glabels-templates>
+ <Template name="Luca CD label" size="Other" description="Imprime al reves, primero la de abajo">
+ <Label-cd id="0" radius="168.66" hole="21.26">
+ <Markup-margin size="2" />
<Layout nx="1" ny="2" x0="43" y0="127.56" dx="0" dy="350"/>
- </Label>
- </Sheet>
-</GLabels-templates>
+ </Label-cd>
+ </Template>
+</Glabels-templates>
define('X_COL2', 205);
define('Y_BASE', 65);
define('Y_MAX', 310);
-define('PUNTOS', 10);
+define('PUNTOS', 6);
if ($argc < 2) {
$name = basename($argv[0]);
$tpl->setVariable(array(
'X' => $x,
'TEXTO_Y' => $y,
- 'LINEA_Y' => $y + PUNTOS - 1,
- 'LINEA_ANCHO' => strlen($artista) * 6,
+ 'LINEA_Y' => $y + PUNTOS + 2.5,
+ 'LINEA_ANCHO' => strlen($artista) * 3.45 + 60 / strlen($artista),
'ARTISTA' => translate($artista),
));
sort($albums);