]>
Commit | Line | Data |
---|---|---|
087af969 | 1 | ------------------------------------------------------- |
2 | DeskQuote 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 | ||
10 | Contents: | |
11 | ||
12 | 1. Intro | |
13 | 2. File formats | |
14 | 3. Installation | |
15 | 4. How to use DeskTao | |
16 | 5. The future | |
17 | ||
18 | 1. Introduction | |
19 | ----------------------------- | |
20 | This program used to be called DeskTao and display Quotes on your desktop. | |
21 | From this release it is renamed DeskQuotes and comes as a seperate Sensor | |
22 | and Display, you can use the default DeskTao display or construct a custom | |
23 | one as you wish. | |
24 | ||
25 | This is DeskQuotes, a sensor to return random quotes from a file to a | |
26 | gdesklets display on your desktop. It will return quotes from any properly | |
27 | formatted file (similar to fortune files). | |
28 | ||
29 | Although this program works a little like a traditional fortune program | |
30 | there are some differences with the format of the source text file and the | |
31 | search program is less efficient (i.e. more basic), it is however very | |
32 | simple and should work on any system and you won't need to run any extra | |
33 | indexing 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 | |
36 | update times of around once every five minutes, so it's not an issue! If | |
37 | you really want to update the quote every 10 seconds it's your call, but | |
38 | you'll take a performance hit!! | |
39 | ||
40 | Please bare with me, this is my first Python program! | |
41 | ||
42 | 2. File formats | |
43 | -------------------- | |
44 | The 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 | ||
54 | So a complete file will look like this: | |
55 | ------------------------------------------ | |
56 | % | |
57 | Quotes from the Tao, S.Mitchel translation. | |
58 | 10 | |
59 | % | |
60 | I | |
61 | ||
62 | The tao that can be told | |
63 | is not the eternal Tao | |
64 | The name that can be named | |
65 | is not the eternal Name. | |
66 | % | |
67 | The last quote | |
68 | % | |
69 | ------------------------------------------ | |
70 | ...etc | |
71 | ||
72 | 3. Installation | |
73 | ------------------- | |
74 | Run the script, | |
75 | Once the program is installed, go to the directory containing your | |
76 | DeskQuotes display and type 'gdesklets displayname.desklet' and you | |
77 | should be up and running. | |
78 | ||
79 | ||
80 | 4. How to use it | |
81 | ----------------------- | |
82 | ||
83 | The program will run in it's default mode at first. You can use the | |
84 | configuration 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 | |
90 | processor-intensive when it's parsing through the file and fetching your | |
91 | quote, but then again if you do it once every 10 minutes you shouldn't | |
92 | notice. | |
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 | |
96 | your own themed display. Send it to me and i'll put it on the website for | |
97 | others to download. | |
98 | ||
99 | D. Lenght of line. Obviously different font sizes will take up more or | |
100 | less room. This option will allow you to alter the length of individual | |
101 | lines returned by DeskTao to get eye-pleasing results. | |
102 | ||
103 | E. Text alignment, as I wrote above, if using centering than choose a | |
104 | monospace font for best results. If alignment ever gets built into | |
105 | gdesklets i'll change this! | |
106 | ||
107 | 5. The Future | |
108 | ------------------------ | |
109 | Suggestions welcome! |