7b8838c2cd
git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@131 cac9541e-1b8d-4bfa-827e-589bba606050
129 lines
5.1 KiB
HTML
Executable File
129 lines
5.1 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="keywords" content="Qt,lightscribe,linux,cddb">
|
|
|
|
<meta name="GENERATOR" content="PageBreeze Free HTML Editor (http://www.pagebreeze.com)">
|
|
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" >
|
|
<title>HOWTO print CDDB titles with Qt lightscribe</title>
|
|
|
|
<style>
|
|
<!--
|
|
h1 { font-family: Arial, sans-serif; font-size: 30px; }
|
|
h2 { font-family: Arial, sans-serif; font-size: 18px; }
|
|
|
|
body,p,b,i,em,dt,dd,dl,sl,caption,th,td,tr,u,blink,select,option,form,div,li { font-family: Arial, sans-serif; font-size: 12px; }
|
|
-->
|
|
</style>
|
|
|
|
</head>
|
|
<body bgcolor="#ffffff">
|
|
<p>This document describes how you can create a qlscribe
|
|
template for printing labels with CDDB information embedded. So let's start.</p>
|
|
<h4>1 Materials used.</h4>
|
|
<p>qlscribe version 0.9 or later is used. If you have older
|
|
version please <a
|
|
href="https://sourceforge.net/project/showfiles.php?group_id=251217">update</a> </p>
|
|
<p>I downloaded label images from <a
|
|
href="http://www.lightscribe.com/ideas/index.aspx?id=2358">lightScribe design
|
|
center</a></p>
|
|
<p>Music album "Aphex Twin / Girl Boy EP" I used just as an example, I do not
|
|
actually have this disc nor copy of it.</p>
|
|
<p>cddbcmd utility is part of package cddb and on Ubuntu
|
|
can be downloaded from standard repository:</p>
|
|
<pre> sudo apt-get install cddb</pre>
|
|
<h4>2 Create new label and load image</h4>
|
|
<p>Start qlscribe, hit File -> New Label -> Full. You
|
|
should see something like this:</p>
|
|
<p><img hspace="0" src="/dbimage.php?id=207997" border=0></p>
|
|
<p>Insert image Edit -> Insert -> Image then on
|
|
dialog click "Load image.." select image "MixTape.jpg" downloaded from <a
|
|
href="http://www.lightscribe.com/ideas/index.aspx?id=2358">lightScribe design
|
|
center</a> Here how my label is looking now:</p>
|
|
<p><img hspace="0" src="/dbimage.php?id=207998" border=0></p>
|
|
<h4>3 Create text placeholders</h4>
|
|
<p>Now select Edit -> Insert -> Text and on
|
|
dialog put text "?DTITLE?". Question marks around name will make this text
|
|
disapear in qlscribe console mode print. This could be not necessary for disk
|
|
title as it usually set in CDDB data anyway, but would not harm. We should
|
|
put question marks on song names, as number of placeholders of title
|
|
names should be at least not less than songs on the disk. Adjust font size, so
|
|
when printed it would fit in white area. Now move your text box in the
|
|
place:</p>
|
|
<p><img hspace="0" src="/dbimage.php?id=207999" border=0></p>
|
|
<p>First we would create a placeholder for the first song,
|
|
adjust font properly and then copy/paste it for others. So Edit -> Insert
|
|
-> Text and put "?TTITLE0?". Again if we would not put question marks around
|
|
name it will still work, but unused placeholders will be printed as ugly
|
|
TTITLEN... strings. Move the text box to the proper position and press Ctrl-C or
|
|
from menu Edit -> Copy. Press Ctrl-V and move the text box to the new postion
|
|
for TTITLE1. Right click, then "edit..." and change text to "?TTITLE1?". Repeat
|
|
until you have enough titles. Your label could look like this one now:</p>
|
|
<p><img hspace="0" src="/dbimage.php?id=208000" border=0></p>
|
|
<p>Hit menu File -> Save, save it for example
|
|
as "tape.qlx" and exit qlscribe.</p>
|
|
<h4>4 Download CDDB data</h4>
|
|
<p>If you do not have audio disk in cd-rom you can lookup
|
|
your disk id from http://www.freedb.org/ or similar. Copy it and run this command:</p>
|
|
<pre> cddbcmd cddb read rock 4d03a706 > girlboy.txt</pre>
|
|
<p>In my case disk id is rock/4d03a706.</p>
|
|
<p>Check that file have proper data, it should look similar
|
|
to this:</p>
|
|
|
|
<pre><code># xmcd CD database file
|
|
#^M
|
|
|
|
# Track frame offsets:
|
|
# 182
|
|
# 22097
|
|
# 40767
|
|
# 47095
|
|
# 55912
|
|
# 62745
|
|
#^M
|
|
|
|
# Disc length: 937 seconds
|
|
#^M
|
|
|
|
# Revision: 0
|
|
# Processed by: cddbd v1.5.2PL0 Copyright (c) Steve Scherf et al.
|
|
# Submitted via: IdiotJukebox 1.0 (Emacs 19.34.1)
|
|
#^M
|
|
|
|
DISCID=4d03a706
|
|
DTITLE=Aphex Twin / Girl Boy EP
|
|
TTITLE0=Girl Boy (nls mix)
|
|
TTITLE1=Milk Man
|
|
TTITLE2=Inkey$
|
|
TTITLE3=Girl Boy (Snarerushmix)
|
|
TTITLE4=Beetles
|
|
TTITLE5=Girl Boy (Redruthmix)
|
|
EXTD=
|
|
EXTT0=
|
|
EXTT1=
|
|
EXTT2=
|
|
EXTT3=
|
|
EXTT4=
|
|
EXTT5=
|
|
PLAYORDER=</code></pre>
|
|
<h4>5 Test you template</h4>
|
|
<p>Now we can test how our created at step 2-3 template works with the data. Run qlscribe
|
|
in console mode to print label as an image:</p>
|
|
<pre> qlscribe --image girlboy.jpg --file girlboy.txt tape.qlx</pre>
|
|
<p>If everything fine you should now see file girlboy.jpg
|
|
in the current directory. Here is what I got for mine:</p>
|
|
<p><img src="/dbimage.php?id=208002"></p>
|
|
<h4>6 Print label</h4>
|
|
<p>Now if you are happy with the result at step 5 you can print label
|
|
directly:</p>
|
|
<pre> qlscribe --print --file girlboy.txt tape.qlx</pre>
|
|
<p>Enjoy!</p>
|
|
<p>Please send comments, suggestions or noticed errors
|
|
directly to <a
|
|
href="mailto:vyacheslav@kononenko.net">mailto:vyacheslav@kononenko.net</a> or
|
|
visit <a
|
|
href="http://qlscribe.sourceforge.net">http://qlscribe.sourceforge.net</a> and create
|
|
an item in the Bug tracker.</p>
|
|
</body>
|
|
</html>
|