Mmph-mph mmmmmph mmph-mph mmmmmph. M mmmmph mmmmmph mmmmmph-mmmph mmmmph-mmmmph mmph-mmph mmmmmph-mmmmph mmmmmph m mmmmmph-mmmmph mmph-mph mmmmmph m mmmph-mmmph mmmmmph mmmmph-mmph mph-mph mmmmmph-mmmmph mmph-mph m mmmmph-mmmph mmmmmmph m mmmmmph-mmmmph mmph-mph mmmmmph m mmmmph-mph mmmmph-mmmmph mmph-mph mmmmmph-mmmph, M mmph-mmph'mmmmph-mph m mph-mph mmmph-mmmph mph mmmmph m mmph-mph mmmmph-mmmph m-mmph m m-mmph mmmmmph mmmph-mmmph mmmph-mmmph m mmmmmph-mmmmph mmph-mph mmph-mmph mmmmmph-mmmph m mmph-mmph mmmmmph-mmmph m m-mmph mmmmph-mmmph mmmmmph-mmph mmmph-mmph mmph-mmph mmmmph-mmph mph-mph, m mmmmmph-mmmph mmmmph-mmmph m mmmmmmph mph mmmmmph-mmph m mmph-mmph mmmmmph-mmmmph m mmmmmph-mmmph mmmmmph mmmmmph mmmmph-mph mmmmmph-mmmph m mmmmmph-mmmmph mmmmph-mmmph m mmmmmph-mmmmph mmmmmph-mmph mph mmmmph-mmph mmmmmph-mmmph mmmph-mmmph mph mmmmmph-mmmmph mmmmmph m mmmmph-mmmmph mmmmmph mmmmmph-mmph mmmmmmph mmmmmph mmmph mmmmmph-mmmmph mmmph-mmmph m-mmmmph.
(09-26-2012, 09:35 AM)puggsoy Wrote: [ -> ]Well AS3 by itself is pretty weak in terms of encoding, but there may be an external library with Huffman encoding (isn't that used for JPG or something?).
Would it allow me to store all the data in 3 characters though? I don't want anything more than Ms, Ps and Hs.
Huffman is used in a couple of things (most notable thing to me being the compression algo used for Skulltag's network comms) but it feels somewhat obscure, especially when there are algorithms like LZW around with a wider support of libraries like zlib.
Well Huffman coding would provide you with a binary output (iirc) that you can simply re-interpret into the Mmphs as normal. It'd just be a bit smaller.
That could work. I actually had a thought of using binary before, so I'll give it a shot.
(09-23-2012, 04:10 AM)puggsoy Wrote: [ -> ] (09-23-2012, 01:52 AM)Gold Wrote: [ -> ]randomly generate mphs per word maybe?
This is surely possible, easy even, but translating back would then be impossible. But if nobody cares about translating back and just wants to sound like a Pyro, I could make a one-way version.
turn words into morse code.
turn said morse code into MPH HMPH
My name starts with a capitalized "F", thank you very much.
That had actually crossed my mind before, and although it has some problems (such as the possibility of a word starting with PH), that also counts for binary and I can probably find a suitable fix for it. Even if I can't it's not big a deal.
Thanks for reminding me, I'll try that out too.
Sorry for the double-post but just updated it, now using a morse code method. It makes a considerable difference, here's the comparison between both versions, translating the words "Thanks for that, Meta!":
Mmmmmph-mmmmph mmph-mph mph mmmmph-mmph mmmph-mmph mmmmmph-mmmph m mmmmmmph mmmmph-mmmph mmmmmph-mmph m mmmmmph-mmmmph mmph-mph mph mmmmmph-mmmmph, M mmmmph-mph mmmmmph mmmmmph-mmmmph mph!
Ph-mmmm-mph-phm-phmph-mmm mmphm-phhh-mphm ph-mmmm-mph-ph, Phh-m-ph-mph!
You'll really notice it with bigger sentences like "How much wood would a woodchop chop if a woodchop could chop wood?" It's still not perfect, getting it down to one mph for each word is impossible as far as I can tell, but this is a really big difference compared to before. Do note that some words may start with a "ph" though, if this becomes too much of a problem I might be able to fix it (although it will increase the length somewhat).
mmmm-ph-ph-mphhm://mphh-mphh-mphh.phmphh-phhh-mmph-ph-mmph-phmmm-m.phmphm-phhh-phh/mphh-mph-ph-phmphm-mmmm?mmmph=phhmmm-mm-Ph-phm-mphhhh-phmmph-phhmph-phhhhh-mmmmph-m-Mm