WordCram 0.5.5 released

This release is mostly a fix for issue #4. dbasch couldn’t make a word cloud, because cue.language couldn’t decide what language his text was in. Next time cue gets confused, instead of stopping the whole show, WordCram will gracefully ignore it, and include the word.

I also made public some classes that weren’t before: BBTree, BBTreeBuilder, and WordShaper. If you’d like to make Processing sketches that do overlap-checking like WordCram does, but your shapes aren’t necessarily words, these might help you; you can see how they’re used by looking at the code in the WordCramEngine class. (Making them public also makes it easier for me to experiment with changing WordCram’s layout algorithms.)

As usual, you can download the new version at github. Happy word cramming!

About these ads
This entry was posted in release. Bookmark the permalink.

4 Responses to WordCram 0.5.5 released

  1. Just starting to play with this library, any idea why I get an ArrayIndex out of bounds exception when I try to load a text file with only single letters?

    My goal is trying to use my (very limited) processing knowledge to size and place random letters on the canvas, without overlap. Any help there would be great.

    • It’s hard to say – can you post the stack trace, or the sketch code & text file?

    • @JohnnyMcNugget, I think the problem is that cue.language can’t guess what language your text is in, since they’re all single letters. I’ll soon be releasing an update that has better error messages around this, but you’ll probably still have the same problem.

      Check out the example sketch that comes with WordCram, I_weightYourOwnWords (or you can see the source at https://github.com/danbernier/WordCram/blob/master/example/tutorial/I_weightYourOwnWords/I_weightYourOwnWords.pde) – it does basically what you’re trying to do. The reason this works is that you’re providing your own Word objects, instead of letting cue.language (via WordCram) count them up for you.

      HTH!

      • johnnymcnugget says:

        Thanks! Will look into this. Its a really helpful library. I had circumvented with my own solution using a listed array and rand() frequencies to generate, but id always prefer to point it at a dataset rather than define it in the pde.

Comments are closed.