rwdeliza 0.03

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. data/ElizaData/database/db.1 +7015 -0
  2. data/ElizaData/database/db.10 +7001 -0
  3. data/ElizaData/database/db.11 +7001 -0
  4. data/ElizaData/database/db.12 +7003 -0
  5. data/ElizaData/database/db.13 +7003 -0
  6. data/ElizaData/database/db.14 +7008 -0
  7. data/ElizaData/database/db.15 +7001 -0
  8. data/ElizaData/database/db.16 +7001 -0
  9. data/ElizaData/database/db.17 +7001 -0
  10. data/ElizaData/database/db.18 +7001 -0
  11. data/ElizaData/database/db.19 +7001 -0
  12. data/ElizaData/database/db.2 +7001 -0
  13. data/ElizaData/database/db.20 +5467 -0
  14. data/ElizaData/database/db.3 +7001 -0
  15. data/ElizaData/database/db.4 +7001 -0
  16. data/ElizaData/database/db.5 +7001 -0
  17. data/ElizaData/database/db.6 +7001 -0
  18. data/ElizaData/database/db.7 +7001 -0
  19. data/ElizaData/database/db.8 +7001 -0
  20. data/ElizaData/database/db.9 +7001 -0
  21. data/ElizaData/responses/hello.res +1 -0
  22. data/ElizaData/responses/i_agree.res +1 -0
  23. data/ElizaData/responses/i_am_listening_to_you.res +1 -0
  24. data/ElizaData/responses/please_explain.res +1 -0
  25. data/ElizaData/responses/thank_you.res +1 -0
  26. data/ElizaData/tiny.dict +211 -0
  27. data/ElizaData/words/adjectives1.words +906 -0
  28. data/ElizaData/words/adjectives2w.words +1 -0
  29. data/ElizaData/words/noun0.words +15 -0
  30. data/ElizaData/words/noun1.words +1391 -0
  31. data/ElizaData/words/noun2.words +1924 -0
  32. data/ElizaData/words/noun4.words +330 -0
  33. data/ElizaData/words/pronoun1.words +6 -0
  34. data/ElizaData/words/verb4.words +350 -0
  35. data/ElizaData/words/verb42.words +391 -0
  36. data/ElizaData/words/verb42w.words +1 -0
  37. data/ElizaData/words/verb43.words +402 -0
  38. data/ElizaData/words/verb43w.words +1 -0
  39. data/ElizaData/words/verb45.words +452 -0
  40. data/ElizaData/words/verb4w.words +1 -0
  41. data/ElizaData/words/verb5.words +13 -0
  42. data/ElizaData/words/verb61.words +35 -0
  43. data/ElizaData/words/verb62.words +41 -0
  44. data/ElizaData/words/verb83.words +17 -0
  45. data/Readme.txt +462 -0
  46. data/bin/rwdeliza +19 -0
  47. data/code/01rwdcore/01rwdcore.rb +29 -0
  48. data/code/01rwdcore/02helptexthashbegin.rb +4 -0
  49. data/code/01rwdcore/03helptexthash.rb +23 -0
  50. data/code/01rwdcore/04helptextend.rb +6 -0
  51. data/code/01rwdcore/jumplinkcommand.rb +26 -0
  52. data/code/01rwdcore/openhelpwindow.rb +31 -0
  53. data/code/01rwdcore/returntomain.rb +10 -0
  54. data/code/01rwdcore/rundocuments.rb +10 -0
  55. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  56. data/code/01rwdcore/runhelpabout.rb +10 -0
  57. data/code/01rwdcore/runopentinkerdocument.rb +7 -0
  58. data/code/01rwdcore/rwdtinkerversion.rb +22 -0
  59. data/code/01rwdcore/rwdwindowreturn.rb +9 -0
  60. data/code/01rwdcore/selectiontab.rb +9 -0
  61. data/code/01rwdcore/setuphelpaboutoptions.rb +13 -0
  62. data/code/01rwdcore/setuptinkerdocuments.rb +6 -0
  63. data/code/01rwdcore/test_cases.rb +109 -0
  64. data/code/01rwdcore/test_harness.rb +13 -0
  65. data/code/01rwdcore/uploadreturns.rb +62 -0
  66. data/code/dd0viewphoto/dd0viewphoto.rb +3 -0
  67. data/code/superant.com.rwdeliza/0uninstallapplet.rb +10 -0
  68. data/code/superant.com.rwdeliza/eliza01.rb +45 -0
  69. data/code/superant.com.rwdeliza/helptexthashrwdeliza.rb +39 -0
  70. data/code/superant.com.rwdeliza/openhelpwindowrwdeliza.rb +23 -0
  71. data/code/superant.com.rwdeliza/runrwdshellwindow.rb +12 -0
  72. data/code/superant.com.rwdeliza/rwdtinkerversion.rb +10 -0
  73. data/code/superant.com.rwdeliza/tagsentence.rb +39 -0
  74. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +19 -0
  75. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +61 -0
  76. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +240 -0
  77. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +34 -0
  78. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +20 -0
  79. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
  80. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +53 -0
  81. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +12 -0
  82. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +27 -0
  83. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +22 -0
  84. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -0
  85. data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
  86. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +19 -0
  87. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +38 -0
  88. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
  89. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +46 -0
  90. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
  91. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  92. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +15 -0
  93. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +13 -0
  94. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -0
  95. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +22 -0
  96. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +24 -0
  97. data/code/superant.com.words/dictlookup.rb +20 -0
  98. data/code/superant.com.words/runfortunewindow.rb +14 -0
  99. data/code/superant.com.words/runrwdwordsbackwindow.rb +10 -0
  100. data/code/superant.com.words/runrwdwordsversion.rb +14 -0
  101. data/code/superant.com.words/rwdtinkerversion.rb +10 -0
  102. data/code/zz0applicationend/zz0end.rb +4 -0
  103. data/configuration/language.dist +8 -0
  104. data/configuration/rwdapplicationidentity.dist +3 -0
  105. data/configuration/rwdtinker.dist +18 -0
  106. data/configuration/rwdweliza-0.03.dist +31 -0
  107. data/configuration/tinkerwin2variables.dist +17 -0
  108. data/gui/00coreguibegin/applicationguitop.rwd +4 -0
  109. data/gui/frontwindow0/cc0openphoto.rwd +22 -0
  110. data/gui/frontwindowselections/00selectiontabbegin.rwd +11 -0
  111. data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
  112. data/gui/frontwindowselections/wwselectionend.rwd +3 -0
  113. data/gui/frontwindowtdocuments/00documentbegin.rwd +6 -0
  114. data/gui/frontwindowtdocuments/tinkerdocuments.rwd +14 -0
  115. data/gui/frontwindowtdocuments/zzdocumentend.rwd +8 -0
  116. data/gui/helpaboutbegin/zzzrwdlasttab.rwd +6 -0
  117. data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
  118. data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +15 -0
  119. data/gui/helpaboutzend/helpscreenend.rwd +3 -0
  120. data/gui/helpaboutzend/zhelpscreenstart2.rwd +3 -0
  121. data/gui/helpaboutzend/zzzzhelpabout2.rwd +15 -0
  122. data/gui/helpaboutzend/zzzzhelpscreen2end.rwd +3 -0
  123. data/gui/tinkerbackwindows/superant.com.refreshwindow/fortunerefreshwindowtwo.rwd +9 -0
  124. data/gui/tinkerbackwindows/superant.com.rwdeliza/1appname.rwd +5 -0
  125. data/gui/tinkerbackwindows/superant.com.rwdeliza/1eliza.rwd +21 -0
  126. data/gui/tinkerbackwindows/superant.com.rwdeliza/4sentance.rwd +21 -0
  127. data/gui/tinkerbackwindows/superant.com.rwdeliza/98jumplinkcommands.rwd +17 -0
  128. data/gui/tinkerbackwindows/superant.com.rwdeliza/zbackend.rwd +6 -0
  129. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/1appname.rwd +5 -0
  130. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/20downloadftp.rwd +45 -0
  131. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +29 -0
  132. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/70rwddiagnostics.rwd +16 -0
  133. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +18 -0
  134. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/zvbackend.rwd +6 -0
  135. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -0
  136. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +41 -0
  137. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
  138. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -0
  139. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +30 -0
  140. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +29 -0
  141. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  142. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -0
  143. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
  144. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +4 -0
  145. data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -0
  146. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +17 -0
  147. data/gui/tinkerbackwindows/superant.com.words/1appname.rwd +4 -0
  148. data/gui/tinkerbackwindows/superant.com.words/1dictionary.rwd +19 -0
  149. data/gui/tinkerbackwindows/superant.com.words/3rwdfortune.rwd +14 -0
  150. data/gui/tinkerbackwindows/superant.com.words/77jumplinkcommands.rwd +17 -0
  151. data/gui/tinkerbackwindows/superant.com.words/z9end.rwd +6 -0
  152. data/gui/zzcoreguiend/yy9rwdend.rwd +4 -0
  153. data/init.rb +277 -0
  154. data/installed/rwdweliza-0.03.inf +24 -0
  155. data/installed/temp.rb +1 -0
  156. data/lang/en/rwdcore/languagefile.rb +58 -0
  157. data/lang/es/rwdcore/languagefile-es.rb +62 -0
  158. data/lang/fr/rwdcore/languagefile.rb +64 -0
  159. data/lang/jp/rwdcore/languagefile.rb +72 -0
  160. data/lang/nl/rwdcore/languagefile.rb +75 -0
  161. data/lib/dict.rb +438 -0
  162. data/lib/druida.rb +499 -0
  163. data/lib/hashslice.rb +71 -0
  164. data/lib/linguistics.rb +360 -0
  165. data/lib/linguistics/en.rb +1601 -0
  166. data/lib/linguistics/en/infinitive.rb +1148 -0
  167. data/lib/linguistics/en/linkparser.rb +142 -0
  168. data/lib/linguistics/en/wordnet.rb +253 -0
  169. data/lib/linguistics/iso639.rb +456 -0
  170. data/lib/linkparser.rb +461 -0
  171. data/lib/linkparser/connection.rb +81 -0
  172. data/lib/linkparser/connector.rb +201 -0
  173. data/lib/linkparser/definition.rb +225 -0
  174. data/lib/linkparser/dictionary.rb +208 -0
  175. data/lib/linkparser/linkage.rb +185 -0
  176. data/lib/linkparser/log.rb +39 -0
  177. data/lib/linkparser/sentence.rb +79 -0
  178. data/lib/linkparser/utils.rb +540 -0
  179. data/lib/linkparser/word.rb +92 -0
  180. data/lib/rconftool.rb +380 -0
  181. data/lib/rwd/browser.rb +123 -0
  182. data/lib/rwd/ftools.rb +174 -0
  183. data/lib/rwd/mime.rb +328 -0
  184. data/lib/rwd/net.rb +866 -0
  185. data/lib/rwd/ruby.rb +889 -0
  186. data/lib/rwd/rwd.rb +1942 -0
  187. data/lib/rwd/sgml.rb +236 -0
  188. data/lib/rwd/thread.rb +63 -0
  189. data/lib/rwd/tree.rb +371 -0
  190. data/lib/rwd/xml.rb +101 -0
  191. data/lib/zip/ioextras.rb +114 -0
  192. data/lib/zip/stdrubyext.rb +111 -0
  193. data/lib/zip/tempfile_bugfixed.rb +195 -0
  194. data/lib/zip/zip.rb +1378 -0
  195. data/lib/zip/zipfilesystem.rb +558 -0
  196. data/lib/zip/ziprequire.rb +61 -0
  197. data/rwd_files/HowTo_Eliza.txt +195 -0
  198. data/rwd_files/HowTo_Tinker.txt +471 -0
  199. data/rwd_files/HowTo_TinkerWin2.txt +202 -0
  200. data/rwd_files/Readme.txt +57 -0
  201. data/rwd_files/RubyWebDialogs.html +6 -0
  202. data/rwd_files/favicon.ico +0 -0
  203. data/rwd_files/rdoc-style.css +175 -0
  204. data/rwd_files/rwdapplications.html +54 -0
  205. data/rwd_files/tinker.png +0 -0
  206. data/rwdconfig.dist +21 -0
  207. data/rwdeliza.rb +1 -0
  208. data/tests/RubyGauge.rb +179 -0
  209. data/tests/checkdepends.sh +4 -0
  210. data/tests/cleancnf.sh +6 -0
  211. data/tests/makedist-rwdweliza.rb +56 -0
  212. data/tests/makedist.rb +66 -0
  213. data/tests/rdep.rb +354 -0
  214. data/tests/totranslate.lang +93 -0
  215. data/zips/rwdwaddresses-1.05.zip +0 -0
  216. data/zips/rwdwcalc-0.61.zip +0 -0
  217. data/zips/rwdwgutenberg-0.09.zip +0 -0
  218. data/zips/rwdwschedule-1.04.zip +0 -0
  219. data/zips/rwdwshell-1.04.zip +0 -0
  220. data/zips/temp.rb +1 -0
  221. data/zips/wrubyslippers-1.06.zip +0 -0
  222. metadata +282 -0
@@ -0,0 +1,61 @@
1
+ require 'zip/zip'
2
+
3
+ class ZipList
4
+ def initialize(zipFileList)
5
+ @zipFileList = zipFileList
6
+ end
7
+
8
+ def get_input_stream(entry, &aProc)
9
+ @zipFileList.each {
10
+ |zfName|
11
+ Zip::ZipFile.open(zfName) {
12
+ |zf|
13
+ begin
14
+ return zf.get_input_stream(entry, &aProc)
15
+ rescue Errno::ENOENT
16
+ end
17
+ }
18
+ }
19
+ raise Errno::ENOENT,
20
+ "No matching entry found in zip files '#{@zipFileList.join(', ')}' "+
21
+ " for '#{entry}'"
22
+ end
23
+ end
24
+
25
+
26
+ module Kernel
27
+ alias :oldRequire :require
28
+
29
+ def require(moduleName)
30
+ zip_require(moduleName) || oldRequire(moduleName)
31
+ end
32
+
33
+ def zip_require(moduleName)
34
+ return false if already_loaded?(moduleName)
35
+ get_resource(ensure_rb_extension(moduleName)) {
36
+ |zis|
37
+ eval(zis.read); $" << moduleName
38
+ }
39
+ return true
40
+ rescue Errno::ENOENT => ex
41
+ return false
42
+ end
43
+
44
+ def get_resource(resourceName, &aProc)
45
+ zl = ZipList.new($:.grep(/\.zip$/))
46
+ zl.get_input_stream(resourceName, &aProc)
47
+ end
48
+
49
+ def already_loaded?(moduleName)
50
+ moduleRE = Regexp.new("^"+moduleName+"(\.rb|\.so|\.dll|\.o)?$")
51
+ $".detect { |e| e =~ moduleRE } != nil
52
+ end
53
+
54
+ def ensure_rb_extension(aString)
55
+ aString.sub(/(\.rb)?$/i, ".rb")
56
+ end
57
+ end
58
+
59
+ # Copyright (C) 2002 Thomas Sondergaard
60
+ # rubyzip is free software; you can redistribute it and/or
61
+ # modify it under the terms of the ruby license.
@@ -0,0 +1,195 @@
1
+ = RwdEliza program for RwdTinker using RubyWebDialogs
2
+
3
+ RwdEliza is a AI application to simulate dialogs between humans and people
4
+
5
+ == Usage
6
+
7
+
8
+ The GUI interface used is RubyWebDialogs
9
+
10
+
11
+ Start the program by typing
12
+ ruby init.rb
13
+
14
+ Then point your web browser to:
15
+ http://localhost:7705/
16
+
17
+ RwdEliza is a toy program
18
+ to test sentence production by computer
19
+
20
+ This program is just starting to be developed
21
+
22
+ at this version '0.01' it is just responding randomly
23
+
24
+ The plan is to parse input sentences and general
25
+ responses that are learned over time
26
+
27
+ The 'Sentence' tab can do simple parsing of simple sentences
28
+
29
+ == Installing Applets
30
+
31
+ click on the "Selection Panel"
32
+ click on Rwdtinker Back Window
33
+
34
+ You can download an applet created by someone else
35
+ put the file in the zips directory
36
+
37
+ click on the "list zips" tab
38
+ click on "list applets available for installing"
39
+
40
+ chose the applet you want
41
+ click on "install applet"
42
+ If all goes well the applet should be installed.
43
+ You will need to restart rwdtinker to see the new screens
44
+
45
+
46
+ == Changing configuration file
47
+
48
+ click on "Edit Configuration"
49
+ You can view the configuration file
50
+
51
+ You can edit the configuration
52
+
53
+ Remember to reload the configuration variables if you want your
54
+ changes used.
55
+
56
+
57
+
58
+
59
+
60
+ == Documents
61
+
62
+
63
+ when you click on a document name, the document should pop up in a
64
+ browser window, or in another browser tab.
65
+
66
+ To exit, press the x inside the browser window.
67
+
68
+ == To add context sensitive help
69
+
70
+ You need to add a hash file that just needs to contain
71
+ Helptext.update( :myapplet_generalhelp => " This is the general help
72
+ You can add help text hear")
73
+
74
+ And you need to add a help run script that will call runhelpwindow
75
+ This should have a method that includes:
76
+ setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
77
+
78
+ if @rwd_tab == "gemservescan"
79
+ $help_topic = "gemdocs_help"
80
+ end
81
+ $helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
82
+ if @rwd_window != "rwdtinkerhelpwindow"
83
+ $previouswindow = @rwd_window
84
+ $previoustab = @rwd_tab
85
+ end
86
+ runhelpwindow
87
+ end
88
+
89
+ == Languages
90
+
91
+
92
+ You can add tranlations in the lang subdirectory
93
+ You change the $lang constant in Tinker config file in the configuration directory
94
+ You can see one translation on the install applet tab, after you have installed and applet
95
+
96
+ == Using over a Network
97
+
98
+ To serve the application over your local LAN,change the last line in the
99
+ init.rb file to something like:
100
+ RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
101
+ Then you should be able to login at: http://yourhostname:8080
102
+
103
+ You have to authorize yourself. The .rwuids example is a string with
104
+ the name of the authorization file, relative to the home directory
105
+ of the user that started the service. This file has to be in the form of:
106
+
107
+ user1 = password
108
+ user2 = pass phrase
109
+
110
+ Thus the file .rwduids might contain:
111
+
112
+ erik = secret
113
+
114
+ == Requirements:
115
+ RubyWebDialogs - I am using 0.1.2
116
+ This package you downloaded should have a runtime version of
117
+ the needed rubywebdialog files
118
+
119
+ Ruby I am using version 1.8.2
120
+
121
+ I have tested this under Linux-Debian kernel 2.6.9
122
+
123
+ = Operation:
124
+ The code files reside in the code directory and are combined before
125
+ the main Class is loaded
126
+
127
+ The rwd files in gui are combined before the gui is activated
128
+
129
+ Translated text reside in the lang directory
130
+
131
+ == Installing:
132
+
133
+ untar the file
134
+ tar zxvf rwdtinker-x.y.tar.gz
135
+ then cd to the directory
136
+ cd rwdshell-x.y
137
+ then start the init.rb program file
138
+ ruby init.rb
139
+ Then point your browser at http://localhost:7705
140
+ or where it tells you.
141
+ Trouble shooting:
142
+
143
+ If the program is not working, try looking at the ev subdirectory. That is where
144
+ the runtime of rubywebdialogs are.
145
+
146
+ for long term installation, I would suggest putting most files in a lib directory
147
+ like /usr/lib/rwdshell
148
+ then make a writable directory the local directory for command files to be written
149
+ like ~/rwdshell
150
+
151
+
152
+ Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
153
+
154
+ Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
155
+
156
+ RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
157
+
158
+ == Credits
159
+
160
+ Thanks go to:
161
+
162
+ * Matz, for creating Ruby in the first place.
163
+ * Erik, for creating RubyWebDialogs.
164
+ * Charlotte, my wife for coming up for the name Tinker.
165
+
166
+ == License
167
+
168
+ rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
169
+ under the terms of the GPL licence:
170
+
171
+ == Contact
172
+ For more information see:
173
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
174
+
175
+
176
+ For more information about RubyWebDialogs see:
177
+ http://www.erikveen.dds.nl/rubywebdialogs/index.html
178
+
179
+ Thanks, Steven Gibson
180
+
181
+ == Changelog
182
+ Version 0.03
183
+ upgraded to work with rwdtinker 1.75
184
+ still not functional
185
+ includes sentance structure tab
186
+ added word lookup
187
+ added Druida quote reader - like Unix fortunes
188
+
189
+ version 0.02
190
+ upgraded to work with rwdtinker 1.69
191
+ just beginning, not useful
192
+
193
+ Version 0.01
194
+ first public version released
195
+ designed for rwdtinker version 1.66
@@ -0,0 +1,471 @@
1
+ = RwdTinker framework for RubyWebDialogs
2
+
3
+ RwdTinker is a web brower interface to and system for developing programs
4
+
5
+ == Usage
6
+
7
+ How to Use the Tinker framework Program (rwdtinker)
8
+
9
+ 1. stand alone application
10
+ 2. framework for building applications
11
+ 3. Open brower windows with html documents
12
+
13
+ The GUI interface used is RubyWebDialogs
14
+
15
+
16
+ Start the program by typing
17
+ ruby init.rb
18
+
19
+ Then point your web browser to:
20
+ http://localhost:7705/
21
+
22
+ == Viewing installed Applets:
23
+
24
+ Go to "List Scripts" tab
25
+
26
+ You can get a list of all installed applets by clicking the listfiles button
27
+
28
+ To see the text of a install file
29
+ Type in the name of the file you want.
30
+
31
+ type it without the inf ending
32
+ rwdapplet-0.1
33
+
34
+ Then click the "View Installed File" button
35
+
36
+ If it finds the file it will open it. It displays the text the search box.
37
+
38
+ You can uninstall applets on this screen
39
+
40
+ == Installing Applets
41
+
42
+ click on the "Selection Panel"
43
+ click on Rwdtinker Back Window
44
+
45
+ You can download an applet created by someone else
46
+ put the file in the zips directory
47
+
48
+ click on the "list zips" tab
49
+ click on "list applets available for installing"
50
+
51
+ chose the applet you want
52
+ click on "install applet"
53
+ If all goes well the applet should be installed.
54
+ You will need to restart rwdtinker to see the new screens
55
+
56
+
57
+ == Changing configuration file
58
+
59
+ click on "Edit Configuration"
60
+ You can view the configuration file
61
+
62
+ You can edit the configuration
63
+
64
+ Remember to reload the configuration variables if you want your
65
+ changes used.
66
+
67
+ == Manually installing applets
68
+
69
+ * unzip an applet
70
+
71
+ unzip the applet into the program directoy
72
+ unzip randomapplet.zip
73
+
74
+ This should place the needed files in the correct directories
75
+
76
+
77
+ == Creating Applets
78
+
79
+ To add code, commands and gui tabs
80
+
81
+ Move program files into a directory under the code directory.
82
+ Move gui files into a directory under the gui directory.
83
+ The gui directory name you create is important, because the gui
84
+ rwd file is built in alpha order by directory name
85
+
86
+
87
+ There are two ways to add applets to the directories.
88
+
89
+ Creating code
90
+
91
+
92
+ * Manually write code and gui files
93
+
94
+ The files go into your code directory
95
+ the filenames for code do not matter
96
+
97
+ The gui files go into your gui directory
98
+ The gui files need to be in order by name and end with .rwd
99
+
100
+
101
+
102
+ If you need a config file that goes in the configuration directory
103
+
104
+ internationalization and localization are helped by replacing the
105
+ gui files in the subdirectories under gui
106
+
107
+
108
+ == Documents
109
+
110
+
111
+ when you click on a document name, the document should pop up in a
112
+ browser window, or in another browser tab.
113
+
114
+ To exit, press the x inside the browser window.
115
+
116
+ == To add context sensitive help
117
+
118
+ You need to add a hash file that just needs to contain
119
+ Helptext.update( :myapplet_generalhelp => " This is the general help
120
+ You can add help text hear")
121
+
122
+ And you need to add a help run script that will call runhelpwindow
123
+ This should have a method that includes:
124
+ setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
125
+
126
+ if @rwd_tab == "gemservescan"
127
+ $help_topic = "gemdocs_help"
128
+ end
129
+ $helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
130
+ if @rwd_window != "rwdtinkerhelpwindow"
131
+ $previouswindow = @rwd_window
132
+ $previoustab = @rwd_tab
133
+ end
134
+ runhelpwindow
135
+ end
136
+
137
+ == Languages
138
+
139
+
140
+ You can add tranlations in the lang subdirectory
141
+ You change the $lang constant in Tinker config file in the configuration directory
142
+ You can see one translation on the install applet tab, after you have installed and applet
143
+
144
+ == Using over a Network
145
+
146
+ To serve the application over your local LAN,change the last line in the
147
+ init.rb file to something like:
148
+ RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
149
+ Then you should be able to login at: http://yourhostname:8080
150
+
151
+ You have to authorize yourself. The .rwuids example is a string with
152
+ the name of the authorization file, relative to the home directory
153
+ of the user that started the service. This file has to be in the form of:
154
+
155
+ user1 = password
156
+ user2 = pass phrase
157
+
158
+ Thus the file .rwduids might contain:
159
+
160
+ erik = secret
161
+
162
+ == Requirements:
163
+ RubyWebDialogs - I am using 0.1.2
164
+ This package you downloaded should have a runtime version of
165
+ the needed rubywebdialog files
166
+
167
+ Ruby I am using version 1.8.2
168
+
169
+ I have tested this under Linux-Debian kernel 2.6.9
170
+
171
+ = Operation:
172
+ The code files reside in the code directory and are combined before
173
+ the main Class is loaded
174
+
175
+ The rwd files in gui are combined before the gui is activated
176
+
177
+ Translated text reside in the lang directory
178
+
179
+ == Installing:
180
+
181
+ untar the file
182
+ tar zxvf rwdtinker-x.y.tar.gz
183
+ then cd to the directory
184
+ cd rwdshell-x.y
185
+ then start the init.rb program file
186
+ ruby init.rb
187
+ Then point your browser at http://localhost:7705
188
+ or where it tells you.
189
+ Trouble shooting:
190
+
191
+ If the program is not working, try looking at the ev subdirectory. That is where
192
+ the runtime of rubywebdialogs are.
193
+
194
+ for long term installation, I would suggest putting most files in a lib directory
195
+ like /usr/lib/rwdshell
196
+ then make a writable directory the local directory for command files to be written
197
+ like ~/rwdshell
198
+
199
+
200
+ Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
201
+
202
+ Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
203
+
204
+ RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
205
+
206
+ == Credits
207
+
208
+ Thanks go to:
209
+
210
+ * Matz, for creating Ruby in the first place.
211
+ * Erik, for creating RubyWebDialogs.
212
+ * Charlotte, my wife for coming up for the name Tinker.
213
+
214
+ == License
215
+
216
+ rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
217
+ under the terms of the GPL licence:
218
+
219
+ == Contact
220
+ For more information see:
221
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
222
+
223
+
224
+ For more information about RubyWebDialogs see:
225
+ http://www.erikveen.dds.nl/rubywebdialogs/index.html
226
+
227
+ Thanks, Steven Gibson
228
+
229
+ == Changelog
230
+ Version 1.76
231
+ Move rwd code files into lib directory - bug - 21886
232
+ change tab name list applets - bug - 21864
233
+ change extra folder to be lib folder - bug 21887
234
+ remove duplicate intall applet code - bug 21885
235
+ On Menu tab/Selection Tab - add help button - bug 21884
236
+ clean up directory structure in gui directory - bug 21882
237
+
238
+ Version 1.75
239
+ change rwd.rb to use UTF-8 for web pages
240
+ add language load for applets
241
+
242
+ Version 1.74
243
+ remove remote control from help
244
+ more dependable gui loading for applets
245
+
246
+ Version 1.73
247
+ more debug info in initiateapplet
248
+ remove gutenberg lang translations
249
+ correct gui building error recovery
250
+
251
+ Version 1.72
252
+ additional cleanup for live applet add and removal
253
+ after applet removal focus returns to proper tab
254
+ error messages are reduced unless $DEBUG=true
255
+
256
+ Version 1.70
257
+ major update to applet loading routines
258
+ a properly prepared applet should be loadable and unloadable live with not restarting
259
+ localization is not yet updated in live applet loading
260
+ remove network line debugging output
261
+
262
+ Version 1.69
263
+ More work on translations - Spanish almost done
264
+ removed remote control
265
+
266
+ Version 1.68
267
+ updated to newest Ruby webdialogs
268
+
269
+ Version 1.67
270
+ Add html for help
271
+
272
+ Version 1.66
273
+ Fixed directory layout
274
+ increased size of config edit screen
275
+
276
+ Version 1.65
277
+ Changed documents listing screen - now using hash
278
+ Changed helpabout screen - now using hash
279
+ added more lines for config edit
280
+ added help about to back window
281
+
282
+ Version 1.64
283
+ fixed jump with no location
284
+
285
+ Version 1.63
286
+ changed handling of application name returned
287
+ added jump seletion options
288
+ added some unit tests
289
+
290
+ version 1.62
291
+ improve distro release script
292
+ code cleanup
293
+ removed redundent network code
294
+ change handling of window and tab jumps
295
+
296
+ version 1.61
297
+ add in test harness
298
+ rwdtinkerwin2 help about removed
299
+ load main config file in init.rb
300
+
301
+ version 1.60
302
+ add rwdapplication info to diagnostic
303
+ turn rescue on in diagnostic upload
304
+
305
+ version 1.59
306
+ removed rwdtinkerwin2 inf file
307
+ refactored diagnotic page - one button to see all information
308
+ added bug report upload to diagnostic page
309
+
310
+ version 1.58
311
+ check for zlib
312
+ check for files to delete
313
+
314
+ version 1.57
315
+ added rconftool use to update configuration files
316
+ changed applets remove to not used external rm
317
+
318
+ version 1.56
319
+ refactored gui files to load without intermediate files
320
+ refactored code files to load without intermediate files
321
+
322
+ version 1.55
323
+ refactored language files to load without intermediate files
324
+ refactored language files to load without intermediate files
325
+
326
+ version 1.54
327
+ refactored rwdtinker applet installation tab - remote gem and local installs share menu buttons
328
+ corrected some program logic errors in remote control code including close socket
329
+
330
+ version 1.53
331
+ added search of Gems repository for rwdtinker gems
332
+ download and install of Gems
333
+
334
+ version 1.52
335
+ added function to install applets from gem directory
336
+
337
+ version 1.51
338
+ changed return to main
339
+ changed configuration of remote ports
340
+ updated context sensitive help
341
+
342
+ version 1.50
343
+ changed unzip applet to be internal code - no exec to unzip program
344
+ changed order of tabs on back window - list applets now first
345
+ added rwdwcalc applet in to zips directory
346
+ changed width of text fields with help from RubyWebDialogs author
347
+ changed listing of help options, vertical instead of horizontal
348
+
349
+ version 1.49
350
+ added demon function for remote queries
351
+ startup application on first available port
352
+
353
+ version 1.48
354
+ fix in context sensitive help so that applets can use it better
355
+
356
+ version 1.47
357
+ change to context sensitive help
358
+
359
+ version 1.46
360
+ more work on context help
361
+ window calls point to tab as well as windows
362
+ help added help buttons on Document, Selection, View Applet, tabs
363
+
364
+ version 1.45
365
+ first steps toward context sensitive help
366
+ added help button on main window/tab
367
+
368
+ version 1.44
369
+ updated directory structure - refactored gui files
370
+ Changed gui directory names - more like Java package titles
371
+
372
+ version 1.43
373
+ changed setup variables file for live changes
374
+ added editing and reloading of config file
375
+ added unzip filename to config file
376
+
377
+ version 1.42
378
+ update for live update system
379
+ update applets for live update
380
+ code file name cleanup
381
+
382
+ version 1.41
383
+ l10n work es,nl, jp
384
+ separated out languge.cnf
385
+ added zip applets refreshacpi, rwdcalc
386
+
387
+ version 1.40
388
+ removed extra lines from init.rb
389
+ fixed help second window
390
+ added some tranlations for Spanish
391
+ More work on l10n
392
+
393
+ version 1.3
394
+ refactored gui files to do easier i10n
395
+ removed lang directories under gui
396
+ added lang files under lang dir
397
+ removed redundant code files left from moving applet handling to back window
398
+ removed zipped applets not yet refactored
399
+
400
+ version 1.24
401
+ added internet usage instructions to HowTo_Tinker.txt
402
+ removed HowTo_Tinker.html
403
+ added panels for Helpabout
404
+ changed photo logo tab to only have embedded picture, no button
405
+
406
+ version 1.23
407
+ moving diagnostic tab and applet handling tabs to second window
408
+ added selection panel tab to choose secondary windows.
409
+
410
+ version 1.21
411
+ changing version on help screen to be button
412
+ added version window
413
+ added diagnostic tab
414
+
415
+ version 1.2
416
+ added gemspec for creating a rwdtinker.gem
417
+ added rdoc comments
418
+ changed order on remove applets tab
419
+
420
+ version 1.1
421
+ changed order of elements on install applet tab
422
+ Add more i81n ablility - added lang directorys for language hash files
423
+ added in test file using WATIR stands for "Web Application Testing In Ruby,
424
+
425
+ version 1.0
426
+ Improved name selection in zips and applet screens
427
+ added rubyslippers applet and rwdrefreshacpi applets as zips
428
+
429
+ version 0.9
430
+ Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
431
+ updated RubyWebDialogs for people who do not have it installed
432
+ added rwdschedule applet as zip file
433
+
434
+ version 0.8
435
+ changed location of code files
436
+ only directory of code files needs to be added to inf file
437
+ changed location of gui files
438
+ only directory of gui files needs to be added to inf file
439
+ Added constants in conf file for code location and gui location
440
+ removed all zips not yt updated to new directory layout
441
+ change loading of conf files to not need intermediate file
442
+ and favicon.ico
443
+
444
+ version 0.7
445
+ moved changelog to HowTo_Tinker.html
446
+ copied english gui text to the dirs I think we should translate to
447
+ update backup zip files to newest versions
448
+ upgraded the ev directory - for those who don't have RubyWebDialogs
449
+
450
+ version 0.6
451
+ updated version number
452
+ changed merge name to rwdtinker.rb
453
+
454
+ version 0.4
455
+ added zip listing and installing - Linux only
456
+
457
+ Version 0,3
458
+ changed name to Tinker
459
+
460
+ Version 0.2
461
+ added some i18n directories for the gui files
462
+
463
+ Version 0.1
464
+ first public version released
465
+ includes document screen
466
+ Open Photo screen
467
+ included configuration directory
468
+ zips directories
469
+ installed directory
470
+ installed applet lister
471
+