Hacker News new | ask | show | jobs
by Bryan22 4862 days ago
This seems to me, like the least efficient method ever for dealing with the problem. Ok you want to find 'rivers' in text. To do so you have to turn that text into an image and then run it through your app, then go back and manually correct the problem? What was the point of the app again? I don't care if it took 1 line of code or 1000, this seems completely useless, when the anomaly is blatantly obvious when proofreading. Not to mention if you wanted to fix it dynamically, you'd end up with an image of a block of text instead of text, no big deal for print, but devastating for SEO.. "ok smart ass what would you recommend?" is that what your thinking? Well, since you asked; why not take an open source text editor and add an algorithm that stores each line of text in an array, find the index of all the spaces and compare it to the previous and next lines of text. If the index of spaces are relatively 0 between lines; you have a river. If the indexes increment or decrement; you have a river. Now add an extra space somewhere or move the last word on the last line to the next line. Whatever solution is most aesthetically pleasing. Now your rivers are getting fixed on the fly and you don't need to take a screenshot of a block of text to analyze it. Maybe I missed the point of the article, but i thing those of you praising their solution aren't taking into account what the problem actually is, and the fact that their app doesn't actually include a solution to the problem.