]> git.pld-linux.org Git - packages/gDesklets-DeskQuote.git/blame - gDesklets-DeskQuote-README
- tabs in preamble
[packages/gDesklets-DeskQuote.git] / gDesklets-DeskQuote-README
CommitLineData
087af969 1-------------------------------------------------------
2DeskQuote 1.0 by Dan Gray (dan@dangray.org)
3----------------------------
4 Supports (since DeskTao 1.0):
5 Custom Fonts+Colors
6 Basic Text Alignment (Monospace fonts look best)
7 Custom Quotefile
8 Custom String Length
9
10Contents:
11
121. Intro
132. File formats
143. Installation
154. How to use DeskTao
165. The future
17
181. Introduction
19-----------------------------
20This program used to be called DeskTao and display Quotes on your desktop.
21From this release it is renamed DeskQuotes and comes as a seperate Sensor
22and Display, you can use the default DeskTao display or construct a custom
23one as you wish.
24
25This is DeskQuotes, a sensor to return random quotes from a file to a
26gdesklets display on your desktop. It will return quotes from any properly
27formatted file (similar to fortune files).
28
29Although this program works a little like a traditional fortune program
30there are some differences with the format of the source text file and the
31search program is less efficient (i.e. more basic), it is however very
32simple and should work on any system and you won't need to run any extra
33indexing functions on customised quote files you may want to use.
34
35 The processor usage is higher than I would like, but then again I use
36update times of around once every five minutes, so it's not an issue! If
37you really want to update the quote every 10 seconds it's your call, but
38you'll take a performance hit!!
39
40Please bare with me, this is my first Python program!
41
422. File formats
43--------------------
44The file format is similar to a fortune file, the header consists of:
45
46 First line - Delimiter
47 Second line - File Description
48 Third Line - Number of lines counting from 0 to the DELIMITER AT THE
49 END OF THE SECOND TO LAST QUOTE!!
50 Forth Line - Delimiter again
51 Then your quotes, separated by delimiters.
52 AND A FINAL DELIMITER
53
54So a complete file will look like this:
55------------------------------------------
56%
57Quotes from the Tao, S.Mitchel translation.
5810
59%
60I
61
62The tao that can be told
63is not the eternal Tao
64The name that can be named
65is not the eternal Name.
66%
67The last quote
68%
69------------------------------------------
70 ...etc
71
723. Installation
73-------------------
74 Run the script,
75 Once the program is installed, go to the directory containing your
76DeskQuotes display and type 'gdesklets displayname.desklet' and you
77 should be up and running.
78
79
804. How to use it
81-----------------------
82
83 The program will run in it's default mode at first. You can use the
84configuration dialog to alter:
85
86 A. The Font and it's colour. If you're center aligning i'd recommend a
87 courier or monotype font to get reasonable looking results
88
89 B. The time between refreshing the quote. The program is quite
90processor-intensive when it's parsing through the file and fetching your
91quote, but then again if you do it once every 10 minutes you shouldn't
92notice.
93
94 C. The quotefile. The file that comes with the tao display is called
95'tao' and used by default. Read the formatting advice above and create
96your own themed display. Send it to me and i'll put it on the website for
97others to download.
98
99 D. Lenght of line. Obviously different font sizes will take up more or
100less room. This option will allow you to alter the length of individual
101lines returned by DeskTao to get eye-pleasing results.
102
103 E. Text alignment, as I wrote above, if using centering than choose a
104monospace font for best results. If alignment ever gets built into
105gdesklets i'll change this!
106
1075. The Future
108------------------------
109 Suggestions welcome!
This page took 0.054108 seconds and 4 git commands to generate.