Toggle Alt‐Text on Images - B3P15/CSC-403-nvda-project GitHub Wiki

Author: Logan Coker

Incomplete Issue

Description

Referenced Issue: Here

  • On webpages, images sometimes have un-useful alt-text descriptions, even being gibberish sometimes. Some users wanted a way to turn off the reading of alt-text on images

General Approach

  • Solution 1 (failed): I first tried to go directly to the source and stop the alt-text while the pages were being parsed. However, this was in a c++ file, outside of the source directory, aka. the majority of the code, so I ran into may issues trying to talk between the files. Because the user setting is created in source, and in a python file, it is very difficult and convoluted to create a link to the c++ file. After exploring this path a bit, I decided to abandon this route and choose a different solution.
  • Solution 2 (in progress): So instead, I have started to look into where, in the python files in source, read the c++ files to get the data to read and speak out. I have found the proper files, but am struggling to find where exactly and how the file reads it to put in the conditional.

What Went Right

  • Spent a large time searching through and understanding the codebase, including some of the lower level processes that need to happen in order to read the screen.

What Went Wrong

  • Obviously, I spent nearly half the sprint working on the first solution, for it to not work, causing me to lose all the time and not allow me to finish the issue in time.

Next Steps

  • Finish exploring the code to find exactly here to add my solution and test it.