azbycxdw909 / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

Highlight pattenrs #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Playing IF with complicated maps (e.g. Zork or Anchorhead) and having to
skim through the long description of rooms to look for directions.

What is the expected output? What do you see instead?
A possibility to highlight certain words would be nice, simple
pattern/string matching. For example, one could add those lines to garglk.ini

  highlight "northeast" bold #ff0000
  highlight "northwest" bold
  highlight "southeast" bold
  highlight "southwest" bold
  highlight "north" bold
  highlight "east"  bold 
  highlight "south" bold
  highlight "west"  bold #00ff00

Those terms would then be highlighted in the text bold, and for 'east' blue
and red for 'northeast', therefore making it easier to seperate scenic
description and information about from directions to linked locations.

What version of the product are you using? On what operating system?
gargoyle-2008-11-22-sources_rc4

Please provide any additional information below.

Patterns might even be regular expressions. That would be powerful and
flexible, though probably over-kill for an interactive fiction client. As I
can't think about cases where simple string comparison wouldn't suffice, I
don't think regexps would be necessary.

Original issue reported on code.google.com by unixprog@googlemail.com on 28 Nov 2008 at 9:54

GoogleCodeExporter commented 8 years ago
My main concern with this is that applying bold and/or a highlight color would
trample on any style hints that the author provides.  Granted, most authors 
don't
seem to bother, but I'd like to make sure Gargoyle plays nice if they make that 
extra
effort.  

Original comment by bcressey@gmail.com on 29 Nov 2008 at 6:15

GoogleCodeExporter commented 8 years ago
Yes, client-side highlighting might change the formatting the author intended, 
but I
would look at it from an accessibility perspective: Changed or missing 
formatting has
little impact on the semantics of most IF games, but being able to highlight 
patterns
based on the user's preference can improve the semantics. Players with poor 
eyesight
(or a short attention span...) can find directions without the hassle to read 
every
description again and again or resorting to external mapping (with ifm and the 
like).

I also saw references to text-to-speech features in the sources. Though I don't 
know
to what extent this is actually implemented and how to use it, highlighting 
might
even be useful here to "markup" directions in a way the tts engine can 
understand it
and optionally give a blind user just the possible directions without the
descriptions (something like a client-side terse/brief mode, where gargoyle 
sees the
long description but outputs just the matched patterns). I'm just thinking 
loudly of
course...

Plus, it would be optional. Nothing added to garglk.ini (or however it would be
implemented) - nothing changed in the formatting.

Original comment by unixprog@googlemail.com on 29 Nov 2008 at 8:16

GoogleCodeExporter commented 8 years ago

Original comment by bcressey@gmail.com on 1 Dec 2008 at 4:38

GoogleCodeExporter commented 8 years ago
I have grown steadily less enamored with the ini format over the years, and I 
am reluctant to add any new directives, however useful.

Original comment by bcressey@gmail.com on 17 Aug 2010 at 9:12