wxpoem.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. wxPoem 1.0
  2. ----------
  3. by Julian Smart
  4. ---------------
  5. Fancy a little intellectual stimulation after long hours spent staring
  6. at spreadsheets or reports? Does your brain long for something a little
  7. more fulfilling than Tetris or fiddling with the WIN.INI file? Then you
  8. could go out and buy a poetry book... or alternatively, if you just
  9. can't drag yourself away from the screen, click on the wxPoem icon.
  10. wxPoem is a simple Windows application which picks poems from a file at
  11. random, or finds poems according to a string criterion, and formats them
  12. nicely in a window. A displayed poem can be copied to the Windows clipboard
  13. ready for inclusion in that more imaginative report...
  14. It's small, it's free and it's totally harmless, so far as I know.
  15. No responsibility accepted, though, for any problems it might cause with
  16. your setup.
  17. wxPoem was converted to use the wxWindows toolkit, from the original
  18. WinPoem which received a favourable review from Windows Shareware 500.
  19. Since it now uses wxWindows, wxPoem may be compiled on a variety
  20. of platforms such as X (XView or Motif), Windows and NT.
  21. Files
  22. -----
  23. The main data file is winpoem.dat, and an index file winpoem.idx is
  24. supplied or can be (re)built by deleting winpoem.idx and rerunning
  25. wxPoem. Source code is also provided in source.zip, but wxWindows is
  26. required to build it. The original WinPoem is much leaner (40K
  27. instead of 400K!) and can be compiled under Windows without wxWindows.
  28. Installation
  29. ------------
  30. Windows
  31. =======
  32. Copy ctl3dv2.dll to windows\system, and delete the original
  33. ctl3dv2.dll or wxPoem will not run.
  34. wxPoem can be put in the Startup folder in the Program Manager, so that
  35. a random poem will pop up every time Windows is run.
  36. UNIX
  37. ====
  38. wxPoem comes in Open Look and Motif versions for the Sun, and a
  39. Linux Open Look version. For other platforms, you will need to
  40. recompile the source.
  41. Use
  42. ---
  43. Simply run the program, and a random poem will be displayed.
  44. You can optionally give a filename on the command line, without a suffix
  45. (e.g. winpoem).
  46. The simplest way of operating wxPoem is to keep pressing the space bar
  47. for new poems (or pages for multi-page poems).
  48. Clicking the right mouse button (or selecting the wxPoem Options menu
  49. item from the system menu) gives a choice of the following facilities:
  50. Next poem/page (Page down) Display next poem (or next page)
  51. Previous page (Page up) Display previous page (multi-line poems only)
  52. Search (S) Allows user to enter a search string
  53. Next match (N) Gives next search match
  54. Copy to clipboard Allows poems to be pasted into other applications
  55. Bigger text Increases text size
  56. Smaller text Decreases text size
  57. About wxPoem About wxPoem
  58. Exit (Esc) Quit wxPoem
  59. When wxPoem is closed, the font, text height and window position are
  60. remembered (stored in WIN.INI) for next time. Under X, the values
  61. are not written (since they are stored in .Xdefaults), so you may
  62. want to edit the following resources by hand:
  63. wxPoem.X ; X position
  64. wxPoem.Y ; Y position
  65. wxPoem.FontSize ; Font size in points (default 12)
  66. The data file
  67. -------------
  68. The winpoem.dat file contains poems separated by a #, with optional
  69. @ codes denoting title (@T) author (@A) and page break (@P). Any
  70. unrecognized codes will cause the rest of the line to be ignored, so
  71. the user can add lines (e.g. @S for subject) which will be searched on but
  72. not displayed.
  73. The data file contains a mixture of 20th century and earlier poetry,
  74. subject to copyright constraints. Apologies if any copyrights have
  75. inadvertently been infringed, though I have tried to avoid it.
  76. Implementation
  77. --------------
  78. The original WinPoem program was my `Windows learning application', i.e.
  79. a vehicle for getting stuck into Windows programming, whilst (possibly)
  80. affording others a modicum of amusement. Therefore the code is pretty
  81. ugly. So don't look if you're squeamish!
  82. License
  83. -------
  84. Copyright Julian Smart, released into the public domain, October 1994.
  85. Julian Smart
  86. Artificial Intelligence Applications Institute
  87. University of Edinburgh
  88. 80 South Bridge
  89. Einburgh
  90. EH1 1HN
  91. J.Smart@ed.ac.uk