]> git.sur5r.net Git - glabels/blob - help/sl/merge-ex1.page
Imported Upstream version 3.0.1
[glabels] / help / sl / merge-ex1.page
1 <?xml version="1.0" encoding="utf-8"?>
2 <page xmlns="http://projectmallard.org/1.0/" xmlns:e="http://projectmallard.org/experimental/" type="guide" id="merge-ex1" xml:lang="sl">
3
4   <info>
5     <link type="guide" xref="merge#merge-ex"/>
6     <revision pkgversion="3.0" version="0.1" date="2010-05-04" status="incomplete"/>
7     <desc>Ustvari imenske značke iz datoteke CSV.</desc>
8     <credit type="author">
9       <name>Jim Evins</name>
10       <email>evins@snaught.com</email>
11     </credit>
12     <credit type="author">
13       <name>Mario Blättermann</name>
14       <email>mariobl@gnome.org</email>
15     </credit>
16     <license>
17       <p>Creative Commons Share Alike 3.0</p>
18     </license>    
19   </info>
20
21     <title>Primer 1: Značke z imeni</title>
22
23       <p>In this example we are organizing an orientation party for the new
24         crew members of our ship.  We have a list of freshman crew members that we
25         created in <app>gnumeric</app> and exported as the following
26         CSV file.  We could have created this file by using a text editor, but heck it
27         is the 23rd century.</p>
28
29       <code>
30 Name,Department,SN
31 "Jim Kirk",Management,"SC937-0176 CEC"
32 "Mr. Spock",Sciences,S179-276SP
33 "Leonard McCoy",Medicine,unknown
34 "Montgomery Scott",Engineering,SE-197-54T
35       </code>
36
37       <p>In <app>gLabels</app> we have created a new <app>glabels</app>
38         document using the Avery 5395 "Name Badge Labels" template.  Next we use the
39         <guiseq> <gui>Objects</gui>
40         <gui>Merge Properties</gui> </guiseq> menu item to display
41         the <gui>merge properties</gui> dialog.  We use this dialog to
42         select the source type (in our case CSV with keys on line 1) and the merge
43         source (filename) as shown.</p>
44
45       <!-- ==== Figure ==== -->
46                 <media type="image" src="figures/merge-ex1-1.png" mime="image/png" style="right">
47                 <p>Merge properties dialog</p>
48                 </media>
49       <!-- ==== End of Figure ==== -->
50
51       <p>We can also view each record in more detail by clicking on the appropriate
52         expander (the little triangles) as shown.  Once we are satisfied with the
53         selections in this dialog we click <gui>OK</gui> to accept the
54         changes.</p>
55
56       <p>Now we start adding objects to our <app>glabels</app> document as shown.</p>
57
58       <!-- ==== Figure ==== -->
59                 <media type="image" src="figures/merge-ex1-2.png" mime="image/png" style="right">
60                 <p>Dodajanje predmetov</p>
61                 </media>
62       <!-- ==== End of Figure ==== -->
63
64       <p>In this example we have added three text objects and a barcode object.  The
65         first text object contains only simple literal text ("Hello, my name is").  The
66         second text object contains a single merge field ("${Name}") corresponding to the
67         first field of a record (first column of a line) which contains the new crew
68         member's full name.  The third text field contains both literal text
69         ("Department: ") followed by a single merge field ("${Department}") corresponding to
70         the second field or the crew member's department.  The barcode object is
71         configured to use field (or key) "SN" which contains our crew member's
72         starfleet serial number.</p>
73
74       <p>Now we can print our name tags by selecting the
75         <guiseq> <gui>File</gui>
76         <gui>Print</gui> </guiseq> menu item.  This will display
77         print dialog as shown below.</p>
78
79       <!-- ==== Figure ==== -->
80                 <media type="image" src="figures/merge-ex1-3.png" mime="image/png" style="right">
81                 <p>Tiskanje imenskih značk</p>
82                 </media>
83       <!-- ==== End of Figure ==== -->
84
85       <p>Just to make sure our labels are going to look okay, we select the
86         <gui>Print outlines</gui> option and click
87         <gui>Print Preview</gui>.  This will display a print preview dialog
88         as shown below.</p>
89
90       <!-- ==== Figure ==== -->
91                 <media type="image" src="figures/merge-ex1-4.png" mime="image/png" style="right">
92                 <p>Name tags preview</p>
93                 </media>
94       <!-- ==== End of Figure ==== -->
95
96       <p>Everything looks good, so we can now load up our printer with
97         the appropriate label stock, print our name tags and start beaming our guests
98         aboard.</p>
99
100
101 </page>