7 ms·
Ask HN: Why is WolframAlpha serving rendered text images instead of plain text?
I am after some thoughts on why they would be doing this. I am a developer/designer and cannot think of any good reason for doing what can be done in CSS. Any ideas?
Sample : http://www4d.wolframalpha.com/Calculate/MSP/MSP6202195gdebi63ebi5b100001e27378a70be39cd?MSPStoreType=image/gif&s=46
* srry, for unclickable link
- old-gregg 17y agoTo make you pay for the API.
- esonica 17y agoits not like they hide the text that much though; jsonArray.popups.i_0100_1 = {"stringified": "Brisbane,Queensland","mInput": "","mOutput": "", "popLinks": {"Brisbane, Queensland":"Brisbane"} };
- nimbix 17y agoEach image tag also has its source data embedded in its alt attribute.
- Scriptor 17y agoThe text is in the alt attribute of each image's HTML element. So it should be a breeze to scrape it.
- auston 17y agoI don't know for sure - but my guess is mathematica outputs images?
- Oompa 17y agoIt can, and it looks like they're making mathematica just render things as images, instead of parsing in text and then reformatting it as HTML.
- Skeuomorph 17y agoThis guess makes the most sense: to correctly display formulae. An example from another thread: http://imgur.com/gcymm.png http://imgur.com/gcymm.png
- chris24 17y agoHow strange... from their FAQ (under Web and other Practicalities - http://www.wolframalpha.com/faqs.html http://www.wolframalpha.com/faqs.html): "Do I need images enabled in my browser to use Wolfram|Alpha? Yes. All its output content is rendered as images, for consistency." Perhaps they didn't want to make sure the data was styled & displayed well in all browsers (ahem... ie6)? clickable: http://www4d.wolframalpha.com/Calculate/MSP/MSP6202195gdebi63ebi5b100001e27378a70be39cd?MSPStoreType=image/gif&s=46 http://www4d.wolframalpha.com/Calculate/MSP/MSP6202195gdebi6...
- nimbix 17y agoWhile consistency is a good thing, it comes at a relatively high price in this case. Many blocks could be rendered just fine using only HTML and I'd be a much happier user if I could copy text from the search results.
- chris24 17y agoIndeed. FYI, if you click on any text in the search results, you're given a text field with its text within it. It's a few extra clicks, unfortunately, but at least they considered that.
- jonknee 17y agoPretty pathetic as it breaks the site for people with less than perfect vision. I mean they obviously take advantage of machine readable data to populate their database, pretty lame to not spit it back out. Not to mention a huge server overhead--this was a calculated decision.
- Scriptor 17y agoDon't most screen readers read out the alt text of an image? (Yes, the hint here is to check the alt text of the image).
- tlrobinson 17y agoRecent versions of at least Safari and Firefox have full content zooming, so it zooms images along with the text. Screen readers will read the text in the "alt" attribute of the image, which matches what the image says usually.
- pj 17y agoThe special font may not be on every user's computer. Which font is that?
- deleted 17y ago[deleted]
- Skeuomorph 17y agoPerhaps they don't want other search engines 'learning' the questions (via phrases hyperlinked to wolfram) and displaying the answers as summary text?
- Scriptor 17y agoAgain, the text of each image can be found in the image element's alt attribute. Since WA already uses images to make formulas easier to print out, I guess Wolfram simply wanted to reuse the code.
- Skeuomorph 17y agoTurns out, Google is indexing the questions: http://www.google.com/search?q=site:wolframalpha.com+inurl:input&hl=en&filter=0&cad=h http://www.google.com/search?q=site:wolframalpha.com+inurl:i... The "meaning of life" and "the ultimate answer" questions feature highly. But even more people seem curious about "unemployment rate in USA". The answers are not in Google's summary.
- auston 17y agoIn addition to what Scriptor had to say - I don't think those images would be a challenge for Google's OCR (Optical Character Recognition).
- kailoa 17y agoI'd assume that not everything that WA puts out will be text or tables. They've got graphs, complex mathematical formulas, general purpose image manipulation and who knows what else. It may have made sense to "unify" the rendering engine. This makes the simple case you point out look silly of course.
- aaronsw 17y agoI asked Stephen Wolfram about this and he explained that it was because sometimes the answers contain complex mathematical formulae that are difficult to render in HTML and that since he wanted a consistent display, his preferred solution was to just use images all the time.
- vamsee 17y agoAny idea if they use TeX or MathML for this?
- tlrobinson 17y agoWolfram|Alpha is written in Mathematica (several million lines of it!), so I presume they're just using Mathematica to render everything. You can actually download a Mathematica worksheet for any query response and open it up in Mathematica. Pretty neat.
- Herring 17y agoWikipedia occasionally has complex mathematical formulae & it seems to be working fine. This isn't a hard problem.
- andylei 17y agothose formulae are rendered as images
- wmoxam 17y agoWe actually do the same for math equations in LearnHub lessons (via texhub.com). Images are pretty much the only way to present complex math equations to a wide audience. MathML would be a much better solution only if it were natively supported in IE.
- PaulTopping 17y agoOur free MathPlayer plugin for IE enables it to display MathML. Except for having to be installed, it is as "native" as it can get. It even works with screen readers to speak the math for those that need that. See http://www.dessci.com/mathplayer http://www.dessci.com/mathplayer.
- wmoxam 17y agoThanks Paul. I'm aware of Math Player, but I don't like the tradeoff of forcing our users to install a plugin for superior display quality/customizability vs. "it just works". The nature of our user base just doesn't make it feasible IMO. I would be more willing to take that tradeoff in a LCMS environment though.
- wdr1 17y agoI don't know if I buy the consistency answer. There's ways to do that (even with complicated formula), but it is an interesting way to avoid x-browser CSS issues. My own hunch is they did it to avoid scraping/botting. Hopefully they switch to text at some point in the future.
- andylei 17y ago> My own hunch is they did it to avoid scraping/botting the text is in the alt attribute of the image. easily scraped.