Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alt text feature request #11

Closed
monroews opened this issue May 28, 2020 · 9 comments
Closed

alt text feature request #11

monroews opened this issue May 28, 2020 · 9 comments

Comments

@monroews
Copy link

For ADA compliance it would be great if there were a way to add alt text that would be available with the picture of the equation. With the current system if I add alt text in powerpoint, then if I regenerate the equation the alt text is deleted. So it would be awesome if there were a way to include the alt text in the LaTeX editor.

This is part of a larger effort to make our PowerPoint slides ADA compliant for online teaching.

Thanks for amazing software!

@Jonathan-LeRoux
Copy link
Owner

Thanks for the suggestion. I can look into this, but I'd like to know more about the desired outcome.
I think it is feasible to programmatically set an alt text to a display in Powerpoint, but we need to decide what to put in it.
The easiest thing I see is to simply put the full LaTeX text in the alt text.
A slightly more involved option would be to only include what is inside the \begin{document}...\end{document}.
Yet another option would be not to try to put anything in the alt text automatically, but to keep whatever is in there. Or to put the LaTeX content when creating a new display, but keep whatever is in there when editing.
I would be inclined to think that the simplest option is also the best, because it's the only one that guarantees the alt text actually matches the content of the display, even if it's not very readable.
What do you think would be the most useful for ADA compliance?

@monroews
Copy link
Author

I'm trying to get more guidance on what is needed for ADA compliance and I'll post that as soon as I get it. It appears that MathML might be a good option for the alt text. I agree that simple is better and an ideal solution would be the LaTeX code.

I like the idea of putting the LaTeX text in the alt text.
That alt text should be updated to match any edits to the equation.
This option would also make it easy for anyone to copy the LaTeX equation even if they don't have IguanaTex and that would be handy for my students.

It isn't clear to me if you'd be able to know if the content of the alt text was originally created by IguanaTex or by the user. If you can't tell, then I'd always update the alt text to match the equation.

@Jonathan-LeRoux
Copy link
Owner

It would be great if you could look into alternative options for the alt text. I agree tat the only reasonable way forward is something that gets automatically created from the LaTeX source, every time, to make sure it's consistent with the content. Maybe converting to MathML could help with that, but I'm thinking that it is very likely to break very often, whenever a user creates a table, a complicated graph, etc.
So my inclination would be to put whole LaTeX source in the alt text. That would have the added benefit, as you mention, that people without IguanaTex may be able to retrieve the underlying source.

@Jonathan-LeRoux
Copy link
Owner

The implementation of the simple version we mentioned is really trivial.
Just adding the following lines at Line 777 of LatexForm.frm:

    If UseEMF = True Then
        newShape.Title = "IguanaTex Vector Display"
    Else
        newShape.Title = "IguanaTex Bitmap Display"
    End If

Here is the .pptm file, please git it a try (unzip, open, "save as" a .ppam, then load the add-in): IguanaTex_v1_58.zip

@monroews
Copy link
Author

monroews commented Jun 3, 2020 via email

@Jonathan-LeRoux
Copy link
Owner

Hi Monroe,

I'm a bit ambivalent about including the preamble or not. I agree that the screen reader won't be great with all the preambles, but it won't be great even without it, so I thought we might just put the whole source code so that at least people who don't have IguanaTex can take it and compile the code. I guess I could make that an option, although that would require a bit more work.

Thanks,
Jonathan

@monroews
Copy link
Author

monroews commented Jun 3, 2020 via email

@Jonathan-LeRoux
Copy link
Owner

Got it, I'll put this on the back burner for now.
Best,
Jonathan

@Jonathan-LeRoux
Copy link
Owner

Alt text now includes the LaTeX source since v1.58. I don't think there's a better alternative for ADA compliance that can be realistically implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants