initial commit

This commit is contained in:
jtbx 2024-02-18 23:39:25 +01:00
commit 2e1f5534ee
4 changed files with 202 additions and 0 deletions

16
Readme.md Normal file
View file

@ -0,0 +1,16 @@
# CCCHH Label Printer Templates
This repo contains some templates for the Brother QL-500 label printer.
## Usage
The templates use [typst](https://github.com/typst/typst) (a LaTeX alternative) as typesetting engine.
There are two versions:
- label-wide: 60x35 mm for use with DK-22205 endless tape (DK-22205)
* height could be adjusted, if needed, but keep in mind to change the paper size when printing
- label-item: 38x90mm for use with DK-11208 pre-cut address labels
General notes:
- Labels with CCCHH logo in the footer are meant for items owned by CCCHH.
- The QL-500 does not have an automatic cutter, so it's recommended to only print one page at a time.

123
assets/ccchh.svg Normal file
View file

@ -0,0 +1,123 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width='270.000mm' height='78.923mm' viewBox="0 0 270.000 78.923">
<title>Exported SVG</title>
<style><![CDATA[
polygon {
shape-rendering:crispEdges;
stroke-width:0.270000;
}
.s1 {
stroke:#000000;
stroke-width:0.245682;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.s2 {
stroke:#19b219;
stroke-width:0.245682;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.s3 {
stroke:#7f4c00;
stroke-width:0.245682;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.s4 {
stroke:#00cc00;
stroke-width:0.245682;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.s5 {
stroke:#000000;
stroke-width:0.163788;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.s6 {
stroke:#ff19ff;
stroke-width:0.163788;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.s7 {
stroke:#ff0000;
stroke-width:0.245682;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.s8 {
stroke:#ffff00;
stroke-width:0.245682;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.s9 {
stroke:#001919;
stroke-width:0.163788;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.sa {
stroke:#006666;
stroke-width:0.163788;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.sb {
stroke:#00ffff;
stroke-width:0.491365;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.sc {
stroke:#ff0000;
stroke-width:1.310307;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.sd {
stroke:#191919;
stroke-width:0.163788;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
.se {
stroke:#000000;
stroke-width:0.163788;
stroke-linecap:round;
stroke-linejoin:round;
stroke-dasharray:2.457,2.457;
fill:none;
}
.sf {
stroke:#000000;
stroke-width:0.491365;
stroke-linecap:round;
stroke-linejoin:round;
fill:none;
}
]]></style>
<path d='M62.272 26.962 A30.000,30.000 0 0,0 28.603,10.152 A30.000,30.000 0 0,0 5.000,39.462 A30.000,30.000 0 0,0 28.603,68.772 A30.000,30.000 0 0,0 62.272,51.962 L56.651,51.962 A25.000,25.000 0 0,1 28.530,63.610 A25.000,25.000 0 0,1 10.000,39.462 A25.000,25.000 0 0,1 28.530,15.313 A25.000,25.000 0 0,1 56.651,26.962 L62.272,26.962 ' class='s0' />
<path d='M53.540 31.962 A20.000,20.000 0 0,0 31.180,19.830 A20.000,20.000 0 0,0 15.000,39.462 A20.000,20.000 0 0,0 31.180,59.093 A20.000,20.000 0 0,0 53.540,46.962 L65.953,46.962 A30.000,30.000 0 0,0 92.347,69.344 A30.000,30.000 0 0,0 122.272,51.962 L116.651,51.962 A25.000,25.000 0 0,1 89.747,63.903 A25.000,25.000 0 0,1 70.125,41.962 L49.790,41.962 A15.000,15.000 0 0,1 33.746,54.409 A15.000,15.000 0 0,1 20.000,39.462 A15.000,15.000 0 0,1 33.746,24.514 A15.000,15.000 0 0,1 49.790,36.962 L70.125,36.962 A25.000,25.000 0 0,1 89.747,15.020 A25.000,25.000 0 0,1 116.651,26.962 L122.272,26.962 A30.000,30.000 0 0,0 92.347,9.579 A30.000,30.000 0 0,0 65.953,31.962 L53.540,31.962 ' class='s0' />
<path d='M113.540 31.962 A20.000,20.000 0 0,0 91.180,19.830 A20.000,20.000 0 0,0 75.000,39.462 A20.000,20.000 0 0,0 91.180,59.093 A20.000,20.000 0 0,0 113.540,46.962 L125.953,46.962 A30.000,30.000 0 0,0 152.347,69.344 A30.000,30.000 0 0,0 182.272,51.962 L176.651,51.962 A25.000,25.000 0 0,1 149.747,63.903 A25.000,25.000 0 0,1 130.125,41.962 L109.790,41.962 A15.000,15.000 0 0,1 93.746,54.409 A15.000,15.000 0 0,1 80.000,39.462 A15.000,15.000 0 0,1 93.746,24.514 A15.000,15.000 0 0,1 109.790,36.962 L130.125,36.962 A25.000,25.000 0 0,1 149.747,15.020 A25.000,25.000 0 0,1 176.651,26.962 L182.272,26.962 A30.000,30.000 0 0,0 152.347,9.579 A30.000,30.000 0 0,0 125.953,31.962 L113.540,31.962 ' class='s0' />
<path d='M173.540 31.962 A20.000,20.000 0 0,0 151.180,19.830 A20.000,20.000 0 0,0 135.000,39.462 A20.000,20.000 0 0,0 151.180,59.093 A20.000,20.000 0 0,0 173.540,46.962 L190.000,46.962 L190.000,69.462 L205.000,69.462 L205.000,46.962 L220.000,46.962 L220.000,69.462 L235.000,69.462 L235.000,46.962 L250.000,46.962 L250.000,69.462 L265.000,69.462 L265.000,9.462 L250.000,9.462 L250.000,31.962 L235.000,31.962 L235.000,9.462 L220.000,9.462 L220.000,31.962 L205.000,31.962 L205.000,9.462 L190.000,9.462 L190.000,31.962 L173.540,31.962 M169.790 36.962 L195.000,36.962 L195.000,14.462 L200.000,14.462 L200.000,36.962 L225.000,36.962 L225.000,14.462 L230.000,14.462 L230.000,36.962 L255.000,36.962 L255.000,14.462 L260.000,14.462 L260.000,64.462 L255.000,64.462 L255.000,41.962 L230.000,41.962 L230.000,64.462 L225.000,64.462 L225.000,41.962 L200.000,41.962 L200.000,64.462 L195.000,64.462 L195.000,41.962 L169.790,41.962 A15.000,15.000 0 0,1 153.746,54.409 A15.000,15.000 0 0,1 140.000,39.462 A15.000,15.000 0 0,1 153.746,24.514 A15.000,15.000 0 0,1 169.790,36.962 ' class='s0' />
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

37
label-item.typ Normal file
View file

@ -0,0 +1,37 @@
#set text(
//font: "pt sans",
font: "ubuntu",
fallback: false,
size: 11pt,
lang: "en",
)
// for DK-11208 (address label)
#set page(
width: 38mm,
height: 90mm,
flipped: false,
margin: (x: 3mm, top: 3mm, bottom: 3mm+9pt),
footer-descent: 0%,
footer: [
#set text(size: 8pt)
#set align(end)
#image("assets/ccchh.svg", height: 9pt, alt: "CCCHH")
]
)
#import "@preview/cades:0.3.0": qr-code
#let item(itemslug) = [
#qr-code("https://wiki.hamburg.ccc.de/item:#itemslug")
#text(8pt)[wiki.hamburg.ccc.de/item:#itemslug]
]
== Prusa i3 MK3S
#item[prusa-i3]
=== Usage
//Introduction required
See instructions (in the wiki)
//Freely

26
label-wide.typ Normal file
View file

@ -0,0 +1,26 @@
#set text(
//font: "pt sans",
font: "ubuntu",
fallback: false,
size: 14pt,
lang: "en",
)
// for DK-22205 (endless label)
#set page(
width: 62mm,
height: 35mm,
flipped: false,
margin: (x: 3mm, top: 5mm, bottom: 3mm+9pt),
footer-descent: 0%,
footer: [
#set text(size: 8pt)
#set align(end)
#image("assets/ccchh.svg", height: 9pt, alt: "CCCHH")
]
)
#set align(center)
== Main Content
Subtitle 1\
Subtitle 2