ifmapper 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.txt +7 -0
- data/lib/IFMapper/FXMap.rb +15 -2
- data/lib/IFMapper/FXMapperWindow.rb +27 -3
- data/lib/IFMapper/FXRoomList.rb +1 -1
- data/lib/IFMapper/Inform7Writer.rb +496 -0
- data/lib/IFMapper/InformWriter.rb +3 -5
- data/lib/IFMapper/Room.rb +2 -1
- data/lib/IFMapper/TADSWriter.rb +1 -4
- data/lib/IFMapper/TranscriptReader.rb +3 -1
- data/maps/A New Life.map +0 -0
- data/maps/Bronze.map +0 -0
- data/maps/Reliques_of_Tolti_Alph.map +0 -0
- data/maps/WinterWonderland.map +0 -0
- data/maps/anchor.map +0 -0
- data/maps/kaged.map +0 -0
- data/maps/muldoon_legacy.map +0 -0
- data/maps/simple.map +0 -0
- data/maps/zerosum.map +0 -0
- metadata +237 -229
- data/docs/start.html~ +0 -516
@@ -72,6 +72,7 @@ class InformWriter
|
|
72
72
|
return new_tag(elem, name)
|
73
73
|
end
|
74
74
|
|
75
|
+
|
75
76
|
def wrap_text(text, width = 65, indent = 79 - width)
|
76
77
|
return 'UNDER CONSTRUCTION' unless text
|
77
78
|
str = inform_quote( text.dup )
|
@@ -80,10 +81,7 @@ class InformWriter
|
|
80
81
|
r = ''
|
81
82
|
while str
|
82
83
|
idx = str.rindex(/[ -]/, width)
|
83
|
-
unless idx
|
84
|
-
idx = str.index(/[ -]/, width)
|
85
|
-
idx = str.size unless idx
|
86
|
-
end
|
84
|
+
idx = str.size unless idx
|
87
85
|
r << str[0..idx]
|
88
86
|
str = str[idx+1..-1]
|
89
87
|
r << "\n" << ' ' * indent if str
|
@@ -343,7 +341,7 @@ EOF
|
|
343
341
|
'description',
|
344
342
|
] + DIRECTIONS
|
345
343
|
|
346
|
-
@keyword =
|
344
|
+
@keyword = /^(?:#{keywords.join('|')})$/i
|
347
345
|
start
|
348
346
|
end
|
349
347
|
end
|
data/lib/IFMapper/Room.rb
CHANGED
data/lib/IFMapper/TADSWriter.rb
CHANGED
@@ -88,10 +88,7 @@ class TADSWriter
|
|
88
88
|
r = ''
|
89
89
|
while str
|
90
90
|
idx = str.rindex(/[ -]/, width)
|
91
|
-
unless idx
|
92
|
-
idx = str.index(/[ -]/, width)
|
93
|
-
idx = str.size unless idx
|
94
|
-
end
|
91
|
+
idx = str.size unless idx
|
95
92
|
r << str[0..idx]
|
96
93
|
str = str[idx+1..-1]
|
97
94
|
r << "\n" << ' ' * indent if str
|
@@ -85,7 +85,7 @@ class TranscriptReader
|
|
85
85
|
NAME_MAXWORDS = 20
|
86
86
|
|
87
87
|
# word list that may be uncapitalized in room name
|
88
|
-
NAME_UNCAP = /^(?:of|on|to|with|by|a|in|the|at|under)$/i
|
88
|
+
NAME_UNCAP = /^(?:of|on|to|with|by|a|in|the|at|under|through|near)$/i
|
89
89
|
|
90
90
|
# Default room description recognition parameters.
|
91
91
|
DESC_MINWORDS = 20
|
@@ -570,6 +570,8 @@ class TranscriptReader
|
|
570
570
|
debug "ENDS AT: #{name}"
|
571
571
|
|
572
572
|
desc = room[:desc]
|
573
|
+
desc.gsub!(/(\w)\s*\n/, '\1 ')
|
574
|
+
|
573
575
|
line = move[:line]
|
574
576
|
|
575
577
|
# If we teleported, try to find room
|
data/maps/A New Life.map
CHANGED
Binary file
|
data/maps/Bronze.map
ADDED
Binary file
|
Binary file
|
Binary file
|
data/maps/anchor.map
CHANGED
Binary file
|
data/maps/kaged.map
ADDED
Binary file
|
data/maps/muldoon_legacy.map
CHANGED
Binary file
|
data/maps/simple.map
ADDED
Binary file
|
data/maps/zerosum.map
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.11
|
3
3
|
specification_version: 1
|
4
4
|
name: ifmapper
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.9.
|
7
|
-
date: 2006-03
|
6
|
+
version: 0.9.9
|
7
|
+
date: 2006-06-19 00:00:00 -03:00
|
8
8
|
summary: Interactive Fiction Mapping Tool.
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: ggarram@advance.dsl.com.ar
|
12
12
|
homepage: http://www.rubyforge.org/projects/ifmapper/
|
13
13
|
rubyforge_project: ifmapper
|
@@ -18,239 +18,247 @@ bindir: bin
|
|
18
18
|
has_rdoc: true
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 1.8.0
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.8.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
27
28
|
authors:
|
28
|
-
|
29
|
+
- Gonzalo Garramuno
|
29
30
|
files:
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
31
|
+
- IFMapper.rbw
|
32
|
+
- bin/IFMapper
|
33
|
+
- lib/IFMapper/FXSpline.rb
|
34
|
+
- lib/IFMapper/FXRoom.rb
|
35
|
+
- lib/IFMapper/FXSectionDialogBox.rb
|
36
|
+
- lib/IFMapper/FXConnection.rb
|
37
|
+
- lib/IFMapper/FXMapColorBox.rb
|
38
|
+
- lib/IFMapper/IFMReader.rb
|
39
|
+
- lib/IFMapper/FXWarningBox.rb
|
40
|
+
- lib/IFMapper/IFMWriter.rb
|
41
|
+
- lib/IFMapper/FXMapperSettings.rb
|
42
|
+
- lib/IFMapper/AStar.rb
|
43
|
+
- lib/IFMapper/Connection.rb
|
44
|
+
- lib/IFMapper/FXDCPostscript.rb
|
45
|
+
- lib/IFMapper/MapPrinting.rb
|
46
|
+
- lib/IFMapper/FXDCPrint.rb
|
47
|
+
- lib/IFMapper/FXMapDialogBox.rb
|
48
|
+
- lib/IFMapper/InformReader.rb
|
49
|
+
- lib/IFMapper/FXSection.rb
|
50
|
+
- lib/IFMapper/TADSReader.rb
|
51
|
+
- lib/IFMapper/GUEReader.rb
|
52
|
+
- lib/IFMapper/FXRoomDialogBox.rb
|
53
|
+
- lib/IFMapper/FXConnectionDialogBox.rb
|
54
|
+
- lib/IFMapper/MapReader.rb
|
55
|
+
- lib/IFMapper/FXAboutDialogBox.rb
|
56
|
+
- lib/IFMapper/FXSearchDialogBox.rb
|
57
|
+
- lib/IFMapper/Section.rb
|
58
|
+
- lib/IFMapper/Map.rb
|
59
|
+
- lib/IFMapper/TranscriptDialogBox.rb
|
60
|
+
- lib/IFMapper/PDFMapExporter.rb
|
61
|
+
- lib/IFMapper/FXRoomList.rb
|
62
|
+
- lib/IFMapper/FXMap.rb
|
63
|
+
- lib/IFMapper/FXMapFileDialog.rb
|
64
|
+
- lib/IFMapper/Room.rb
|
65
|
+
- lib/IFMapper/TranscriptReader.rb
|
66
|
+
- lib/IFMapper/InformWriter.rb
|
67
|
+
- lib/IFMapper/TADSWriter.rb
|
68
|
+
- lib/IFMapper/Inform7Writer.rb
|
69
|
+
- lib/IFMapper/FXMapperWindow.rb
|
70
|
+
- maps/Zork_Zero.ifm
|
71
|
+
- maps/anchor.ifm
|
72
|
+
- maps/atrox.ifm
|
73
|
+
- maps/awaken.ifm
|
74
|
+
- maps/babel.ifm
|
75
|
+
- maps/bse.ifm
|
76
|
+
- maps/Bureaucracy.ifm
|
77
|
+
- maps/change.ifm
|
78
|
+
- maps/curses.ifm
|
79
|
+
- maps/curves.ifm
|
80
|
+
- maps/edifice.ifm
|
81
|
+
- maps/frozen.ifm
|
82
|
+
- maps/glow.ifm
|
83
|
+
- maps/Hollywood_Hijinx.ifm
|
84
|
+
- maps/Jigsaw.ifm
|
85
|
+
- maps/LGOP.ifm
|
86
|
+
- maps/library.ifm
|
87
|
+
- maps/Mercy.ifm
|
88
|
+
- maps/mindelec.ifm
|
89
|
+
- maps/minster.ifm
|
90
|
+
- maps/muse.ifm
|
91
|
+
- maps/paperchase.ifm
|
92
|
+
- maps/Planetfall.ifm
|
93
|
+
- maps/Plundered_Hearts.ifm
|
94
|
+
- maps/Ralph.ifm
|
95
|
+
- maps/Robots_of_Dawn.ifm
|
96
|
+
- maps/Seastalker.ifm
|
97
|
+
- maps/Sherlock.ifm
|
98
|
+
- maps/SoFar.ifm
|
99
|
+
- maps/space_st.ifm
|
100
|
+
- maps/Starcross.ifm
|
101
|
+
- maps/stationfall.ifm
|
102
|
+
- maps/Suspended.ifm
|
103
|
+
- maps/theatre.ifm
|
104
|
+
- maps/toonesia.ifm
|
105
|
+
- maps/tortoise.ifm
|
106
|
+
- maps/vgame.ifm
|
107
|
+
- maps/weather.ifm
|
108
|
+
- maps/windhall.ifm
|
109
|
+
- maps/Wishbringer2.ifm
|
110
|
+
- maps/Wishbringer.ifm
|
111
|
+
- maps/zebulon.ifm
|
112
|
+
- maps/Zork1.ifm
|
113
|
+
- maps/Zork2.ifm
|
114
|
+
- maps/Zork3.ifm
|
115
|
+
- maps/deadline.map
|
116
|
+
- maps/lurkinghorror.map
|
117
|
+
- maps/DDIV.map
|
118
|
+
- maps/muldoon_legacy.map
|
119
|
+
- maps/bluechairs.map
|
120
|
+
- maps/inhumane.map
|
121
|
+
- maps/ballerina.map
|
122
|
+
- maps/sherbet.map
|
123
|
+
- maps/delusions.map
|
124
|
+
- maps/zdungeon.map
|
125
|
+
- maps/Bureaucracy.map
|
126
|
+
- maps/Tangle.map
|
127
|
+
- maps/spring.map
|
128
|
+
- maps/trinity.map
|
129
|
+
- maps/slouch.map
|
130
|
+
- maps/pawn.map
|
131
|
+
- maps/anchor.map
|
132
|
+
- maps/risorgimento.map
|
133
|
+
- maps/christminster.map
|
134
|
+
- maps/AllRoads.map
|
135
|
+
- maps/CityOfSecrets.map
|
136
|
+
- maps/pytho.map
|
137
|
+
- maps/eas.map
|
138
|
+
- maps/eas2.map
|
139
|
+
- maps/eas3.map
|
140
|
+
- maps/worlds.map
|
141
|
+
- maps/SavoirFare.map
|
142
|
+
- maps/Heroine.map
|
143
|
+
- maps/metamorphoses.map
|
144
|
+
- maps/break_in.map
|
145
|
+
- maps/moonmist.map
|
146
|
+
- maps/dreamhold.map
|
147
|
+
- maps/AMFV.map
|
148
|
+
- maps/wasp.map
|
149
|
+
- maps/Janitor.map
|
150
|
+
- maps/bear.map
|
151
|
+
- maps/zerosum.map
|
152
|
+
- maps/balances.map
|
153
|
+
- maps/fallacy.map
|
154
|
+
- maps/heist.map
|
155
|
+
- maps/pkgirl.map
|
156
|
+
- maps/heroes.map
|
157
|
+
- maps/photograph.map
|
158
|
+
- maps/drift3.map
|
159
|
+
- maps/party.map
|
160
|
+
- maps/devours.map
|
161
|
+
- maps/djinni.map
|
162
|
+
- maps/A New Life.map
|
163
|
+
- maps/History Repeating.map
|
164
|
+
- maps/Unforgotten.map
|
165
|
+
- maps/splashdown.map
|
166
|
+
- maps/xtcontest.map
|
167
|
+
- maps/vespers.map
|
168
|
+
- maps/distress.map
|
169
|
+
- maps/building.map
|
170
|
+
- maps/gamlet.map
|
171
|
+
- maps/squarecircle.map
|
172
|
+
- maps/guilty_bastards.map
|
173
|
+
- maps/WinterWonderland.map
|
174
|
+
- maps/kaged.map
|
175
|
+
- maps/Bronze.map
|
176
|
+
- maps/Reliques_of_Tolti_Alph.map
|
177
|
+
- maps/simple.map
|
178
|
+
- icons/filenew.png
|
179
|
+
- icons/fileopen.png
|
180
|
+
- icons/filesave.png
|
181
|
+
- icons/filesaveas.png
|
182
|
+
- icons/cut.png
|
183
|
+
- icons/copy.png
|
184
|
+
- icons/paste.png
|
185
|
+
- icons/help.png
|
186
|
+
- icons/kill.png
|
187
|
+
- icons/redo.png
|
188
|
+
- icons/saveas.png
|
189
|
+
- icons/undo.png
|
190
|
+
- icons/zoom.png
|
191
|
+
- icons/winapp.png
|
192
|
+
- icons/printicon.png
|
193
|
+
- icons/prevpage.png
|
194
|
+
- icons/nextpage.png
|
195
|
+
- icons/room_n.xpm
|
196
|
+
- icons/room_nw.xpm
|
197
|
+
- icons/room_ne.xpm
|
198
|
+
- icons/room_se.xpm
|
199
|
+
- icons/room_sw.xpm
|
200
|
+
- icons/room_s.xpm
|
201
|
+
- icons/room_w.xpm
|
202
|
+
- icons/room_e.xpm
|
203
|
+
- icons/room_n.gif
|
204
|
+
- icons/room_s.gif
|
205
|
+
- icons/room_sw.gif
|
206
|
+
- icons/room_se.gif
|
207
|
+
- icons/room_ne.gif
|
208
|
+
- icons/room_nw.gif
|
209
|
+
- icons/room_e.gif
|
210
|
+
- icons/room_w.gif
|
211
|
+
- HISTORY.txt
|
212
|
+
- TODO.txt
|
213
|
+
- docs/index.html
|
214
|
+
- docs/images
|
215
|
+
- docs/start.html
|
216
|
+
- docs/images/IFMapper_main.gif
|
217
|
+
- docs/images/room_description.gif
|
218
|
+
- docs/images/room_small.gif
|
219
|
+
- docs/images/connection.gif
|
220
|
+
- docs/images/connection_menu.gif
|
221
|
+
- docs/images/complex_connection.gif
|
222
|
+
- docs/images/automap.gif
|
217
223
|
test_files: []
|
224
|
+
|
218
225
|
rdoc_options: []
|
226
|
+
|
219
227
|
extra_rdoc_files:
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
- docs/images/automap.gif
|
228
|
+
- HISTORY.txt
|
229
|
+
- TODO.txt
|
230
|
+
- docs/index.html
|
231
|
+
- docs/images
|
232
|
+
- docs/start.html
|
233
|
+
- docs/images/IFMapper_main.gif
|
234
|
+
- docs/images/room_description.gif
|
235
|
+
- docs/images/room_small.gif
|
236
|
+
- docs/images/connection.gif
|
237
|
+
- docs/images/connection_menu.gif
|
238
|
+
- docs/images/complex_connection.gif
|
239
|
+
- docs/images/automap.gif
|
233
240
|
executables: []
|
241
|
+
|
234
242
|
extensions: []
|
243
|
+
|
235
244
|
requirements: []
|
245
|
+
|
236
246
|
dependencies:
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
version: 1.1.1
|
256
|
-
version:
|
247
|
+
- !ruby/object:Gem::Dependency
|
248
|
+
name: fxruby
|
249
|
+
version_requirement:
|
250
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
251
|
+
requirements:
|
252
|
+
- - ">="
|
253
|
+
- !ruby/object:Gem::Version
|
254
|
+
version: 1.2.16
|
255
|
+
version:
|
256
|
+
- !ruby/object:Gem::Dependency
|
257
|
+
name: pdf-writer
|
258
|
+
version_requirement:
|
259
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
260
|
+
requirements:
|
261
|
+
- - ">="
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: 1.1.1
|
264
|
+
version:
|