Fix #381: Feature-Request: Make JPEG comment available for overlays
[geeqie.git] / doc / docbook / GuideOptionsWindow.xml
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <section id="GuideOptionsWindow">\r
3   <title>Window Options</title>\r
4   <para>This section describes the options presented under the Windows Tab of the preferences dialog.</para>\r
5   <section id="State">\r
6     <title>State</title>\r
7     <variablelist>\r
8       <varlistentry>\r
9         <term>\r
10           <guilabel>Remember window positions</guilabel>\r
11         </term>\r
12         <listitem>\r
13           <para>This will maintain windows size and position between Geeqie sessions.</para>\r
14         </listitem>\r
15       </varlistentry>\r
16     </variablelist>\r
17     <variablelist>\r
18       <varlistentry>\r
19         <term>\r
20           <guilabel>Use saved window positions also for new windows</guilabel>\r
21         </term>\r
22         <listitem>\r
23           <para>\r
24             A new window opened by menu\r
25             <menuchoice>\r
26               <shortcut>\r
27                 <keycombo>\r
28                   <keycap>Ctrl</keycap>\r
29                   <keycap>N</keycap>\r
30                 </keycombo>\r
31               </shortcut>\r
32               <guimenu>File</guimenu>\r
33               <guimenuitem>New Window</guimenuitem>\r
34             </menuchoice>\r
35             will use the saved window positions also.\r
36           </para>\r
37         </listitem>\r
38       </varlistentry>\r
39     </variablelist>\r
40     <variablelist>\r
41       <varlistentry>\r
42         <term>\r
43           <guilabel>Remember tool state</guilabel>\r
44         </term>\r
45         <listitem>\r
46           <para>\r
47             Maintains the selection set by\r
48             <menuchoice>\r
49               <shortcut>\r
50                 <keycombo>\r
51                   <keycap>L</keycap>\r
52                 </keycombo>\r
53               </shortcut>\r
54               <guimenu>View</guimenu>\r
55               <guimenuitem>File and Folders</guimenuitem>\r
56               <guimenuitem>Float File List</guimenuitem>\r
57             </menuchoice>\r
58           </para>\r
59         </listitem>\r
60       </varlistentry>\r
61     </variablelist>\r
62   </section>\r
63   <section id="Size">\r
64     <title>Size</title>\r
65     <variablelist>\r
66       <varlistentry>\r
67         <term>\r
68           <guilabel>Fit window to image when tools are hidden/floating</guilabel>\r
69         </term>\r
70         <listitem>\r
71           <para>The main window will be resized to accommodate each image's size and proportions when the image pane is the only one visible within the window.</para>\r
72         </listitem>\r
73       </varlistentry>\r
74     </variablelist>\r
75     <variablelist>\r
76       <varlistentry>\r
77         <term>\r
78           <guilabel>Limit size when auto-sizing window</guilabel>\r
79         </term>\r
80         <listitem>\r
81           <para>This will restrict the maximum size a window can grow to automatically fit an image. The value represents the percentage of the desktop size in width and height.</para>\r
82         </listitem>\r
83       </varlistentry>\r
84     </variablelist>\r
85   </section>\r
86   <section id="FullScreen">\r
87     <title>Full Screen</title>\r
88     <variablelist>\r
89       <varlistentry>\r
90         <term>\r
91           <guilabel>Location</guilabel>\r
92         </term>\r
93         <listitem>\r
94           <para>Selects the location and position of the full screen window. 'Determined by window manager' will leave the window placement up to the window manager. 'Active screen' places the window on the same screen as the Geeqie main window. 'Active monitor' does the same, but limits the full screen window size to the monitor containing the main window. The remaining choices are dependent on the multiple monitor configuration.</para>\r
95         </listitem>\r
96       </varlistentry>\r
97     </variablelist>\r
98     <variablelist>\r
99       <varlistentry>\r
100         <term>\r
101           <guilabel>Smooth image flip</guilabel>\r
102         </term>\r
103         <listitem>\r
104           <para>This option delays the image change in full screen until the next image is entirely decoded into memory, the result is a smoother transition between images.</para>\r
105         </listitem>\r
106       </varlistentry>\r
107     </variablelist>\r
108     <variablelist>\r
109       <varlistentry>\r
110         <term>\r
111           <guilabel>Disable screen saver</guilabel>\r
112         </term>\r
113         <listitem>\r
114           <para>\r
115             This option will execute\r
116             <emphasis role="i">xscreensaver-command --deactivate</emphasis>\r
117             once per minute to avoid the screen saver from activating when Geeqie is displayed full screen.\r
118           </para>\r
119         </listitem>\r
120       </varlistentry>\r
121     </variablelist>\r
122   </section>\r
123   <section id="OverlayScreenDisplay">\r
124     <title>Overlay Screen Display</title>\r
125     <para>The contents of the Overlay Screen Display is defined by the Image Overlay Template. This template is easily customised to  display a wide range of data.</para>\r
126     <para>\r
127       The format of each entry is:\r
128       <programlisting>%tag[:max_length][:extra]%</programlisting>\r
129     </para>\r
130     <table frame="all">\r
131       <tgroup cols="2" rowsep="1" colsep="1">\r
132         <tbody>\r
133           <row>\r
134             <entry>\r
135               <emphasis role="strong">Tag</emphasis>\r
136             </entry>\r
137             <entry>\r
138               <emphasis role="strong">Replaced by</emphasis>\r
139             </entry>\r
140           </row>\r
141           <row>\r
142             <entry>name</entry>\r
143             <entry>Filename of the picture</entry>\r
144           </row>\r
145           <row>\r
146             <entry>collection</entry>\r
147             <entry>Name of the collection</entry>\r
148           </row>\r
149           <row>\r
150             <entry>number</entry>\r
151             <entry>Current number of image in the list</entry>\r
152           </row>\r
153           <row>\r
154             <entry>total</entry>\r
155             <entry>Total number of images</entry>\r
156           </row>\r
157           <row>\r
158             <entry>date</entry>\r
159             <entry>File date</entry>\r
160           </row>\r
161           <row>\r
162             <entry>size</entry>\r
163             <entry>File size</entry>\r
164           </row>\r
165           <row>\r
166             <entry>width</entry>\r
167             <entry>Image width</entry>\r
168           </row>\r
169           <row>\r
170             <entry>height</entry>\r
171             <entry>Image height</entry>\r
172           </row>\r
173           <row>\r
174             <entry>res</entry>\r
175             <entry>Image resolution</entry>\r
176           </row>\r
177           <row>\r
178             <entry>keywords</entry>\r
179             <entry>Image keywords from metadata</entry>\r
180           </row>\r
181           <row>\r
182             <entry>comment</entry>\r
183             <entry>Image comment from XMP metadata</entry>\r
184           </row>\r
185           <row>\r
186             <entry>imagecomment</entry>\r
187             <entry>JPEG image comment</entry>\r
188           </row>\r
189           <row>\r
190             <entry>&lt;meta_tag&gt;</entry>\r
191             <entry>The Exif, XMP, or IPTC tag from metadata</entry>\r
192           </row>\r
193           <row>\r
194             <entry>lua/&lt;lua_script&gt;/</entry>\r
195             <entry>The output of a Lua script file</entry>\r
196           </row>\r
197           <row>\r
198             <entry>lua//&lt;lua_command&gt;</entry>\r
199             <entry>The output of a Lua command</entry>\r
200           </row>\r
201         </tbody>\r
202       </tgroup>\r
203     </table>\r
204     <para>\r
205       As an aide, in addition to standard metadata tags, Geeqie provides a number of\r
206       <link linkend="formatted_exif">pre-formatted tags</link>\r
207       .\r
208     </para>\r
209     <para>Examples of usage are:</para>\r
210     <para>\r
211       <programlisting xml:space="preserve">\r
212         %keywords%\r
213         %Exif.Photo.DateTimeOriginal%\r
214         %lua/jpeg_comment.lua/:12%\r
215         %lua//return(os.date())%\r
216       </programlisting>\r
217     </para>\r
218     <para>\r
219       Refer to\r
220       <link linkend="GuideReferenceLua">Lua Extensions</link>\r
221       for further information.\r
222     </para>\r
223     <para>\r
224       The length of displayed data can be limited by using the\r
225       <emphasis role="italic">:max_length</emphasis>\r
226       parameter. The following example will truncate the displayed data to 20 characters and will add 3 dots at the end to denote the truncation.\r
227       <programlisting>%formatted.Camera:20%</programlisting>\r
228     </para>\r
229     <para>\r
230       If two or more variables are connected with the\r
231       <code>|</code>\r
232       character, the variables are displayed with a separator. For example::\r
233       <programlisting>%formatted.ShutterSpeed%|%formatted.ISOSpeedRating%|%formatted.FocalLength%</programlisting>\r
234       could show:\r
235       <programlisting>"1/20s - 400 - 80 mm"</programlisting>\r
236       Or, if there is no ISO information in the Exif data:\r
237       <programlisting>"1/200 - 80 mm"</programlisting>\r
238     </para>\r
239     <para>If there is no data for a requested tag, the line is not displayed.</para>\r
240     <para>\r
241       The\r
242       <emphasis role="italic">:extra</emphasis>\r
243       parameter may be used to format the output by prepending and appending a text string to the displayed item.\r
244     </para>\r
245     <para>\r
246       The special character\r
247       <code>*</code>\r
248       is used to mark the position of the Tag data item. If no\r
249       <code>*</code>\r
250       is present, the extra string is just appended to the standard data displayed. Any "\n" is replaced by a newline on display.\r
251       <link linkend="GuideReferenceStandards">Pango mark up</link>\r
252       is accepted in both left and right parts. If the data item is empty, nothing will be displayed.\r
253     </para>\r
254     <para>Examples:</para>\r
255     <table>\r
256       <tgroup cols="2" rowsep="1" colsep="1">\r
257         <tbody>\r
258           <row>\r
259             <entry>\r
260               <emphasis role="strong">Template</emphasis>\r
261             </entry>\r
262             <entry>\r
263               <emphasis role="strong">Example display</emphasis>\r
264             </entry>\r
265           </row>\r
266           <row>\r
267             <entry>\r
268               %name:\r
269               &lt;i&gt;*&lt;/i&gt;\n%\r
270             </entry>\r
271             <entry>\r
272               <emphasis role="italic">filename001.jpg</emphasis>\r
273             </entry>\r
274           </row>\r
275           <row>\r
276             <entry>%size:\n%</entry>\r
277             <entry>123456</entry>\r
278           </row>\r
279           <row>\r
280             <entry>%formatted.ISOSpeedRating:ISO *%</entry>\r
281             <entry>ISO 100</entry>\r
282           </row>\r
283           <row>\r
284             <entry>\r
285               %collection:Collection:\r
286               &lt;b&gt;*&lt;/b&gt;\r
287               \n%\r
288             </entry>\r
289             <entry>\r
290               Collection:\r
291               <emphasis role="strong">my_new_collection</emphasis>\r
292             </entry>\r
293           </row>\r
294         </tbody>\r
295       </tgroup>\r
296     </table>\r
297     <para />\r
298     <variablelist>\r
299       <varlistentry>\r
300         <term>\r
301           <guibutton>\r
302             <guiicon>\r
303               <inlinegraphic fileref="preferences-desktop-font.png" />\r
304             </guiicon>\r
305           </guibutton>\r
306           <guilabel>Font</guilabel>\r
307           ,\r
308           <guibutton>\r
309             <guiicon>\r
310               <inlinegraphic fileref="gtk-color-picker.png" />\r
311             </guiicon>\r
312           </guibutton>\r
313           <guilabel>Text</guilabel>\r
314           ,\r
315           <guibutton>\r
316             <guiicon>\r
317               <inlinegraphic fileref="gtk-color-picker.png" />\r
318             </guiicon>\r
319           </guibutton>\r
320           <guilabel>Background</guilabel>\r
321         </term>\r
322         <listitem>The font used for the Overlay Screen Display, as well as the font colour and background colour, may be set via these buttons. Colour transparency can also be set.</listitem>\r
323       </varlistentry>\r
324     </variablelist>\r
325     <variablelist>\r
326       <varlistentry>\r
327         <term>\r
328           <guibutton>\r
329             <guiicon>\r
330               <inlinegraphic fileref="help-contents.png" />\r
331             </guiicon>\r
332           </guibutton>\r
333           <guilabel>Help</guilabel>\r
334         </term>\r
335         <listitem>\r
336           <para>Show syntax help</para>\r
337         </listitem>\r
338       </varlistentry>\r
339     </variablelist>\r
340     <variablelist>\r
341       <varlistentry>\r
342         <term>\r
343           <guilabel>Defaults</guilabel>\r
344         </term>\r
345         <listitem>\r
346           <para>Restore default image overlay template</para>\r
347         </listitem>\r
348       </varlistentry>\r
349     </variablelist>\r
350   </section>\r
351 </section>\r