rwdgutenberg 0.07 → 0.08

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/Books/Mariposa.gut +0 -0
  2. data/Books/Shannon.gut +0 -0
  3. data/Books/marip10.txt +0 -0
  4. data/Readme.txt +3 -0
  5. data/bin/rwdgutenberg +0 -0
  6. data/code/01rwdcore/01rwdcore.rb +0 -0
  7. data/code/01rwdcore/02helptexthashbegin.rb +0 -0
  8. data/code/01rwdcore/03helptexthash.rb +20 -20
  9. data/code/01rwdcore/04helptextend.rb +0 -0
  10. data/code/01rwdcore/jumplinkcommand.rb +0 -0
  11. data/code/01rwdcore/openhelpwindow.rb +0 -0
  12. data/code/01rwdcore/returntomain.rb +0 -0
  13. data/code/01rwdcore/rundocuments.rb +0 -0
  14. data/code/01rwdcore/runeditconfiguration.rb +0 -0
  15. data/code/01rwdcore/runhelpabout.rb +0 -0
  16. data/code/01rwdcore/runopentinkerdocument.rb +0 -0
  17. data/code/01rwdcore/rwdtinkerversion.rb +0 -0
  18. data/code/01rwdcore/rwdwindowreturn.rb +0 -0
  19. data/code/01rwdcore/selectiontab.rb +0 -0
  20. data/code/01rwdcore/setuphelpaboutoptions.rb +0 -0
  21. data/code/01rwdcore/setuptinkerdocuments.rb +0 -0
  22. data/code/01rwdcore/test_cases.rb +0 -0
  23. data/code/01rwdcore/test_harness.rb +0 -0
  24. data/code/01rwdcore/uploadreturns.rb +0 -0
  25. data/code/dd0viewphoto/dd0viewphoto.rb +3 -0
  26. data/code/superant.com.gutenberg/changegutenbergname.rb +0 -0
  27. data/code/superant.com.gutenberg/clearbookscreendisplay.rb +0 -0
  28. data/code/superant.com.gutenberg/cleargutenbergfiles.rb +0 -0
  29. data/code/superant.com.gutenberg/cleargutrecordfiles.rb +0 -0
  30. data/code/superant.com.gutenberg/copyfilename.rb +0 -0
  31. data/code/superant.com.gutenberg/deletegutenbergrecord.rb +0 -0
  32. data/code/superant.com.gutenberg/gutenbergcreatefile.rb +0 -0
  33. data/code/superant.com.gutenberg/helptexthashrwdgutenberg.rb +0 -0
  34. data/code/superant.com.gutenberg/jumplinkupdate.rb +0 -0
  35. data/code/superant.com.gutenberg/listnamerecord.rb +0 -0
  36. data/code/superant.com.gutenberg/listtextfilesgutenberg.rb +0 -0
  37. data/code/superant.com.gutenberg/loadbookrecord.rb +0 -0
  38. data/code/superant.com.gutenberg/loadconfigurationrecord.rb +0 -0
  39. data/code/superant.com.gutenberg/loadconfigurationvariables.rb +0 -0
  40. data/code/superant.com.gutenberg/openhelpwindowgutenberg.rb +0 -0
  41. data/code/superant.com.gutenberg/returntomain.rb +0 -0
  42. data/code/superant.com.gutenberg/runbackwindow.rb +0 -0
  43. data/code/superant.com.gutenberg/rungutenbergwindow.rb +0 -0
  44. data/code/superant.com.gutenberg/rwdgutenbergbackward.rb +0 -0
  45. data/code/superant.com.gutenberg/rwdhypernotehelpabout.rb +0 -0
  46. data/code/superant.com.gutenberg/rwdtinkerversion.rb +0 -0
  47. data/code/superant.com.gutenberg/saveconfigurationrecord.rb +0 -0
  48. data/code/superant.com.gutenberg/savegutenbergrecord.rb +0 -0
  49. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +0 -0
  50. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -0
  51. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +0 -0
  52. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +0 -0
  53. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +0 -0
  54. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +0 -0
  55. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +0 -0
  56. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +0 -0
  57. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +0 -0
  58. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +0 -0
  59. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +0 -0
  60. data/code/superant.com.rwdtinkerbackwindow/network.rb +0 -0
  61. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +0 -0
  62. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +1 -5
  63. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +0 -0
  64. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +0 -0
  65. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +0 -0
  66. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +0 -0
  67. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +0 -0
  68. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +0 -0
  69. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +0 -0
  70. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +0 -0
  71. data/code/zz0applicationend/zz0end.rb +0 -0
  72. data/configuration/language.dist +2 -1
  73. data/configuration/rwdapplicationidentity.dist +1 -1
  74. data/configuration/rwdgutenberg.dist +3 -3
  75. data/configuration/rwdtinker.dist +3 -3
  76. data/configuration/tinkerwin2variables.dist +3 -3
  77. data/ev/browser.rb +24 -10
  78. data/ev/ftools.rb +23 -19
  79. data/ev/mime.rb +328 -0
  80. data/ev/net.rb +154 -38
  81. data/ev/ruby.rb +96 -26
  82. data/ev/rwd.rb +162 -89
  83. data/ev/sgml.rb +1 -1
  84. data/ev/thread.rb +0 -0
  85. data/ev/tree.rb +33 -5
  86. data/ev/xml.rb +97 -0
  87. data/extras/rconftool.rb +0 -0
  88. data/extras/zip/ioextras.rb +0 -0
  89. data/extras/zip/stdrubyext.rb +0 -0
  90. data/extras/zip/tempfile_bugfixed.rb +0 -0
  91. data/extras/zip/zip.rb +0 -0
  92. data/extras/zip/zipfilesystem.rb +0 -0
  93. data/extras/zip/ziprequire.rb +0 -0
  94. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  95. data/gui/frontwindow0/superant.com.gutenberg/10viewnote.rwd +0 -0
  96. data/gui/frontwindow0/superant.com.gutenberg/20listfiles.rwd +0 -0
  97. data/gui/frontwindow0/superant.com.gutenberg/30booklistutilities.rwd +0 -0
  98. data/gui/frontwindow0/superant.com.gutenberg/35displaytab.rwd +0 -0
  99. data/gui/frontwindow0/superant.com.gutenberg/36displaytab.rwd +0 -0
  100. data/gui/frontwindow0/superant.com.gutenberg/40rwdgutenberg.rwd +0 -0
  101. data/gui/frontwindow0/superant.com.gutenberg/40rwdgutenberghtml.rwd +0 -0
  102. data/gui/frontwindow0/superant.com.gutenberg/67viewconfiguration.rwd +0 -0
  103. data/gui/frontwindowselectionbegin/selectiontabbegin/00selectiontabbegin.rwd +1 -1
  104. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +2 -2
  105. data/gui/frontwindowselectionzend/viewselectionzend/wwselectionend.rwd +0 -0
  106. data/gui/frontwindowselectionzend/viewselectionzend/zzdocumentbegin.rwd +0 -0
  107. data/gui/frontwindowtdocuments/superant.com.documents/tinkerdocuments.rwd +2 -2
  108. data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzdocumentend.rwd +1 -1
  109. data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzrwdlasttab.rwd +0 -0
  110. data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd +1 -1
  111. data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd +2 -2
  112. data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +0 -0
  113. data/gui/helpaboutzend/superant.com.helpaboutend/zhelpscreenstart2.rwd +1 -1
  114. data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpabout2.rwd +2 -2
  115. data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpscreen2end.rwd +0 -0
  116. data/gui/tinkerbackwindows/superant.com.gutenberg/10viewnote.rwd +0 -0
  117. data/gui/tinkerbackwindows/superant.com.gutenberg/20listfiles.rwd +0 -0
  118. data/gui/tinkerbackwindows/superant.com.gutenberg/30booklistutilities.rwd +0 -0
  119. data/gui/tinkerbackwindows/superant.com.gutenberg/35displaytab.rwd +0 -0
  120. data/gui/tinkerbackwindows/superant.com.gutenberg/36displaytab.rwd +0 -0
  121. data/gui/tinkerbackwindows/superant.com.gutenberg/40rwdgutenberg.rwd +0 -0
  122. data/gui/tinkerbackwindows/superant.com.gutenberg/40rwdgutenberghtml.rwd +0 -0
  123. data/gui/tinkerbackwindows/superant.com.gutenberg/67viewconfiguration.rwd +0 -0
  124. data/gui/tinkerbackwindows/superant.com.gutendisplay/gutendisplayhtmlwindow.rwd +0 -0
  125. data/gui/tinkerbackwindows/superant.com.gutendisplay/gutendisplaywindow.rwd +0 -0
  126. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +1 -1
  127. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +9 -10
  128. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +5 -5
  129. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +9 -9
  130. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +2 -2
  131. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +1 -1
  132. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +3 -3
  133. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +0 -0
  134. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +1 -1
  135. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +0 -0
  136. data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +2 -2
  137. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +3 -3
  138. data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +0 -0
  139. data/init.rb +0 -0
  140. data/installed/gutenbergdata02.inf +5 -0
  141. data/installed/rwdwgutenberg-0.06.inf +7 -0
  142. data/lang/en/rwdcore/languagefile.rb +63 -15
  143. data/lang/es/rwdcore/languagefile-es.rb +67 -13
  144. data/lang/fr/rwdcore/languagefile.rb +64 -0
  145. data/lang/jp/rwdcore/languagefile.rb +69 -6
  146. data/lang/nl/rwdcore/languagefile.rb +62 -0
  147. data/lib/temp.rb +0 -0
  148. data/rwd_files/HowTo_Gutenberg.txt +0 -6
  149. data/rwd_files/HowTo_Tinker.txt +6 -0
  150. data/rwd_files/HowTo_TinkerWin2.txt +0 -0
  151. data/rwd_files/Readme.txt +0 -0
  152. data/rwd_files/RubyWebDialogs.html +0 -0
  153. data/rwd_files/favicon.ico +0 -0
  154. data/rwd_files/rdoc-style.css +0 -0
  155. data/rwd_files/rwdapplications.html +0 -0
  156. data/rwd_files/tinker.png +0 -0
  157. data/rwdconfig.dist +1 -1
  158. data/tests/checkdepends.sh +0 -0
  159. data/tests/cleancnf.sh +0 -0
  160. data/tests/makedist.rb +1 -1
  161. data/tests/rdep.rb +0 -0
  162. data/tests/totranslate.lang +0 -0
  163. data/zips/temp.rb +1 -0
  164. metadata +221 -204
  165. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +0 -96
  166. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +0 -33
  167. data/installed/rwdviewlogo-0.4.inf +0 -4
data/ev/tree.rb CHANGED
@@ -88,7 +88,7 @@ class TreeObject
88
88
  def inspect
89
89
  parent, children = @parent, @children
90
90
 
91
- @parent, @children = parent.id, children.collect{|obj| obj.id}
91
+ @parent, @children = parent.object_id, children.collect{|obj| obj.object_id}
92
92
 
93
93
  res = " " * (level-1) + "#{self.class}(#{@subtype}) #{super}"
94
94
 
@@ -96,6 +96,34 @@ class TreeObject
96
96
 
97
97
  res
98
98
  end
99
+
100
+ def previous(klass=[], skip=[])
101
+ klass = [klass].flatten
102
+ skip = [skip].flatten
103
+
104
+ po = @parent
105
+ return nil if po.nil?
106
+
107
+ ch = po.children
108
+ return nil if ch.nil?
109
+
110
+ n = ch.index(self)
111
+ return nil if n.nil?
112
+
113
+ res = nil
114
+ if klass.nil?
115
+ n -= 1
116
+ res = ch[n]
117
+ else
118
+ begin
119
+ n -= 1
120
+ res = ch[n]
121
+ end while (klass.empty? or klass.collect{|k| ch[n-1].kind_of?(k)}.sort.uniq == [true]) \
122
+ and (skip.empty? or skip.collect{|k| ch[n-1].kind_of?(k)}.sort.uniq == [false])
123
+ end
124
+
125
+ res
126
+ end
99
127
  end
100
128
 
101
129
  class Tree
@@ -138,7 +166,7 @@ class Tree
138
166
  end
139
167
 
140
168
  def self.location(url, form=Hash.new)
141
- s = HTTPClient.get(url, form)
169
+ s = HTTPClient.get(url, {}, form)
142
170
  s = "" if s.nil?
143
171
  new(s)
144
172
  end
@@ -155,7 +183,7 @@ class Tree
155
183
 
156
184
  tree = nil
157
185
 
158
- Dir.mkdirrec(dir)
186
+ File.mkpath(dir)
159
187
 
160
188
  if File.file?(file)
161
189
  @@mutex.synchronize do
@@ -227,7 +255,7 @@ class Tree
227
255
  end
228
256
 
229
257
  def markclosed
230
- ([self].concat @objects).each do |obj|
258
+ ([self] + @objects).each do |obj|
231
259
  obj.children.each_index do |i|
232
260
  co1 = obj.children[i]
233
261
  co2 = obj.children[i+1]
@@ -238,7 +266,7 @@ class Tree
238
266
  end
239
267
 
240
268
  def deletedummies
241
- ([self].concat @objects).each do |obj|
269
+ ([self] + @objects).each do |obj|
242
270
  obj.children.delete_if do |obj2|
243
271
  obj2.upordown == Dummy
244
272
  end
data/ev/xml.rb CHANGED
@@ -1,4 +1,101 @@
1
1
  require "ev/sgml"
2
2
 
3
+ class SGMLObject
4
+ def to_x(closetags=true)
5
+ res = ""
6
+
7
+ parsetree("prechildren_to_x", "postchildren_to_x", res, closetags)
8
+
9
+ res
10
+ end
11
+ end
12
+
13
+ class Text < SGMLObject
14
+ def prechildren_to_x(res, closetags)
15
+ res << @text.strip unless @text.strip.empty?
16
+ end
17
+ end
18
+
19
+ class Comment < SGMLObject
20
+ def prechildren_to_x(res, closetags)
21
+ res << "\n" if not previous([], [Text]).kind_of?(Comment)
22
+ lines = @text.gsub(/(<!--|-->)/, "").lf.split(/\n/)
23
+ if lines.length == 1
24
+ res << " "*(@level-1) + "<!-- " + lines[0].strip + " -->" + "\n"
25
+ else
26
+ res << " "*(@level-1) + "<!--" + "\n"
27
+ res << lines.collect{|s| " "*(@level-1) + s.strip}.delete_if{|s| s.compress.empty?}.join("\n")
28
+ res << "\n"
29
+ res << " "*(@level-1) + "-->" + "\n"
30
+ res << "\n"
31
+ end
32
+ end
33
+ end
34
+
35
+ class Special < SGMLObject
36
+ def prechildren_to_x(res, closetags)
37
+ res << " "*(@level-1) + @text.compress + "\n"
38
+ end
39
+ end
40
+
41
+ class Instruction < SGMLObject
42
+ def prechildren_to_x(res, closetags)
43
+ res << " "*(@level-1) + @text.compress + "\n"
44
+ end
45
+ end
46
+
47
+ class OpenTag < Tag
48
+ def prechildren_to_x(res, closetags)
49
+ a = [@subtype]
50
+
51
+ args = @args.dup
52
+ args.delete("id")
53
+ args.delete("name")
54
+ args = args.sort
55
+ args.unshift(["id", @args["id"]]) if @args.include?("id")
56
+ args.unshift(["name", @args["name"]]) if @args.include?("name")
57
+
58
+ args.each do |k, v|
59
+ if not v.include?("'")
60
+ a << "#{k}='#{v}'"
61
+ else
62
+ if not v.include?('"')
63
+ a << "#{k}=\"#{v}\""
64
+ else
65
+ a << "#{k}='#{v.gsub(/\'/, '"')}'"
66
+ end
67
+ end
68
+ end
69
+
70
+ if @children.length == 0 or (@children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.compress.empty?)
71
+ res << " "*(@level-1) + "<#{a.join(" ")}/>" + "\n"
72
+ else
73
+ if @children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.lf.split(/\n/).length == 1
74
+ res << " "*(@level-1) + "<#{a.join(" ")}>"
75
+ else
76
+ res << " "*(@level-1) + "<#{a.join(" ")}>" + "\n"
77
+ end
78
+ end
79
+ end
80
+
81
+ def postchildren_to_x(res, closetags)
82
+ if closetags
83
+ unless @children.length == 0 or (@children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.compress.empty?)
84
+ res << "\n" if @children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.lf.split(/\n/).length > 1
85
+ res << " "*(@level-1) unless @children.length == 1 and @children[0].kind_of?(Text) and @children[0].text.lf.split(/\n/).length == 1
86
+ res << "</#{@subtype}>"
87
+ res << "\n"
88
+ end
89
+ end
90
+ end
91
+ end
92
+
3
93
  class XML < SGML
94
+ def to_x(closetags=true)
95
+ res = ""
96
+
97
+ parsetree("prechildren_to_x", "postchildren_to_x", res, closetags)
98
+
99
+ res
100
+ end
4
101
  end
data/extras/rconftool.rb CHANGED
File without changes
File without changes
File without changes
File without changes
data/extras/zip/zip.rb CHANGED
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
1
  $rwdguivar=
2
2
  "<application>
3
- <window name=\"main\" title=\"RwdGutenberg - RubyWebDialogs\">
3
+ <window name=\"main\" title=\"RwdTinker - RubyWebDialogs\">
4
4
  <tabs>"
@@ -1,6 +1,6 @@
1
1
  $rwdguivar=
2
2
  "
3
- <tab name=\"selectiontab\" caption=\"Menu Panel\">
3
+ <tab name=\"selectiontab\" caption=#{Message[:menu_panel]}>
4
4
 
5
5
  <table>
6
6
  <row> <p align=\"right\">Open a new location </row>
@@ -1,7 +1,7 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <horizontal>
4
- <button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
4
+ <button caption=#{Message[:showjump_links]} action=\"showjumplinkoptions\"/>
5
5
 
6
6
  </horizontal>
7
7
  <table>
@@ -10,6 +10,6 @@ $rwdguivar=
10
10
  </table>
11
11
 
12
12
  <horizontal>
13
- <button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
13
+ <button caption=#{Message[:jumptoapplication_location]} action=\"runjumplinkcommand\"/>
14
14
  </horizontal>
15
15
  "
@@ -1,7 +1,7 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <horizontal>
4
- <button caption=\"Show Documents List\" action=\"setuptinkerdocuments\"/>
4
+ <button caption=#{Message[:showdocument_list]} action=\"setuptinkerdocuments\"/>
5
5
 
6
6
  </horizontal>
7
7
  <table>
@@ -9,6 +9,6 @@ $rwdguivar=
9
9
 
10
10
  </table>
11
11
  <horizontal>
12
- <button caption=\"Open Document\" action=\"runopentinkerdocument\"/>
12
+ <button caption=#{Message[:open_document]} action=\"runopentinkerdocument\"/>
13
13
  </horizontal>
14
14
  "
@@ -1,7 +1,7 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <horizontal>
4
- <button caption=\"Help\" action=\"runhelpwindow\"/>
4
+ <button caption=#{Message[:help]} action=\"runhelpwindow\"/>
5
5
 
6
6
  </horizontal>
7
7
  </tab>"
@@ -1,3 +1,3 @@
1
1
  $rwdguivar=
2
2
  "
3
- <helpwindow name=\"main\" title=\"Help About\">"
3
+ <helpwindow name=\"main\" title=#{Message[:help_about]}>"
@@ -1,7 +1,7 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <horizontal>
4
- <button caption=\"Show Help About Links\" action=\"setuphelpaboutoptions\"/>
4
+ <button caption=#{Message[:showhelpabout_links]} action=\"setuphelpaboutoptions\"/>
5
5
 
6
6
  </horizontal>
7
7
  <table>
@@ -10,6 +10,6 @@ $rwdguivar=
10
10
  </table>
11
11
 
12
12
  <horizontal>
13
- <button caption=\"Open Selected Help About\" action=\"runrwdtinkerversion\"/>
13
+ <button caption=#{Message[:openselectedhelp_about]} action=\"runrwdtinkerversion\"/>
14
14
  </horizontal>
15
15
  "
@@ -1,3 +1,3 @@
1
1
  $rwdguivar=
2
2
  "
3
- <helpwindow name=\"tinkerbackwindow\" title=\"Help About\">"
3
+ <helpwindow name=\"tinkerbackwindow\" title=#{Message[:help_about]}>"
@@ -1,7 +1,7 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <horizontal>
4
- <button caption=\"Show Help About Links\" action=\"setuphelpaboutoptions\"/>
4
+ <button caption=#{Message[:showhelpabout_links]} action=\"setuphelpaboutoptions\"/>
5
5
 
6
6
  </horizontal>
7
7
  <table>
@@ -10,6 +10,6 @@ $rwdguivar=
10
10
  </table>
11
11
 
12
12
  <horizontal>
13
- <button caption=\"Open Selected Help About\" action=\"runrwdtinkerversion\"/>
13
+ <button caption=#{Message[:openselectedhelp_about]} action=\"runrwdtinkerversion\"/>
14
14
  </horizontal>
15
15
  "
@@ -1,5 +1,5 @@
1
1
  $rwdguivar=
2
2
  "
3
- <window name = \"tinkerbackwindow\" title=\"Tinker Back Window\">
3
+ <window name = \"tinkerbackwindow\" title=#{Message[:tinkerback_window]}>
4
4
 
5
5
  <tabs>"
@@ -1,9 +1,9 @@
1
1
  $rwdguivar=
2
2
  "
3
- <tab name=\"rwdzipslister\" caption=\"List Zips\">
3
+ <tab name=\"rwdzipslister\" caption=#{Message[:list_zips]}>
4
4
 
5
5
  <table>
6
- <row> <p align=\"right\">File Name:</p> <text size=70 name=\"a_installapplet\"/> </row>
6
+ <row> <p align=\"right\">#{Message[:file_name]}</p> <text size=70 name=\"a_installapplet\"/> </row>
7
7
 
8
8
  </table>
9
9
 
@@ -11,26 +11,25 @@ $rwdguivar=
11
11
  <horizontal>
12
12
 
13
13
 
14
- <button caption=\"install (rwdtinker) applet\" action=\"installgemapplet\"/>
15
- <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
16
-
17
- </horizontal>
14
+ <button caption=#{Message[:install_applet]} action=\"installgemapplet\"/>
15
+ <button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
16
+ </horizontal>
18
17
  <p>%installapplettext%</p>
19
18
 
20
19
  <horizontal>
21
20
 
22
- <button caption=\"view (rwdtinker) applet contents\" action=\"viewgemappletcontents\"/>
21
+ <button caption=#{Message[:viewapplet_contents]} action=\"viewgemappletcontents\"/>
23
22
  </horizontal>
24
23
  <p>%appletcontentstext%</p>
25
24
  <table>
26
- <row> <p align=\"right\">Click below to view the list of zip files </row>
25
+ <row> <p align=\"right\">#{Message[:clickbelowtoviewlistof_zip]} </row>
27
26
 
28
27
  </table>
29
28
 
30
29
  <horizontal>
31
- <button caption=\"List (zip directory) applets available for installing\" action=\"listzipfilestoinstall\"/>
30
+ <button caption=#{Message[:listappletsavailablefor_installation]} action=\"listzipfilestoinstall\"/>
32
31
 
33
- <button caption=\"List applets (in the GEM Directory) available for installing\" action=\"listgemzips\"/>
32
+ <button caption=#{Message[:listappletsinthegem_directory]} action=\"listgemzips\"/>
34
33
 
35
34
  </horizontal>
36
35
 
@@ -3,12 +3,12 @@ $rwdguivar=
3
3
  <tab name=\"superantcomremotezipsinstall\" caption=\"Install Remote Applets\">
4
4
 
5
5
  <table>
6
- <row> <p align=\"right\">File Name:</p> <text size=70 name=\"superantcominstallremoteappletinput\"/> </row>
6
+ <row> <p align=\"right\">#{Message[:file_name]}</p> <text size=70 name=\"superantcominstallremoteappletinput\"/> </row>
7
7
 
8
8
  </table>
9
9
  <horizontal>
10
10
  <button caption=\"install remote Gem applet package\" action=\"superantcominstallremotegemapplet\"/>
11
- <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
11
+ <button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
12
12
 
13
13
  </horizontal>
14
14
  <p>%superantcominstallremotegemappletresult%</p>
@@ -17,7 +17,7 @@ $rwdguivar=
17
17
 
18
18
 
19
19
 
20
- <button caption=\"view already installed GEM applets\" action=\"superantcomshowgemfiledirs\"/>
20
+ <button caption=#{Message[:viewalreadyinstalled_applications]} action=\"superantcomshowgemfiledirs\"/>
21
21
  </horizontal>
22
22
  <p>%%superantcomshowgemappletdirsresult%%</p>
23
23
 
@@ -26,13 +26,13 @@ $rwdguivar=
26
26
 
27
27
 
28
28
  <table>
29
- <row> <p align=\"right\">Click below to view the list of zip files </row>
29
+ <row> <p align=\"right\">#{Message[:clickbelowtoviewlistof_zip]} </row>
30
30
 
31
31
  </table>
32
32
 
33
33
  <horizontal>
34
34
 
35
- <button caption=\"List applets in the Remote GEM Repository available for downloading\" action=\"superantcomremotegemlist\"/>
35
+ <button caption=#{Message[:listappletsinthegem_directory]} action=\"superantcomremotegemlist\"/>
36
36
 
37
37
  </horizontal>
38
38
  <p>%superantcomremotegemappletsfullresult%</p>
@@ -1,38 +1,38 @@
1
1
  $rwdguivar=
2
2
  "
3
- <tab name=\"filelister\" caption=\"List Applets\">
3
+ <tab name=\"filelister\" caption=#{Message[:list_applets]}>
4
4
 
5
5
 
6
6
  <table>
7
- <row> <p align=\"right\">File Name:</p> <text name=\"a_installlist\"/> </row>
7
+ <row> <p align=\"right\">#{Message[:file_name]}</p> <text name=\"a_installlist\"/> </row>
8
8
 
9
9
  </table>
10
10
 
11
11
  <horizontal>
12
- <button caption=\"View Install Text\" action=\"openappletname\"/>
13
- <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
12
+ <button caption=#{Message[:viewinstalled_text]} action=\"openappletname\"/>
13
+ <button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
14
14
  </horizontal>
15
15
  <p>%displaytext%</p>
16
16
 
17
17
  <table>
18
- <row> <p align=\"right\">File Name:</p> <text name=\"a_removeapplet\"/> </row>
18
+ <row> <p align=\"right\">#{Message[:file_name]}</p> <text name=\"a_removeapplet\"/> </row>
19
19
 
20
20
  </table>
21
21
 
22
22
  <p>%removeapplettext%</p>
23
23
  <horizontal>
24
- <button caption=\"remove applet\" action=\"removeapplet\"/>
25
- <button caption=\"Cancel\" action=\"main\"/>
24
+ <button caption=#{Message[:remove_applet]} action=\"removeapplet\"/>
25
+ <button caption=#{Message[:cancel]} action=\"main\"/>
26
26
 
27
27
  </horizontal>
28
28
  <table>
29
29
  <row> <p> </row>
30
- <row> <p align=\"right\">View the list of installation files </row>
30
+ <row> <p align=\"right\">#{Message[:viewlistinstall_files]} </row>
31
31
 
32
32
  </table>
33
33
  <horizontal>
34
34
 
35
- <button caption=\"List Files\" action=\"listinstalledfiles\"/>
35
+ <button caption=#{Message[:list_files]} action=\"listinstalledfiles\"/>
36
36
 
37
37
  </horizontal>
38
38
 
@@ -7,9 +7,9 @@ $rwdguivar=
7
7
  <row> <p> </row>
8
8
  <horizontal>
9
9
  <button caption=\"Load Record\" action=\"loadconfigurationrecord\"/>
10
- <button caption=\"Save Changes\" action=\"saveconfigurationrecord\"/>
10
+ <button caption=#{Message[:save_changes]} action=\"saveconfigurationrecord\"/>
11
11
  <button caption=\"Reload Variables\" action=\"loadconfigurationvariables\"/>
12
- <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
12
+ <button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
13
13
 
14
14
 
15
15
 
@@ -2,7 +2,7 @@ $rwdguivar=
2
2
  "
3
3
  <tab name=\"diagnostictab\" caption=\"Diagnostic Tab\">
4
4
  <horizontal>
5
- <button caption=\"View Platform Information\" action=\"runviewplatform\"/>
5
+ <button caption=#{Message[:viewplatform_information]} action=\"runviewplatform\"/>
6
6
 
7
7
 
8
8
  </horizontal>
@@ -1,8 +1,8 @@
1
1
  $rwdguivar=
2
2
  "
3
- <tab name=selectiontab caption=\"Selection Tab\">
3
+ <tab name=selectiontab caption=#{Message[:selection_tab]}>
4
4
  <horizontal>
5
- <button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
5
+ <button caption=#{Message[:showjump_links]} action=\"showjumplinkoptions\"/>
6
6
 
7
7
  </horizontal>
8
8
  <table>
@@ -11,7 +11,7 @@ $rwdguivar=
11
11
  </table>
12
12
 
13
13
  <horizontal>
14
- <button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
14
+ <button caption=#{Message[:jumptoapplication_location]} action=\"runjumplinkcommand\"/>
15
15
  </horizontal>
16
16
  </tab>
17
17
  "
@@ -10,7 +10,7 @@ $rwdguivar=
10
10
 
11
11
  </table>
12
12
  <horizontal>
13
- %rwdhelpdataoutput%
13
+ %%rwdhelpdataoutput%%
14
14
  </horizontal>
15
15
  <row> <p></row>
16
16
  <table>
@@ -1,6 +1,6 @@
1
1
  $rwdguivar=
2
2
  "
3
- <window name = \"applicationversion\" title=\"Application Version\">
3
+ <window name = \"applicationversion\" title=#{Message[:application_version]}>
4
4
 
5
5
  <row> <p></row>
6
6
  <p>%versionappnamedisplay%</p>
@@ -11,7 +11,7 @@ $rwdguivar=
11
11
  <p>%versionnumberdisplay%</p>
12
12
 
13
13
  <horizontal>
14
- <button caption=Return action=returntomain/>
14
+ <button caption=#{Message[:return]} action=returntomain/>
15
15
  </horizontal>
16
16
 
17
17
  </window>"
@@ -1,8 +1,8 @@
1
1
  $rwdguivar=
2
2
  "
3
- <window name=tinkerhelpabout title=\"Help About Window\">
3
+ <window name=tinkerhelpabout title=#{Message[:help_about]}>
4
4
  <horizontal>
5
- <button caption=\"Show Help About Links\" action=\"setuphelpaboutoptions\"/>
5
+ <button caption=#{Message[:showhelpabout_links]} action=\"setuphelpaboutoptions\"/>
6
6
 
7
7
  </horizontal>
8
8
  <table>
@@ -11,7 +11,7 @@ $rwdguivar=
11
11
  </table>
12
12
 
13
13
  <horizontal>
14
- <button caption=\"Open Selected Help About\" action=\"runrwdtinkerversion\"/>
14
+ <button caption=#{Message[:openselectedhelp_about]} action=\"runrwdtinkerversion\"/>
15
15
  </horizontal>
16
16
  </window>
17
17
  "
data/init.rb CHANGED
File without changes
@@ -0,0 +1,5 @@
1
+ #rwdgutenberg - sample data #2
2
+ Books/marip10.txt
3
+ Books/Mariposa.gut
4
+ Books/shannon1948.html
5
+ Books/Shannon.gut
@@ -0,0 +1,7 @@
1
+ #rwdgutenberg - text reading frontend
2
+ configuration/rwdgutenberg.dist
3
+ gui/tinkerbackwindows/superant.com.gutenberg
4
+ gui/tinkerbackwindows/superant.com.gutendisplay
5
+ rwd_files/HowTo_Gutenberg.txt
6
+ code/superant.com.gutenberg
7
+ tests/makerwdwgutenberg-0.06.rb