CD-CIRCLEPRINT(1) | User Contributed Perl Documentation | CD-CIRCLEPRINT(1) |
cd-circleprint - create a round label for a CD
cd-circleprint prints two round labels for CDs. It uses up to four lines of text for each label, this is printed in arcs so the text can be much longer than if it were in straight lines. There are four additional straight text fields for each label.
The output is in PostScript, this should work on most systems.
You can select the font, size, and colour of the text for each field separately, and you can choose the background colour for each label. An image file in EPS format may also be used as a background. If you wish more complicated backgrounds or colour effects you can save a label and modify it in any graphic program which can read PostScript.
All layout is done in PostScript, this should work on most systems.
The result of the layout are two cd-labels on one sheet of paper. On each label there are two convex and two concave lines of text. If you have a very long line of text, you can use only one line and make it longer. There are no limits to the length of text. However, after 360 degrees the ends of the text will overlap.
There are also four text fields on each label with normal horizontal lines of text. These text fields are specified in clockwise order: above, right, below, and left of the central hole.
The colours are done in the RGB-model of PostScript, you can choose them for each line and the background of the label independently.
You can move the circles around the sheet to fit them on most types of label-sheets.
You can also squeeze or stretch the whole thing to correct small errors of your printer.
After starting the program you see sixteen text-entry fields divided into two blocks. The upper block is for the arcs, the lower block is for the straight text fields.
Each label has four text fields and four arcs.
The first two lines are for the upper arcs on the label and the last two for the lower arcs.
Write your text in the fields (support for cddb is on the TODO list)
The Save Image menu item creates a postscript file of the label. A file selection dialogue is displayed so the user can specify the path and filename.
Font attributes and colours can be changed interactively using a dialog available from the menu.
Control-l: write the label to /tmp Control-p: preview the label Control-q: quit Control-s: save the configuration
Note, perl-tk uses the nearest match for the font. The labels may look different on your printer.
I thought about automatic scaling, but the program would have to know the real size of the visible part of the graphic instead of just the bounding box.
The scaling and shifting should be self-explanatory. The program gets the bounding box of the eps image and puts the image in the middle of the label.
You can save your configuration in a file in your $HOME or ask your sysadmin to create a global configuration-file.
There is a global configuration file /etc/cd-circleprint.conf and a local configuration file $HOME/.cd-circleprint.conf
You can specify a configuration file on the command line in which case the default configuration file settings can be overridden. For the format of the configuration files take a look at them. Comments start with a # and blank lines are ignored.
The program sets its internal default values, looks for the global configuration file, then for the local configuration file and finally for a user specified file.
Label data is read from a similar format file either specified on the command line or selected from a file dialog.
There are probably many bugs, please fix them and send me a patch. Thanks
cd-circleprint is written and maintained by Colin Tuckley <colintu@users.sourceforge.net> cd-circleprint was originally written by Matthias Kabel <matthias.kabel@tyche.de>
You can find the latest version at http://cd-circle-print.sourceforge.net
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Thanks to sourceforge.net for hosting free software
2022-08-25 | perl v5.34.0 |