This is very nice and will probably make life a lot easier for some people.
I think that a more user-friendly approach to the scrolling textbox would be to just have the box expand to fit text on multiple lines. I'm not sure why, but the way it works now feels... claustrophobic?
Away from the forums, hopefully for the time being.
Posts
326
Re: Troll text transmogrifier thingy
Looks like TA also turns "together" into "twogether" and "tonight" into "twonight." Maybe the code should have " to" changed to " two" (both with the space in the front). Unless that causes other problems . . .
Also, I really like this. I wish I had a greater supply of things for these guys to say.
tA now changes "to/too" into "two" when it's at the beginning or end of a word, but not in the middle. (Thanks romanticistCaveman.)[/*:m:14dez378]
Again, Control+F5 if you don't see them right away.
And yes, I do know that the position of the troll headshots could use some work. I had to give up a lot of positioning info to get multiple lines working right.
ii faiil two 2ee what you are complaiiniing about. YOU C4N S1MPLY CORR3CT 4NY M1ST4K3S ON YOUR OWN! Also Add Me To The List Of People Requesting That You Make The Text Boxes Automatically Expand
Alright, finally. You've asked for it, and I've implemented it...
Text fields now automatically resize to grant extra room[/*:m:2rur4bqm]
Note that this is still a beta feature though, and being beta has some problems. The main one I've noticed is if the output text is longer then the input text, the output box won't grow until the input one does. I've decided to not do each box individually, but instead only grow the input box and just keep the rest of the boxes at the same size. I hope this makes sense.
wh0 w0uld even make these c0nksuck b00ts anyways imigrants
wHO WOULD EVEN MAKE THESE CONKSUCK BOOTS ANYWAYS,,,,,, iMIGRANTS,,,,
who would even make the2e conk2uck boot2 anyway2...... iimiigrant2??..
WHO WOULD EVEN MAKE THESE CONKSUCK BOOTS ANYWAYS...... IMIGRANTS??..
:33 < who would even make these conksuck boots anyways...... imigrants??..
Who Would Even Make These Conksuck Boots Anyways Imigrants
WHO WOULD 3V3N M4K3 TH3S3 CONKSUCK BOOTS 4NYW4YS 1M1GR4NTS
WhO WoUlD EvEn mAkE ThEsE CoNkSuCk bOoTs aNyWaYs...... iMiGrAnTs??..
Two things are wrong here:
[list=3:k7rz9vsw][*]Words like "onto" and "into" are changed into "ontwo", but only on the first occurrence.[/*:m:k7rz9vsw][*]Words like "tool" are changed into "twol", which is silly.[/*:m:k7rz9vsw][/list:k7rz9vsw]
I dug into your javascript. The first one is easy to fix: "replace(/too?\b/, 'two')" should be "replace(/too?\b/g, 'two')"
The second one, however, is easy to fix only if you don't mind words like "together" not turning into "twogether". You can use replace(/\btoo?\b/g, 'two') instead of replace(/\btoo?/g, 'two'). Trying to make "together" change while sparing words like "ton" is not easy at all. Either retain "twogether" and deal with "twon" and the like, or rid yourself of both. It's your call.
Two things are wrong here:
[list=3:3owco3wn][*]Words like "onto" and "into" are changed into "ontwo", but only on the first occurrence.[/*:m:3owco3wn][*]Words like "tool" are changed into "twol", which is silly.[/*:m:3owco3wn][/list:3owco3wn]
I dug into your javascript. The first one is easy to fix: "replace(/too?\b/, 'two')" should be "replace(/too?\b/g, 'two')"
The second one, however, is easy to fix only if you don't mind words like "together" not turning into "twogether". You can use replace(/\btoo?\b/g, 'two') instead of replace(/\btoo?/g, 'two'). Trying to make "together" change while sparing words like "ton" is not easy at all. Either retain "twogether" and deal with "twon" and the like, or rid yourself of both. It's your call.
Nice job on this BTW. Very slick interface.
Thanks for the feedback and suggestions.
I've fixed the regex that was missing a global flag (seriously, why does Javascript even have those, I haven't seen any other language with them), and just deleted the second regex altogether. (Although, I was considering changing it into /\btoo/g, but then decided against it.)