johnwdubois / rezonator

Rezonator: Dynamics of human engagement
35 stars 2 forks source link

"w" key cycles through DisplayTokenList (basic) #786

Open johnwdubois opened 3 years ago

johnwdubois commented 3 years ago

Background

  1. The user should be able to easily change which field is the "display token", which is shown on the main Rezonator screen.
  2. Currently this can be done by clicking on a radio button in the Unit or Chunk tab of the Nav window (right pane), which selects the "Display Token".
  3. For example, the user might want to quickly alternate between displaying the following token fields in the main screen:
    • "text" and "transcript"
    • "morph" and "gloss"
    • "text" and "transcript" and "gloss"
    • etc.

What to do

  1. Rezonator should remember the last three options that have been selected for "Default token".
  2. This can be a simple list of 3 fields (as exemplified above) stored in a variable called DisplayTokenList.
  3. When the user presses the "w" key, the "Display Token" shown on the main screen should cycle between the options in the DisplayTokenList.
  4. For example, the desired result is (for example) that pressing the "w" key could be used to cycle between the following 3 Display Token fields:
    • "morph"
    • "gloss"
    • "transcript"
  5. If the user has clicked on only 2 of the radio buttons, then the DisplayTokenList. has just 2 fields, and the "w" key cycles between these 2.
  6. If the user has clicked on 4 radio buttons, then the DisplayTokenList forgets the 4th one, retaining only the most recent 3.
  7. If the user has clicked on only 1 radio button, or none, then the "w" key does nothing.
  8. Remember the user's DisplayTokenList as part of the .rez file, so it is there when the file is opened.

User test for DisplayTokenList

  1. Do this test twice, once using the current system (without the "w" key), and once using the new system (with the "w" key). For now, the second "test" can be imaginary -- just ask the user what they think would be different if they could use the "w" key.
  2. Import an Interlinear Glossed Text (for example, the Nuuchahnulth text “DogChildtren.txt”).
  3. Use the Track tool to make some Tracks (in several different Trails) following the sequence described below.
  4. After every Track you make, check the value of GapWords in the Track tab. (This is to ensure that the focus of attention is on the Track tab.)
  5. Set “gloss” (\gl) as the display token (using the radio buttons in the Unit tab).
  6. Look for tokens (morphemes) that have a “3” in the gloss, and add 4 of these to a new Trail (= Trail 1).
  7. Read off the GapWords values for the Tracks in this Trail.
  8. Set “morph” (\m) as the display token (using the radio buttons in the Unit tab).
  9. Look for tokens (morphemes) that begin with a “q” in the morph display, and add 4 of these words to a new Trail (= Trail 2).
  10. Read off the GapWords values for the Tracks in this Trail.
  11. Advance to the next screen (using PageDown) and start some new Trails, alternating between Tracks based on the \gl and tracks based on \m.
  12. Do it all again (and again…) Cycle repeatedly through 4-6 again, keeping an eye on the GapWords after every click.
  13. Ask yourself, Is there a better way to do this? Imagine pressing the “w” key to immediately switch between the target language (\m) and the glosses (\gl). Would this make the workflow easier?

See also

1011

johnwdubois commented 3 years ago

When there are only 2 entries in the DisplayTokenList, Rezonator still requires 3 presses of the "w" key to get back to the other display token selection. At a certain point, pressing the "w" key does nothing -- you have to press it again to achieve the desired result. Fix: This should not be necessary. If there are only 2 items in DisplayTokenList, 2 keypresses should complete the cycle.