intfiction.org

The Interactive Fiction Community Forum
It is currently Wed Nov 22, 2017 7:51 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next
Author Message
PostPosted: Mon May 09, 2016 9:01 am 
Offline

Joined: Thu Apr 19, 2012 9:21 am
Posts: 291
I'm not sure the type of command prompt matters. The default is fine for me. I think the only danger of having text would be that some new players may not realize they don't have to listen to the whole prompt. Short might be better, but the difference in time to read out "greater" or "what next" or even "what do you want to do now?" is probably negligible. Again, it probably just becomes background noise.

I think it should be consistent, though, otherwise some people might wonder why it's changing and focus on the prompt as part of the game.

Neil


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon May 09, 2016 12:34 pm 
Offline

Joined: Thu Oct 30, 2014 12:10 pm
Posts: 613
I've made a small extension out of the code I posted earlier and posted it on github. It's called "Spelling for Screenreaders." You can find it here: https://github.com/i7/extensions/blob/m ... eaders.i7x


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu May 26, 2016 3:36 pm 
Offline

Joined: Thu Oct 30, 2014 12:10 pm
Posts: 613
After thinking about this some more, I wondered if something more flexible than my previous code would be potentially more useful. I'm thinking of code that would allow the player to request the spelling of any visible thing. Like this:

Code:
A thing has a number called a spelling reference number.

Listing visible items for spelling is an action out of world.
Understand "list all" as listing visible items for spelling.

Check listing visible items for spelling (this is the clear all spelling numbers before assigning new numbers rule):
   repeat with item running through things:
      now the spelling reference number of item is 0.

Carry out listing visible items for spelling (this is the list the visible items and their spelling numbers rule):
   say "To spell the name of something, type the word SPELL followed by a number.";
   let N be 0;
   repeat with visible item running through the list of visible things:
      increment N;
      now the spelling reference number of visible item is N;
      let current name be the printed name of visible item;
      say "To spell [current name in upper case], type [spelling reference number of visible item].".
      

Spelling a numbered word is an action applying to one number.
Understand "spell [number]" as spelling a numbered word.

Check spelling a numbered word (this is the make sure there is a visible item with the given spelling number rule):
   repeat with visible item running through visible things:
      if the spelling reference number of the visible item is the number understood:
         continue the action;
   say "There are no visible things assigned the number [number understood]. To list visible things and their numbers, type LIST ALL." instead.

Carry out spelling a numbered word (this is the spell the word that has the given spelling number rule):
   repeat with visible item running through visible things:
      if the spelling reference number of the visible item is the number understood:
         let current name be the printed name of the visible item;
         say "[Current name in upper case] is spelled[run paragraph on]";
         repeat with N running from 1 to  the number of characters in current name:
            say " ";
            let current letter be character number N in current name;
            if current letter is " ":
               say "space";
            otherwise if current letter is "-":
               say "hyphen";
            otherwise if current letter is "[']":
               say "apostrophe";
            otherwise if current letter is ".":
               say "[if American dialect option is active]period[otherwise]full stop[end if]";
            otherwise:
               say current letter in upper case;
         say ".".
         
         
         
Place is a room.

Glove is a thing in Place. The printed name of the glove is "Ms. Everly Hopkins-Browning[']s glove".

The player carries a phx-bljv.

Test me with "list all / spell 1 / spell 2 / spell 3 / spell 4".
      


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun May 29, 2016 8:16 pm 
Offline

Joined: Thu Apr 19, 2012 9:21 am
Posts: 291
This would be useful when the author isn't sure which words are going to be a problem. It also has the advantage of reading aloud punctuation. The verbosity of screen readers can be adjusted, and some players may not have them set to read aloud marks like hyphens or apostrophes. At low verbosity, words like "F.B.I." would be pronounced "F B I."

Neil


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Jun 01, 2016 10:32 pm 
Offline

Joined: Thu Oct 30, 2014 12:10 pm
Posts: 613
Thanks Neil! I've made a small extension out of this code as well, called "Simple Spelling," and put it on Github for now.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Sep 01, 2016 10:33 am 
Offline

Joined: Sat Oct 04, 2008 9:21 pm
Posts: 224
Screen reader support is something I have considered for TAVERN, although details are not currently defined. It is my intention that with this, control character 22 and the SPEECH.SYN lump can be used to control the speech synthesizer in text output, and that the FEATURE? opcode (when given the correct feature code as input) can be used to allow the game to check if a speech synthesizer is being used.

With help of people who understand these things more, we can add these specifications to TAVERN wiki.

One thing is that some word have same spelling but are pronounce differently, so this is one thing that has to be taken into account. Other thing is if it is not a real word then you should indicate not only the spelling but also pronounce, so that the computer can prounce it correctly.. There are also many other kind of things.

_________________
.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Nov 26, 2016 6:08 pm 
Offline

Joined: Fri Oct 18, 2013 10:13 am
Posts: 2468
Location: The Midwest
Is there a footnote style which is preferable for screen readers? For instance, is one of these three styles preferred over the others?

Asterisks:
Code:
ELIXIR OF LIFE Study Aid

Can't stay awake in class? Spent half the night studying for an exam? Forget about setting an alarm! Simply throw an ELIXIR OF LIFE* packet against a hard surface, and everyone in the vicinity** will be wide awake in seconds!

* Registered trademark of the Frobozz Magic Stimulant Company
** Only useful in enclosed*** spaces
*** Hermetically sealed


Varying symbols:
Code:
ELIXIR OF LIFE Study Aid

Can't stay awake in class? Spent half the night studying for an exam? Forget about setting an alarm! Simply throw an ELIXIR OF LIFE* packet against a hard surface, and everyone in the vicinity† will be wide awake in seconds!

* Registered trademark of the Frobozz Magic Stimulant Company
† Only useful in enclosed‡ spaces
‡ Hermetically sealed


Inline:
Code:
ELIXIR OF LIFE Study Aid

Can't stay awake in class? Spent half the night studying for an exam? Forget about setting an alarm! Simply throw an ELIXIR OF LIFE (registered trademark of the Frobozz Magic Stimulant Company) packet against a hard surface, and everyone in the vicinity (Only useful in enclosed (Hermetically sealed) spaces) will be wide awake in seconds!

_________________
Daniel Stelzer


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Nov 27, 2016 4:45 am 
Offline

Joined: Mon Nov 19, 2012 4:51 pm
Posts: 209
Location: UK
I tried the quotes in NVDA. I'm not an expert so you should seek more reports. For what it's worth, with my configuration, NVDA reads asterisks (*) as "star". The other symbols, cross and vertical double-cross († ‡) were not vocalised.

I found "star" versus "star star" less easy to distinguish than numbered footnotes ("1" versus "2"...). Using a hypertext link for each reference with a target to the respective footnote would be convenient. Screen readers support hypertext links in HTML.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Nov 27, 2016 3:55 pm 
Offline

Joined: Thu Apr 19, 2012 9:21 am
Posts: 291
The screen reader JAWZ does read out the symbols, but I think it is always safest to assume some readers won't. I like the numbered footnotes, and they are probably the safest to use because all readers recognize numbers (but not necessarily as superscript; parentheses are okay).

My reader won't announce hyperlinks coded in Inform, although I can click them. If I remember correctly, the links do "appear" on their own line in online interpreters (e.g., Quixe), but users of newer versions of JAWS can customize the software such that links aren't read out this way, and they may therefore be indistinguishable from regular text.

If you want to use hyperlinks in an Inform game, and you want visually-impaired players to recognize and use them, you should probably mark them somehow, with an asterisk for example.

Neil


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Nov 28, 2016 10:56 pm 
Offline

Joined: Sat Oct 04, 2008 9:21 pm
Posts: 224
The problems here then is that the VM does not support these kind of screen reader hint and that can cause the problem. In VMs that can use HTML output, then you could also perhaps to use CSS to control the speech synthesis (and PLS for pronunciation). For non-HTML systems, a different way can be used (which is what I am intending to do with TAVERN).

_________________
.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group