Implement continuous tape labels and path-based label shapes.

- Added "roll" as a special paper id
- Added roll_width attribute to draw tape in previews
- Updated Brother QL-500/* label templates
- Preserve print dialog settings between print jobs.
- Added path based labels for arbitrary shaped labels.
- Fleshed out implementation of continuous labels.
This commit is contained in:
Jim Evins
2018-08-11 14:05:26 -04:00
parent b9a1f2e150
commit 467ca9fc62
135 changed files with 41934 additions and 13681 deletions
+41 -15
View File
@@ -7,49 +7,75 @@
*********************************************************************
Labels for the Brother QL-500/550/650 PC Label Printers
These templates are based on the exact media sizes and measurements
in version 1.1 of the 'Brother-QL-500-ptouch.ppd' file.
Currently only have templates for a few of the popular sizes.
REFERENCES:
Brother Industries, Ltd. (October 3, 2011), "Brother QL Series
Command Reference (QL-500/550/560/570/580N/650TD/700/1050/1060N)",
http://download.brother.com/welcome/docp000678/cv_qlseries_eng_raster_600.pdf
*********************************************************************
*********************************************************************
-->
<Template brand="Brother" part="DK-1201" size="Other" width="82pt" height="255pt" _description="Address labels">
<!-- ********************************************************************* -->
<!-- Die-cut Labels -->
<!-- ********************************************************************* -->
<Template brand="Brother" part="DK-1201" _description="Address labels"
size="roll" roll_width="32mm" width="28.96mm" height="89.83mm" >
<Meta category="label"/>
<Meta category="mail"/>
<Label-rectangle id="0" width="82pt" height="255pt" round="4pt" x_waste="0" y_waste="0">
<Markup-rect x1="4.25pt" y1="8.5pt" w="73.5pt" h="238pt" r="0" />
<Label-rectangle id="0" width="28.96mm" height="89.83mm" round="1.5mm" x_waste="0" y_waste="0">
<Markup-margin x_size="1.5mm" y_size="3.0mm" /> <!-- Print Area -->
<Layout nx="1" ny="1" x0="0" y0="0" dx="0" dy="0"/>
</Label-rectangle>
</Template>
<Template brand="Brother" part="DK-1202" size="Other" width="176pt" height="283pt" _description="Shipping labels">
<Template brand="Brother" part="DK-1202" _description="Shipping labels"
size="roll" roll_width="67mm" width="61.98mm" height="99.82mm" >
<Meta category="label"/>
<Meta category="mail"/>
<Label-rectangle id="0" width="176pt" height="283pt" round="4pt" x_waste="0" y_waste="0">
<Markup-rect x1="4.25pt" y1="8.5pt" w="167.5pt" h="266pt" r="0" />
<Label-rectangle id="0" width="61.98mm" height="99.82mm" round="1.5mm" x_waste="0" y_waste="0">
<Markup-margin x_size="1.5mm" y_size="3.0mm" /> <!-- Print Area -->
<Layout nx="1" ny="1" x0="0" y0="0" dx="0" dy="0"/>
</Label-rectangle>
</Template>
<Template brand="Brother" part="DK-1204" size="Other" width="48pt" height="153pt" _description="Multipurpose labels">
<Template brand="Brother" part="DK-1204" _description="Multipurpose labels"
size="roll" roll_width="20mm" width="17.02mm" height="53.85mm" >
<Meta category="label"/>
<Label-rectangle id="0" width="48pt" height="153pt" round="4pt" x_waste="0" y_waste="0">
<Markup-rect x1="4.25pt" y1="8.5pt" w="39.5pt" h="136pt" r="0" />
<Label-rectangle id="0" width="17.02mm" height="53.85mm" round="1.5mm" x_waste="0" y_waste="0">
<Markup-margin x_size="1.5mm" y_size="3.0mm" /> <!-- Print Area -->
<Layout nx="1" ny="1" x0="0" y0="0" dx="0" dy="0"/>
</Label-rectangle>
</Template>
<Template brand="Brother" part="DK-1208" size="Other" width="108pt" height="255pt" _description="Address labels">
<Template brand="Brother" part="DK-1208" _description="Address labels"
size="roll" roll_width="43mm" width="38.01mm" height="89.83mm" >
<Meta category="label"/>
<Meta category="mail"/>
<Label-rectangle id="0" width="108pt" height="255pt" round="4pt" x_waste="0" y_waste="0">
<Markup-rect x1="4.25pt" y1="8.5pt" w="99.5pt" h="238pt" r="0" />
<Label-rectangle id="0" width="38.01mm" height="89.83mm" round="1.5mm" x_waste="0" y_waste="0">
<Markup-margin x_size="1.5mm" y_size="3.0mm" /> <!-- Print Area -->
<Layout nx="1" ny="1" x0="0" y0="0" dx="0" dy="0"/>
</Label-rectangle>
</Template>
<!-- ********************************************************************* -->
<!-- Continuous Label Tapes -->
<!-- ********************************************************************* -->
<Template brand="Brother" part="DK-2205" _description="Continuous label tape"
size="roll" roll_width="67mm" width="61.98mm" >
<Meta category="label"/>
<Meta category="mail"/>
<Label-continuous id="0" width="61.98mm" min_height="25mm" max_height="1000mm" default_height="100mm" >
<Markup-margin x_size="1.5mm" y_size="3.0mm" />
<Layout nx="1" ny="1" x0="0" y0="0" dx="0" dy="0"/>
</Label-continuous>
</Template>
</Glabels-templates>
+44 -17
View File
@@ -3,15 +3,54 @@
<Glabels-templates>
<!-- =================================================================== -->
<!-- Dymo 11352 Return address labels. -->
<!-- 28mm x 89mm Address labels. -->
<!-- =================================================================== -->
<Template brand="Dymo" part="11352" size="Other" width="25mm" height="54mm" _description="Return address labels">
<Template brand="Dymo" part="30252" _description="Address labels"
size="roll" roll_width="31mm" width="28mm" height="89mm" >
<Meta category="label" />
<Meta category="mail" />
<Label-rectangle id="0" width="28mm" height="89mm" round="1mm" x_waste="0mm" y_waste="0mm" >
<Markup-rect x1="1mm" y1="6mm" w="26mm" h="77mm" />
<Layout nx="1" ny="1" x0="0" y0="0" dx="0" dy="0" />
</Label-rectangle>
</Template>
<Template brand="Dymo" part="99010" equiv="30252" />
<!-- =================================================================== -->
<!-- Postage stamp labels. -->
<!-- =================================================================== -->
<Template brand="Dymo" part="30915" _description="Postage stamp labels"
size="roll" roll_width="51mm" width="41mm" height="31mm" >
<Meta category="label" />
<Meta category="mail" />
<Label-path id="0" x_waste="0mm" y_waste="0mm" d_units="mm"
d="M 0 1
l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1
l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1
l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1
l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1 l 1 -1 l 1 1
l 1 1 l -1 1 l 1 1 l -1 1 l 1 1 l -1 1 l 1 1 l -1 1 l 1 1 l -1 1
l 1 1 l -1 1 l 1 1 l -1 1 l 1 1 l -1 1 l 1 1 l -1 1 l 1 1 l -1 1
l 1 1 l -1 1 l 1 1 l -1 1 l 1 1 l -1 1 l 1 1 l -1 1 l 1 1 l -1 1
H 0
Z" >
<Markup-rect x1="1mm" y1="6mm" w="33mm" h="24mm" />
<Layout nx="1" ny="1" x0="0" y0="0" dx="0" dy="0" />
</Label-path>
</Template>
<!-- =================================================================== -->
<!-- 25mm x 54mm Return address labels. -->
<!-- =================================================================== -->
<Template brand="Dymo" part="11352" _description="Return address labels"
size="roll" roll_width="28mm" width="25mm" height="54mm" >
<Meta category="label"/>
<Meta category="mail"/>
<Meta product_url="http://global.dymo.com/deAT/Labels/S0722520.html"/>
<Label-rectangle id="0" width="25mm" height="54mm" round="0pt" x_waste="0pt" y_waste="0pt">
<Label-rectangle id="0" width="25mm" height="54mm" round="1mm" x_waste="0mm" y_waste="0mm">
<Markup-rect x1="1mm" y1="6mm" w="23mm" h="42mm" />
<Markup-margin size="0pt"/>
<Layout nx="1" ny="1" x0="0pt" y0="0pt" dx="25mm" dy="54mm"/>
<Layout nx="1" ny="1" x0="0" y0="0" dx="0" dy="0" />
</Label-rectangle>
</Template>
@@ -150,18 +189,6 @@
</Label-rectangle>
</Template>
<!-- =================================================================== -->
<!-- Dymo 99010 Address labels. -->
<!-- =================================================================== -->
<Template brand="Dymo" part="99010" size="Other" width="28mm" height="89mm" _description="Address labels">
<Meta category="label"/>
<Meta category="mail"/>
<Label-rectangle id="0" width="28mm" height="89mm" round="0pt" x_waste="0pt" y_waste="0pt">
<Markup-margin size="0pt"/>
<Layout nx="1" ny="1" x0="0pt" y0="0pt" dx="28mm" dy="89mm"/>
</Label-rectangle>
</Template>
<!-- =================================================================== -->
<!-- Dymo 99012 Large address labels. -->
<!-- =================================================================== -->
+15 -3
View File
@@ -51,7 +51,6 @@
"(built-in |
gnu-barcode |
zint |
libiec16022 |
libqrencode")
-->
<!ENTITY % BC_STYLE_TYPE "CDATA">
@@ -181,7 +180,7 @@
<!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<!-- Template Section -->
<!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<!ENTITY % label_element "Label-rectangle | Label-round | Label-ellipse | Label-cd">
<!ENTITY % label_element "Label-rectangle | Label-round | Label-ellipse | Label-cd | Label-continuous">
<!ENTITY % markup_element "Markup-margin | Markup-line | Markup-circle | Markup-rect | Markup-ellipse">
<!ELEMENT Template (Meta*, (%label_element;)*)>
@@ -193,6 +192,7 @@
size %STRING_TYPE; #IMPLIED
width %LENGTH_TYPE; #IMPLIED
height %LENGTH_TYPE; #IMPLIED
roll_width %LENGTH_TYPE; #IMPLIED
description %STRING_TYPE; #IMPLIED
_description %STRING_TYPE; #IMPLIED
>
@@ -240,9 +240,21 @@
waste %LENGTH_TYPE; #IMPLIED
>
<!ELEMENT Label-continuous ((%markup_element;)*, Layout+)>
<!ATTLIST Label-continuous
id %STRING_TYPE; #REQUIRED
width %LENGTH_TYPE; #REQUIRED
min_height %LENGTH_TYPE; #REQUIRED
max_height %LENGTH_TYPE; #REQUIRED
default_height %LENGTH_TYPE; #REQUIRED
height %LENGTH_TYPE; #IMPLIED
>
<!ELEMENT Markup-margin EMPTY>
<!ATTLIST Markup-margin
size %LENGTH_TYPE; #REQUIRED
size %LENGTH_TYPE; #IMPLIED
x_size %LENGTH_TYPE; #IMPLIED
y_size %LENGTH_TYPE; #IMPLIED
>
<!ELEMENT Markup-line EMPTY>