Speech-Rule-Engine/speech-rule-engine

data-semantic-speech for image alt unexpectedly cut off after semicolon

pkra opened this issue · 1 comments

pkra commented

E.g., \\img[][115pt][114pt][hello; world]{Images/tikz.svg} (using https://github.com/pkra/mathjax-img/)

Before enrichment, I get src="Images/tikz.svg" alt="hello; world".

After enrichment, src="Images/tikz.svg" alt="hello; world" [...] data-semantic-attributes="ext-speech:hello; world" data-semantic-postfix="image" data-semantic-speech="hello"

pkra commented

The original full example was something like

\begin{equation} 
x = 
\vcenter{\img[][115pt][114pt][{\begin{tikzpicture} \draw(-2,0) -- (2,0); \filldraw[gray] (0,0) circle (2pt); \draw(-2,-2) .. controls (0,0) .. (2,-2); \draw(-2,2) .. controls (-1,0) and (1,0) .. (2,2); \end{tikzpicture}}]{Images/tikz.svg}}
 \cssId{tikzPic}{\tag{19}} 
\end{equation}