ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Context and CD labels
@ 2006-10-18 18:34 Maurício
  2006-10-18 20:45 ` Henning Hraban Ramm
  2006-10-18 21:00 ` Renaud AUBIN
  0 siblings, 2 replies; 9+ messages in thread
From: Maurício @ 2006-10-18 18:34 UTC (permalink / raw)


   Hi,

   Has anyone ever tried to use Context to create music CD labels? Any 
tips on what should I do, pages I can read or results I can expect?

   Thanks,
   Maurício

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Context and CD labels
  2006-10-18 18:34 Context and CD labels Maurício
@ 2006-10-18 20:45 ` Henning Hraban Ramm
  2006-10-19  2:36   ` Maurí­cio
  2006-10-18 21:00 ` Renaud AUBIN
  1 sibling, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2006-10-18 20:45 UTC (permalink / raw)


Am 2006-10-18 um 20:34 schrieb Maurício:

>    Has anyone ever tried to use Context to create music CD labels? Any
> tips on what should I do, pages I can read or results I can expect?

Dou you mean what gets printed on the CD (or a separate label to be  
stuck on the CD)?
Why not use a page of 12x12cm? Or what's your problem?

If you mean booklets or inlays, I could send you my setup for backup  
CDs.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Context and CD labels
  2006-10-18 18:34 Context and CD labels Maurício
  2006-10-18 20:45 ` Henning Hraban Ramm
@ 2006-10-18 21:00 ` Renaud AUBIN
  2006-10-19  2:51   ` Maurí­cio
  1 sibling, 1 reply; 9+ messages in thread
From: Renaud AUBIN @ 2006-10-18 21:00 UTC (permalink / raw)


Maurício a écrit :

>Has anyone ever tried to use Context to create music CD labels? Any 
>tips on what should I do, pages I can read or results I can expect?
>  
>
Hi Mauricio,

I have never tried to create CD labels but from my experience you should
use overlay... Could you describe the geometry of the labels you use (if
you use some) ?
I can make an example without it but it can help to provide a full one...
I need:
- width and height of the page (if non-standard)
- number of label per page and position of each label's center
relatively to a corner of the page...

A 2 min experiment gives:

\setuppapersize[A4][A4]
\setuppagenumbering[state=stop]
\setupcolors[state=start]

\startuseMPgraphic{CDShape}
draw fullcircle scaled 12cm;
draw fullcircle scaled 4cm;
\stopuseMPgraphic

\starttext
\startproperty[hidden]
I need some text to get the page... but also need to hide this text !
\stopproperty

\definelayer[PageLayer][position=yes]
\setupbackgrounds[page][background=PageLayer]
\setuplayer[PageLayer][position=no,corner=bottom,height=\paperheight]

% sample geometry
\setlayer[PageLayer][x=.5\paperwidth,y=.25\paperheight,location=c]{\useMPgraphic{CDShape}}
\setlayer[PageLayer][x=.5\paperwidth,y=.75\paperheight,location=c]{\useMPgraphic{CDShape}}

\page
\startproperty[hidden]
I need some text to get the page... but also need to hide this text !
\stopproperty
% another sample geometry
\setlayer[PageLayer][x=.35\paperwidth,y=.30\paperheight,location=c]{\useMPgraphic{CDShape}}
\setlayer[PageLayer][x=.65\paperwidth,y=.70\paperheight,location=c]{\useMPgraphic{CDShape}}

\stoptext

You can draw, clip, write whatever you want and where you want... The
circular shape are just to demonstrate positionning and can help to check...

You could use Metafun to do some advanced text manipulation (like shaped
texts or followtoken texts...)

No more to say...


Renaud

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Context and CD labels
  2006-10-18 20:45 ` Henning Hraban Ramm
@ 2006-10-19  2:36   ` Maurí­cio
  0 siblings, 0 replies; 9+ messages in thread
From: Maurí­cio @ 2006-10-19  2:36 UTC (permalink / raw)


>>    Has anyone ever tried to use Context to create music CD labels? Any
>> tips on what should I do, pages I can read or results I can expect?
> 
> Dou you mean what gets printed on the CD (or a separate label to be  
> stuck on the CD)?
> Why not use a page of 12x12cm? Or what's your problem?
> 
> If you mean booklets or inlays, I could send you my setup for backup  
> CDs.
> (...)

   What I need is to write labels to be glued to the CD. My problem is 
that the text (usually, a title and a music list) need to fit into a 
circular area. Also, text must be automatically resized to fit in that 
area, and no text should go inside the inner circle.

   Maurício

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Context and CD labels
  2006-10-18 21:00 ` Renaud AUBIN
@ 2006-10-19  2:51   ` Maurí­cio
  2006-10-19 12:12     ` Renaud AUBIN
  0 siblings, 1 reply; 9+ messages in thread
From: Maurí­cio @ 2006-10-19  2:51 UTC (permalink / raw)


>> Has anyone ever tried to use Context to create music CD labels? Any 
>> tips on what should I do, pages I can read or results I can expect?
>>  
> I have never tried to create CD labels but from my experience you should
> use overlay... Could you describe the geometry of the labels you use (if
> you use some) ?

   I don't have the exact dimenstions. You can check it here (Open 
Office document):

www.pimaco.com.br/files/gabaritos/Gabarito_CDpply_CARTA.sxw

> I can make an example without it but it can help to provide a full one...
> I need:
> - width and height of the page (if non-standard)
> - number of label per page and position of each label's center
> relatively to a corner of the page...
> 
> (...)
> 
> You can draw, clip, write whatever you want and where you want... The
> circular shape are just to demonstrate positionning and can help to check...
> 
> You could use Metafun to do some advanced text manipulation (like shaped
> texts or followtoken texts...)
> 

   I will learn Metafun right now. Do you think I can get Context to 
write a music list in a way that the text fits automatically into the 
label? I would like to create a standard template for labels so that I 
could change only the music list and title. That list could be as small 
as 3 songs or as big as 30 songs organized into sections.

   Maurício

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Context and CD labels
  2006-10-19  2:51   ` Maurí­cio
@ 2006-10-19 12:12     ` Renaud AUBIN
  2006-10-20  2:32       ` Maurí­cio
  0 siblings, 1 reply; 9+ messages in thread
From: Renaud AUBIN @ 2006-10-19 12:12 UTC (permalink / raw)


Maurí­cio a écrit :

>   I don't have the exact dimenstions. You can check it here (Open 
>Office document):
>
>www.pimaco.com.br/files/gabaritos/Gabarito_CDpply_CARTA.sxw
>  
>
dead link... but it's ok with the word "gabaritos"... The format you use
is letter, right (just to be sure since here we use A4) ?

>   I will learn Metafun right now. Do you think I can get Context to 
>write a music list in a way that the text fits automatically into the 
>label? I would like to create a standard template for labels so that I 
>could change only the music list and title. That list could be as small 
>as 3 songs or as big as 30 songs organized into sections.
>  
>
You could probably do that with shaped text but for section, I'm affraid
that you'll have to manage it by hand (can't use \section in shaped text)...
I'll make an example asap...

Renaud

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Context and CD labels
  2006-10-19 12:12     ` Renaud AUBIN
@ 2006-10-20  2:32       ` Maurí­cio
  2006-10-20  7:45         ` Renaud AUBIN
  0 siblings, 1 reply; 9+ messages in thread
From: Maurí­cio @ 2006-10-20  2:32 UTC (permalink / raw)


Renaud AUBIN wrote:
> Maurí­cio a écrit :
> 
>>   I don't have the exact dimenstions. You can check it here (Open 
>> Office document):
>>
>> www.pimaco.com.br/files/gabaritos/Gabarito_CDpply_CARTA.sxw
>>  
>>
> dead link... but it's ok with the word "gabaritos"... The format you use
> is letter, right (just to be sure since here we use A4) ?

   It's working now, I've just downloaded that file. I belive that paper 
is letter, although A4 is usually a lot more common here.

>>   I will learn Metafun right now. Do you think I can get Context to 
>> write a music list in a way that the text fits automatically into the 
>> label? I would like to create a standard template for labels so that I 
>> could change only the music list and title. That list could be as small 
>> as 3 songs or as big as 30 songs organized into sections.
>>  
>>
> You could probably do that with shaped text but for section, I'm affraid
> that you'll have to manage it by hand (can't use \section in shaped text)...
> I'll make an example asap...
> 

   Sections are not that important, as long as I can have different 
formats for some lines of text, and I'm sure that's not a problem. For 
sure, an example would be great!

   Maurício

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Context and CD labels
  2006-10-20  2:32       ` Maurí­cio
@ 2006-10-20  7:45         ` Renaud AUBIN
  2006-10-20 12:31           ` Maurício
  0 siblings, 1 reply; 9+ messages in thread
From: Renaud AUBIN @ 2006-10-20  7:45 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 887 bytes --]

Maurí­cio a écrit :

>   It's working now, I've just downloaded that file. I belive that paper 
>is letter, although A4 is usually a lot more common here.
>   Sections are not that important, as long as I can have different 
>formats for some lines of text, and I'm sure that's not a problem. For 
>sure, an example would be great!
>  
>

I'll let you do the job for positionning. You'll find as attached an
example... Since it's not obvious to me to make a shapetext with a holed
shape (I have tried some tricks but failed), I reserved 2 text areas:
1. (test 1) song list for example
2. (test 2|framedtext) Author & title

This example assumes that :
- the first label is centered on x=.5\paperwidth y=.75\paperwidth
- the second is centered on x=.5\paperwidth y=.25\paperheight

You can even put a background image if you want, using overlay and clip...

Renaud

[-- Attachment #2: cdlabels.tex --]
[-- Type: text/x-tex, Size: 3052 bytes --]

\setuppapersize[A4][A4]
\setuppagenumbering[state=stop]
\setupcolors[state=start]

\useMPlibrary[txt]

\startuseMPgraphic{test 1}
path p;
numeric orad, irad; orad := 6cm; irad := 2cm;
path outercircle; outercircle := fullcircle scaled 2orad;
path innercircle; innercircle := fullcircle scaled 2irad;
path outershape; 
outershape := outercircle cutbefore((0,irad)--(orad,irad))
cutafter((0,-irad)--(orad,-irad));
path innershape;
innershape := reverse (innercircle cutbefore((0,irad)--(irad,irad))
cutafter((0,-irad)--(irad,-irad)));
p:= outershape--innershape--cycle;
build_parshape(p,6pt,0,0,\baselinedistance,\strutheight,\strutdepth,\strutheight) ;
%draw p withpen pencircle scaled 1pt ;
\stopuseMPgraphic

\startuseMPgraphic{test 2}
path p;
numeric orad, irad; orad := 6cm; irad := 2cm;
path outercircle; outercircle := fullcircle scaled 2orad;
path innercircle; innercircle := fullcircle scaled 2irad;
path outershape; 
outershape := outercircle rotated 90
cutbefore((0,-irad)--(orad,-irad))
cutafter((0,irad)--(orad,irad));
path innershape;
innershape := reverse (innercircle rotated 90
cutbefore((0,-irad)--(irad,-irad))
cutafter((0,irad)--(irad,irad)));
p:= outershape--innershape--cycle;
build_parshape(p,6pt,0,0,\baselinedistance,\strutheight,\strutdepth,\strutheight) ;
%draw p withpen pencircle scaled 1pt ;
\stopuseMPgraphic

\defineoverlay[test 1][\useMPgraphic{test 1}]
\defineoverlay[test 2][\useMPgraphic{test 2}]

\startuseMPgraphic{CDShape}
draw fullcircle scaled 12cm;
draw fullcircle scaled 4cm;
\stopuseMPgraphic

\starttext

\setupframed[offset=overlay,align=normal,frame=off,width=\parwidth,height=\parheight]

\startproperty[hidden]
I need some text to get the page... but also need to hide this text !
\stopproperty

\definelayer[PageLayer][position=yes]
\setupbackgrounds[page][background=PageLayer]
\setuplayer[PageLayer][position=no,corner=bottom,height=\paperheight]

%% check-up shape
\setlayer[PageLayer][x=.5\paperwidth,y=.75\paperheight,location=c]{\useMPgraphic{CDShape}}

%% text
\startshapetext[test 1]
\input tufte
\stopshapetext
% x = .5\paperwidth (210mm) - orad
\setlayer[PageLayer][x=45mm,y=.75\paperheight,location=r]{\framed[background=test 1]{\getshapetext}}

\startshapetext[test 2]
\input knuth
\stopshapetext
% x = .5\paperwidth (210mm) + orad
%\setlayer[PageLayer][x=165mm,y=.75\paperheight,location=l]{\framed[background=test 2]{\getshapetext}}

\setlayer[PageLayer][x=145mm,y=.75\paperheight,location=c]{\framedtext[width=4cm,align=middle,frame=off]{Author \& Title\crlf and more if you want}}

%% check-up shape
\setlayer[PageLayer][x=.5\paperwidth,y=.25\paperheight,location=c]{\useMPgraphic{CDShape}}

% text
\startshapetext[test 1]
\input zapf
\stopshapetext
% x = .5\paperwidth (210mm) - orad
\setlayer[PageLayer][x=45mm,y=.25\paperheight,location=r]{\framed[background=test 1]{\getshapetext}}

\startshapetext[test 2]
\input knuth
\stopshapetext
% x = .5\paperwidth (210mm) + orad
\setlayer[PageLayer][x=165mm,y=.25\paperheight,location=l]{\framed[background=test 2]{\getshapetext}}


\stoptext

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Context and CD labels
  2006-10-20  7:45         ` Renaud AUBIN
@ 2006-10-20 12:31           ` Maurício
  0 siblings, 0 replies; 9+ messages in thread
From: Maurício @ 2006-10-20 12:31 UTC (permalink / raw)



>> (...)
> 
> I'll let you do the job for positionning. You'll find as attached an
> example... Since it's not obvious to me to make a shapetext with a holed
> shape (I have tried some tricks but failed), I reserved 2 text areas:
> 1. (test 1) song list for example
> 2. (test 2|framedtext) Author & title
> 
> This example assumes that :
> - the first label is centered on x=.5\paperwidth y=.75\paperwidth
> - the second is centered on x=.5\paperwidth y=.25\paperheight
> 
> You can even put a background image if you want, using overlay and clip...
> 
> Renaud
> (...)

   Thanks! That's exactly what I need.

   Best,
   M.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-10-20 12:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-18 18:34 Context and CD labels Maurício
2006-10-18 20:45 ` Henning Hraban Ramm
2006-10-19  2:36   ` Maurí­cio
2006-10-18 21:00 ` Renaud AUBIN
2006-10-19  2:51   ` Maurí­cio
2006-10-19 12:12     ` Renaud AUBIN
2006-10-20  2:32       ` Maurí­cio
2006-10-20  7:45         ` Renaud AUBIN
2006-10-20 12:31           ` Maurício

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).