Debian Codegraph @

garglk/garglk.ini

raw
1 #===============================================================================
2 # Gargoyle Glk configuration
3 #-------------------------------------------------------------------------------
4 #
5 # Gargoyle will look for configuration files and load them in this
6 # order, with later settings overriding earlier settings:
7 #
8 # 1: same directory as the executable: garglk.ini (windows)
9 # 2: /etc/garglk.ini (or other location set at build time, Unix only)
10 # 3: Platform-specific locations:
11 # $HOME/.garglkrc (unix)
12 # ${XDG_CONFIG_HOME:-$HOME/.config}/garglk.ini (unix)
13 # <user settings directory>/Gargoyle (haiku)
14 # %APPDATA%/Gargoyle/garglk.ini (windows)
15 # current working directory: garglk.ini (windows)
16 # $HOME/garglk.ini (mac)
17 # 4: game directory: garglk.ini
18 # 5: name-of-game-file.ini (so for hell.gam it would read hell.ini)
19 #
20 # Sections of the config file can be turned on or off by matching
21 # either the interpreter or game file being run. See the bottom
22 # of this file for examples.
23
24 # In addition to a user's specific config file, games can provide their
25 # own config file to overwrite some or all of a user's settings. This
26 # can be disabled by setting the following option to 0.
27 game_config 1
28
29 scrollwidth 0 # set to 8 to make a nice scrollbar
30 scrollbg b0b0b0
31 scrollfg 808080
32
33 # By default, games/interpreters are allowed to change the appearance of
34 # Gargoyle to some degree: colors can be set, reverse video can be set, and the
35 # appearance of Glk styles can be changed (allowing interpreters to change what
36 # the style "emphasized" means, for example). Setting this to 0 disables this
37 # behavior: colors can't be used, reverse video can't be used, and stylehint
38 # settings are ignored. The impetus for this option was to allow users to
39 # disable games whose colors they found distasteful.
40 stylehint 1
41
42 safeclicks 1 # set to 0 if game cancels line events properly
43
44 cols 60 # nice good line length for reading. but...
45 rows 25 # see the bottom for terp-specific over-rides
46
47 lockcols 0 # set to 1 to enforce col count
48 lockrows 0 # set to 1 to enforce row count
49
50 # Gargoyle can try to restore the last window size and window location.
51 # This is generally only provided as a hint to the window system, and
52 # may be ignored. The value is whitespace-delimited strings taking the
53 # value "size" or "location":
54 #
55 # save_window size
56 # save_window location
57 # save_window size location
58 #
59 # The default is to save neither. If Gargoyle is able to restore a
60 # saved window size, then the "cols" and "rows" settings are ignored.
61 #
62 # If either of these is true, then the fullscreen state will be stored
63 # as well.
64
65 justify 0 # 0=ragged-right 1=justified
66 quotes 1 # Smart quotes -- 0=off 1=normal 2=rabid
67 dashes 1 # Dash replacement level -- 0=off 1=-,em 2=-,en,em
68 spaces 1 # Spaces after full stop -- 0=off 1=one 2=two
69 caps 0 # Force uppercase input -- 0=off 1=on
70
71 graphics 1 # enable graphics
72 sound 1 # enable sound
73
74 # Gargoyle supports MIDI files, as used by some Adrift games. Unlike other
75 # supported file formats, MIDI files require external instruments, so can
76 # require a bit more effort to get working. If the SDL sound backend is
77 # enabled, it's possible that native operating system routines are being used
78 # on Windows, Mac, and Haiku. For the Qt backend, or the SDL backend on other
79 # platforms, SoundFonts are used to provide the instruments. Here you can
80 # specify which SoundFonts you want to use, with higher priority ones listed
81 # first: if an instrument is not found in the first font, the second is
82 # consulted, and so on.
83 #
84 # soundfont "/soundfont1.sf2" "/soundfont2.sf2"
85
86 # If FluidSynth is being used for MIDI playback (which is the case if the Qt
87 # sound backend is enabled), its reverb and chorus effects can be disabled by
88 # setting the corresponding option to 0 (false).
89 #
90 # fluidsynth_reverb 1
91 # fluidsynth_chorus 1
92
93 # Gargoyle provides support for the Z-Machine's sound effects 1 and 2.
94 # The Z-Machine Standards Document 1.1 says this about so-called bleeps:
95 #
96 # "Number 1 is a high-pitched bleep, number 2 a low-pitched one"
97 #
98 # Here you can define what the bleeps sound like. The syntax is this:
99 #
100 # zbleep number duration frequency
101 #
102 # number is either 1 or 2
103 # duration is the duration, in seconds, and can be fractional
104 # frequency is the pitch in Hz (440 = A5), and must be integral
105 #
106 # This creates a pure (sinusoidal) tone at the given frequency.
107 #
108 # To disable a bleep, set its duration to 0. The defaults here mimic
109 # Infocom's DOS interpreter. To mimic Infocom's C128 interpreter:
110 #
111 # zbleep 1 0.1 1480
112 # zbleep 2 0.1 660
113 #
114 # Instead of a generated tone, you can provide a file to be used as the
115 # bleep. This has the syntax:
116 #
117 # zbleep_file 1 /path/to/file.aiff
118 # zbleep_file 2 /path/to/file.aiff
119 #
120 # The file should be a Blorb-supported file (AIFF or Ogg Vorbis),
121 # although Gargoyle also currently supports, as extensions to Blorb, WAV
122 # and MP3 files.
123 zbleep 1 0.1 1175
124 zbleep 2 0.1 440
125
126 fullscreen 0 # set to 1 for fullscreen
127 zoom 1.0 # set display zoom
128
129 # Normally Gargoyle scales images using a simple algorithm which does
130 # not do any interpolation/smoothing. In general this is fine, but for
131 # older pixel art games (namely Infocom's version 6 games), scaling up
132 # results in very blocky images. If you would prefer smoother images,
133 # Gargoyle provides two pixel art scalers:
134 #
135 # • hqx (see https://en.wikipedia.org/wiki/Pixel-art_scaling_algorithms#hqnx_family)
136 # • xBRZ (see https://en.wikipedia.org/wiki/Pixel-art_scaling_algorithms#xBR_family)
137 #
138 # To use these, set the "scaler" option to "hqx" or "xbrz". Setting it
139 # to "none", or not providing this option at all, will use the normal
140 # resizing algorithm. Note that these scalers always scale by an integer
141 # multiple, e.g. a 320x200 image can be scaled to 640x400, but not
142 # 480x300. To work around this, Gargoyle will first use the provided
143 # scaler to scale up to the nearest multiple that is larger than the
144 # target size, and then use the normal scaler to reduce the image to the
145 # requested size.
146 #
147 # The scalers are likely to only be useful with Infocom's games, and may
148 # cause unwanted graphics glitches in newer games. Due to this, it's
149 # recommended to limit the scaler to the Bocfel interpreter below in the
150 # "override" section, e.g.:
151 #
152 # [bocfel]
153 # scaler xbrz
154 scaler none
155
156 # If set to 1, Gargoyle will wait for a keypress when a game quits, to
157 # allow text printed just before quitting to be seen. If you would
158 # rather that Gargoyle quit immediately, set this to 0.
159 wait_on_quit 1
160
161 # By default, Gargoyle will allow the native file picker (Qt or MacOS)
162 # to choose which directory to open in when saving and loading files,
163 # including save games, transcripts, and generic data files. This may
164 # not be the most desirable location. You can instead choose to save
165 # either in a centralized save directory or the directory containing the
166 # currently-running game.
167 #
168 # If a centralized location is requested, a dedicated directory for each
169 # game is created. This will be something like:
170 #
171 # $HOME/.local/share/gargoyle/gamedata/zork1.z3/ (Unix)
172 # %APPDATA%\Gargoyle\gamedata\zork1.z3\ (Windows)
173 # $HOME/Library/Application Support/Gargoyle/gamedata/zork1.z3/ (Mac)
174 #
175 # To use the default, set this to "default". For a dedicated centralized
176 # location, use "dedicated". For the game's containing directory, use
177 # "gamedir".
178 gamedata_location default
179
180 #===============================================================================
181 # Fonts, sizes and spaces
182 # (Tweak this if you choose other fonts, or want bigger text)
183 #-------------------------------------------------------------------------------
184 #
185 # The 'standard' fonts.
186 # Omit to use the builtin fonts, or specify a font family.
187
188 monofont Gargoyle Mono
189 monosize 12.6
190
191 propfont Gargoyle Serif
192 propsize 14.7
193
194 wmarginx 20 # space around the window frame
195 wmarginy 20
196 wpaddingx 0 # space between windows
197 wpaddingy 0
198 wborderx 0 # border line width between windows
199 wbordery 0
200 tmarginx 7 # internal margin of text windows
201 tmarginy 7
202
203 leading 20 # Also known as linespacing
204 baseline 15 # Offset from top of line to baseline
205
206 # Fonts for Text Buffer windows
207 tfont 0 propr # Normal
208 tfont 1 propi # Emphasized
209 tfont 2 monor # Preformatted
210 tfont 3 propb # Header
211 tfont 4 propb # Subheader
212 tfont 5 propz # Alert
213 tfont 6 propi # Note
214 tfont 7 propr # BlockQuote
215 tfont 8 propb # Input
216 tfont 9 propr # User1
217 tfont 10 propr # User2
218
219 # Fonts for Text Grid windows
220 gfont 0 monor # Normal
221 gfont 1 monoi # Emphasized
222 gfont 2 monor # Preformatted
223 gfont 3 monob # Header
224 gfont 4 monob # Subheader
225 gfont 5 monoz # Alert
226 gfont 6 monoi # Note
227 gfont 7 monor # BlockQuote
228 gfont 8 monob # Input
229 gfont 9 monor # User1
230 gfont 10 monor # User2
231
232 # Fonts have gaps in their coverage of characters. Historically when your
233 # preferred font didn't support a particular character, Gargoyle rendered it as
234 # a question mark. Now GNU Unifont is included, and used as a fallback for
235 # glyphs that don't exist in the primary font. Unifont has complete coverage of
236 # the Basic Multilingual Plane and wide coverage of the Supplementary
237 # Multilingual Plane. However, it is a rather utilitarian font, so if you'd
238 # like to use different fonts as fallbacks, you can do so here. You can specify
239 # as many fallback fonts as you want, with the higher priority ones listed
240 # first. Unifont will still be used as a last resort.
241 #
242 # Unifont will substitute for both proportional and monospace fonts, but if you
243 # provide your own proportional substitute font, it will not look good in
244 # monospace. Therefore, when you supply your own fallback fonts, you can specify
245 # whether they are proportional, monospace, or both.
246 #
247 # You can specify as many fonts as you want, separated by space. First-listed
248 # fonts have higher priority.
249 #
250 # Font paths must be absolute: the behavior of relative paths is unspecified.
251 # Fonts can be OpenType, TrueType, or Type 1.
252 #
253 # The syntax is:
254 #
255 # glyph_substitution_file style /path/to/font [/path_to_font...]
256 #
257 # Where "style" is:
258 # • monor, monob, monoi, monoz, propr, propb, propi, propz
259 # (monospace/proportional regular, bold, italic, bold italic)
260 # • mono (all monospace styles)
261 # • prop (all proportional styles)
262 # • * (both monospace and proportional styles)
263 #
264 # Gargoyle will generate, as necessary, bold and italic styles, so if there's a
265 # font you like, but it only has, for example, regular and bold variants:
266 #
267 # glyph_substitution_file propb /fonts/Bold.ttf
268 # glyph_substitution_file propz /fonts/Bold.ttf
269 # glyph_substitution_file prop /fonts/Regular.ttf
270 #
271 # Or if a font only has regular:
272 #
273 # glyph_substitution_file prop /fonts/Regular.ttf
274 #
275 # Remember that the first-listed font has higher priority, so list more specific
276 # fonts first (e.g. propr before prop, and prop before *).
277
278 #===============================================================================
279 # Text LCD Filtering
280 #-------------------------------------------------------------------------------
281 #
282 # When using LCD subpixel rendering, the filter used (if not set otherwise) will
283 # be equivalent to the filter Gargoyle has always used. This looks fairly good
284 # without gamma correction, but might be blurrier than some people prefer.
285 #
286 # The available values for lcdfilter are:
287 #
288 # 1: none (equiv. custom filter: 0 0 255 0 0)
289 # This filter looks very ugly and is not recommended. However, it is the
290 # absolute sharpest, and when used with the correct gamma value on a high-
291 # DPI display, can give the clearest and sharpest possible text.
292 #
293 # 2: default (equiv. custom filter: 8, 77, 86, 77, 8)
294 # This is not the default filter for Gargoyle, but it is FreeType's default
295 # filter for LCD rendering. It's similar to Gargoyle's, but a tad sharper,
296 # and is color balanced (the values for the filter add up to 256), unlike
297 # Gargoyle's filter (which add up to less than - but close to - 256, which
298 # can sometimes lead to slightly pale colors when using gamma correction).
299 #
300 # 3: light (equiv. custom filter: 0 85 86 85 0)
301 # This filter is color-balanced like the default one, but is as sharp as
302 # possible while also attempting to eliminate color fringes caused by the
303 # use of subpixel rendering. However, while using 'default' will also help
304 # eliminate such color fringes while not using gamma correction (by setting
305 # gamma to 1.0), this 'light' filter is less forgiving. Using 'light' is
306 # generally recommended most when using the appropriate gamma correction
307 # for your display.
308 #
309 # 4: legacy (no equiv. custom filter; uses different algorithm)
310 # This filter is similar to 'none', but with its effect significantly toned
311 # down. The result is a very sharp filter that might not be TOO noticeable.
312 # However, it was designed for fully hinted text that's been snapped to the
313 # pixel grid of the display, and causes severe color fringes otherwise.
314 # Since Gargoyle does not use font hinting, the color fringes caused by
315 # this filter can be just as noticeable as the ones caused by 'none'.
316 #
317 # If any other value is set, the custom filter is used. If one is not set, the
318 # custom filter will use values equivalent to how Gargoyle has filtered subpixel
319 # text in the past. By default, Gargoyle does not use gamma correction.
320 #
321 # When using gamma correction and LCD subpixel font rendering, it's recommended
322 # to set lcdfilter to either 'default' or 'light'.
323 #
324 # If you choose your own filter, it's recommended to follow the advice at the
325 # top of the following FreeType documentation page:
326 # https://www.freetype.org/freetype2/docs/reference/ft2-lcd_rendering.html
327
328 lcd 1 # 0=grayscale 1=subpixel
329 lcdfilter custom # subpixel filter, set to 'default' if blurry
330 lcdweights 28 56 85 56 28 # custom filter, default is Gargoyle's own
331
332
333 #===============================================================================
334 # Colors and style definitions
335 #-------------------------------------------------------------------------------
336 #
337 # Default here is for black text on a white background.
338 #
339 # Depending on your screen you may want to tweak the gamma.
340 # Good values to try are 1.0, 1.8 and 2.2.
341 #
342 # There are separate colors for TextBuffer and TextGrid windows.
343 # TextBuffers are main text windows, TextGrids are used mainly for
344 # status bars and such.
345
346 gamma 1.0 # this affects text rendering, not other colors
347
348 caretshape 2 # 0=smalldot 1=fatdot 2=thinline 3=fatline 4=block
349 linkstyle 1 # 1=underline hyperlinks 0=don't underline hyperlinks
350
351 # moreprompt ( more )
352 # morealign 0 # 0=left 1=center 2=right
353 # morefont propb
354
355 windowcolor ffffff # overall window background color
356 bordercolor 000000 # border line color
357 caretcolor 000000 # input caret color
358 linkcolor 000060 # hyperlink color
359 morecolor 006000 # more prompt color
360
361 # Colors for text buffer windows
362 tcolor 0 000000 ffffff # Normal
363 tcolor 1 000000 ffffff # Emphasized
364 tcolor 2 000000 ffffff # Preformatted
365 tcolor 3 000000 ffffff # Header
366 tcolor 4 000000 ffffff # Subheader
367 tcolor 5 000000 ffffff # Alert
368 tcolor 6 000000 ffffff # Note
369 tcolor 7 000000 ffffff # BlockQuote
370 tcolor 8 006000 ffffff # Input
371 tcolor 9 000000 ffffff # User1
372 tcolor 10 000000 ffffff # User2
373
374 # Colors for text grid windows
375 gcolor 0 606060 ffffff # Normal
376 gcolor 1 606060 ffffff # Emphasized
377 gcolor 2 606060 ffffff # Preformatted
378 gcolor 3 606060 ffffff # Header
379 gcolor 4 606060 ffffff # Subheader
380 gcolor 5 606060 ffffff # Alert
381 gcolor 6 606060 ffffff # Note
382 gcolor 7 606060 ffffff # BlockQuote
383 gcolor 8 606060 ffffff # Input
384 gcolor 9 606060 ffffff # User1
385 gcolor 10 606060 ffffff # User2
386
387 # Instead of needing to specify individual colors, Gargoyle supports the concept
388 # of color themes, which set all possible colors at once. There are two
389 # hard-coded themes: "light" and "dark". In addition, there is a pseudo theme
390 # called "system" which attempts to follow the system theme, setting a dark or
391 # light theme as appropriate.
392 # Gargoyle also comes with several other themes, and you can provide your own
393 # themes as well. To see a list of available themes, use Shift-Control-T while
394 # Gargoyle is running. To see a list of theme paths (where you can add your own
395 # themes), use Control-period. MacOS users substitute Command for Control.
396 # This must come after all other color settings, or they will override the theme.
397 # See THEMES.md for information on how themes are created.
398 theme system
399
400 #===============================================================================
401 # Text-to-speech (TTS)
402 #-------------------------------------------------------------------------------
403 #
404 # Gargoyle can be built with text-to-speech capability. If so, the
405 # following options control it.
406
407 speak 0 # 1=enable TTS, 0=disable TTS
408
409 # The following apply only if TTS is enabled.
410 # speak_input 0 # 1=speak input the player types, 0=don't speak input
411
412 # speak_language en # if supported by the TTS engine, the language used
413 # for synthesis, as described by RFC 1766. Currently
414 # supported on OS X, and Unix with speech-dispatcher.
415
416
417 #===============================================================================
418 # You can add sections here to over-ride settings. List all the executables to
419 # be affected in the [ selector list ]. The name of game file can also be used
420 #-------------------------------------------------------------------------------
421
422 [ trinity.z4 ]
423 mincols 62 # Trinity requires at least 62 columns
424
425 [ winter.z5 ]
426 mincols 78
427 minrows 26 # Winter Wonderland contains ASCII art
428
429
430 #===============================================================================
431 # You can specify the default interpreter for game types. List all extensions to
432 # be affected in the [ selector list ]. The name of a game file can also be used
433 #-------------------------------------------------------------------------------
434
435 # Zcode game types
436 # [ *.z3 *.z4 *.z5 *.z6 *.z7 *.z8 *.zlb *.zblorb ]
437 # terp bocfel
438
439 # Glulx game types
440 # [ *.ulx *.blorb *.glb *.gblorb ]
441 # terp git
442
443 # Superglus games require Glulxe
444 # [ *.blb ]
445 # terp glulxe
446
447 # Override for specific game
448 # [ Floatpoint.zblorb ]
449 # terp glulxe
450
451 # Gargoyle's Magnetic Scrolls interpreter has several graphics-related
452 # extensions, selected by passing options to the interpreter.
453 #
454 # -sc: Integral value by which images are scaled. Defaults to 2. Can take any
455 # value from 1 to 8.
456 # -gp: Integral value specifying the percentage of vertical space taken up by
457 # the graphics window. Defaults to 60 (so the top 60% of the window is
458 # dedicated to images). Can take any value from 1 to 100.
459 # -gx: Integral value specifying the absolute height of the graphics window in
460 # pixels. If specified, takes precedence over -gp. Can take any positive
461 # value.
462 #
463 # [ *.mag ]
464 # terp magnetic -sc 3 -gp 40
465
466
467 #===============================================================================
468 # ADRIFT 5 conventionally present colored text on a dark background (because
469 # that is the system's default, and the majority of games lean into it). Conform
470 # to this convention to ensure that hyperlinks don't go invisible, and to remove
471 # annyoing light borders.
472 #-------------------------------------------------------------------------------
473 [ FrankenDrift.GlkRunner FrankenDrift.GlkRunner.Gargoyle ]
474 theme dark