August 7, 2012, 7:36pm
i´m trying to visualize some twitter content and i´m having problems warping the words.
The idea is to obtain a 256 characters string for every twitter message, wit 16 characters per line, filling the empty characters with spaces.
Thanks in advance,
WordWrap_Test.zip (3.1 kB)
Not sure if you want to use wordwrap. From what I understand you want to format the srings regardless of what the end font will be? Had a quick crack at it- hope it helps…
StringFormatThing.v4p (12.0 kB)
August 7, 2012, 8:17pm
WordWrap_Test2.v4p (5.7 kB)
August 7, 2012, 8:18pm
uff uff. everyone is quicker than me.
August 7, 2012, 8:43pm
the examples look nice but they cut the words, this would be the reason to use wordwrap.
Thanks a lot guys, it helps a lot.
August 7, 2012, 8:58pm
hm, i think the best way is to use the chrome renderer from the alpha version. you can use css to place/align/whatever the text and finally receive a texture with the resolution you want.
August 7, 2012, 9:07pm
nice tip, i´ll check it if my the idea doesn´t work.
Due the setup´s (big) size i have to use vectorial information instead of render the twits into textures.
uumm Looking at the wordwrap node, i see a formerIndex output pin that could be the useful.
ahh sorry lasal, had a feeling was missing something…
Another try :P
StringFormatThingII.v4p (7.6 kB)
August 7, 2012, 10:16pm
i´ve found it :)
and when the string is longer than 16 char, works fine.
Thanks everyoneishappy, it seems that we had the same idea.
WordWrap_Test.rar (5.8 kB)
August 7, 2012, 11:46pm
Thanks guys, i was stumbling over other day.
@lasal: if you coincidentally can filter avatar pics from Twitter body, let me know pls
August 9, 2012, 11:38am
Hey DiMiX, nice question,
actually i´m looking for a way to filter all links ( http://blablabla)
August 9, 2012, 1:22pm
with RegExpr (String Replace)is possible to delete the links, but since they have different lenght, sometimes it doesn´t work.
Is there any expression to erase all the content from the “http://” to the end of the line?
Most of the twitts have the links at the end.
August 9, 2012, 2:20pm
i guess someone is already faster but here is a regexpr-free way…
WordWrap_Test3.v4p (4.1 kB)
August 9, 2012, 4:26pm
it looks clever and elegant but i don´t know why it doesn´t work as expected on my setup.
I´ve attached other version which filters the links with RegExpr, it has still some errors with large words, mostly in German language.
if someone knows how to fix it, please let me know.
WordWrap_5.zip (3.6 kB)
August 9, 2012, 5:14pm
Thanks Everyone, it looks very useful.
August 9, 2012, 5:27pm
Interesting behaviour (bug?) with wordwrap:
Not the first but the subsequent slices have a space at the begining, it would be better to obtain several slices without any space at the begining.
WordWrap_BUG.v4p (4.5 kB)
August 10, 2012, 11:35am
Founded a way to avoid the Wordwrap issue.
Word_Wrap_6.zip (4.9 kB)